KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > model > StructuralDesignComponent


1 /*
2  * (c) Rob Gordon 2005.
3  */

4 package org.oddjob.designer.model;
5
6
7
8 /**
9  * A DesignComponent which has children must implement this interface.
10  */

11 public interface StructuralDesignComponent extends DesignComponent {
12
13     /**
14      * Delete a child.
15      *
16      * @param child The child.
17      */

18     public void deleteChild(DesignComponent child);
19
20     /**
21      * Replace a child.
22      *
23      * @param child The existing child.
24      * @param replacement The replacement.
25      */

26     public void replaceChild(DesignComponent child, DesignComponent replacement);
27
28     /**
29      * Get the possible actions for a drag and drop or cut and paste.
30      *
31      * @param xml The xml being transferred.
32      * @return An array of actions. Should not be empty or null.
33      */

34     public ComponentAction[] transferActions(String JavaDoc xml);
35 }
36
Popular Tags