|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ZTreeNode
Tree structure over a nested set of Zaria components, yes, this is almost an exact duplicate of TreeNode but as ZPane is a subclass of JComponent we can't have a getParent method (JComponent already contains this) so, annoyingly, we have to invent a duplicate interface avoiding the name collisions. D'oh. This interface also defines that ZTreeNode implementations must be able to serialize their current state to XML and restore from the same.
| Method Summary | |
|---|---|
void |
configure(org.jdom.Element e)
Set current state of this node, including construction of nested containers, from the specified JDOM Element |
void |
discard()
Indicates that the component is about to be discarded, and any cleaning up should be carried out here. |
java.util.List<javax.swing.Action> |
getActions()
Return a list of Action objects that can act on this ZTreeNode, implemented largely by subclasses. |
org.jdom.Element |
getElement()
Build current state of this node in the form of a JDOM element |
ZBasePane |
getRoot()
Get the ZBasePane at the root of the component heirarchy or null if there isn't one (there will be for all cases where the component is visible) |
java.util.List<java.awt.Component> |
getToolbarComponents()
Return a list of JComponent items that should be added on the left hand side of the toolbar when in edit mode |
int |
getZChildCount()
Get number of immediate children |
java.util.List<ZTreeNode> |
getZChildren()
Immediate children |
ZTreeNode |
getZParent()
Parent ZTreeNode |
boolean |
isZLeaf()
Is this a leaf node? |
boolean |
isZRoot()
Is this a root node? |
void |
setEditable(boolean editable)
Set editable status on this node, implementations will recursively set the status on all children |
void |
swap(ZTreeNode oldComponent,
ZTreeNode newComponent)
Swap out the given child for the new one |
| Method Detail |
|---|
void configure(org.jdom.Element e)
void discard()
java.util.List<javax.swing.Action> getActions()
org.jdom.Element getElement()
ZBasePane getRoot()
java.util.List<java.awt.Component> getToolbarComponents()
int getZChildCount()
java.util.List<ZTreeNode> getZChildren()
ZTreeNode getZParent()
boolean isZLeaf()
boolean isZRoot()
void setEditable(boolean editable)
void swap(ZTreeNode oldComponent,
ZTreeNode newComponent)
oldComponent - the ZTreeNode to remove as a childnewComponent - the ZTreeNode to insert in its place
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||