org.oddjob.designer.model
Interface StructuralDesignComponent

All Superinterfaces:
DesignComponent
All Known Subinterfaces:
InsertableDesignComponent
All Known Implementing Classes:
InsertableDC, RootDC, StructuralDC

public interface StructuralDesignComponent
extends DesignComponent

A DesignComponent which has children must implement this interface.


Method Summary
 void deleteChild(DesignComponent child)
          Delete a child.
 void replaceChild(DesignComponent child, DesignComponent replacement)
          Replace a child.
 ComponentAction[] transferActions(java.lang.String xml)
          Get the possible actions for a drag and drop or cut and paste.
 
Methods inherited from interface org.oddjob.designer.model.DesignComponent
availableActions, form, name, name, tag, tag
 

Method Detail

deleteChild

public void deleteChild(DesignComponent child)
Delete a child.

Parameters:
child - The child.

replaceChild

public void replaceChild(DesignComponent child,
                         DesignComponent replacement)
Replace a child.

Parameters:
child - The existing child.
replacement - The replacement.

transferActions

public ComponentAction[] transferActions(java.lang.String xml)
Get the possible actions for a drag and drop or cut and paste.

Parameters:
xml - The xml being transferred.
Returns:
An array of actions. Should not be empty or null.