public interface PdoTreeExtension
PdoTree.
Objects must implement this interface if:
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsTreeChildObjects()
Determines whether this object may have child objects that should
be visible in a navigatable tree.
|
boolean |
dropTransferable(Transferable transferable)
Drops a transferable on this object.
|
PdoTreeExtensionEditor |
getEditor()
Defines an editor that will be invoked to edit this tree object.
The editor should be a modal dialog, i.e. |
JMenuItem[] |
getExtraMenuItems(PdoTree tree,
DefaultMutableTreeNode node)
Defines additional menu items in the popup menu.
|
ImageIcon |
getIcon()
Gets the icon of this object.
|
Runnable |
getOpenEditor()
Defines an editor that will be invoked to "open" this tree object.
"open" usually means to open a dialog. |
PdoTreeExtensionToggleNode[] |
getToggleNodes(PdoTree tree,
DefaultMutableTreeNode node)
Defines additional toggle nodes.
|
String |
getToolTipText()
Gets the tooltip to be displayed for an object in a tree.
|
Transferable |
getTransferable()
Gets the
Transferable for this object.Used for drag and drop. |
List<Object> |
getTreeChildObjects()
Gets all childs of this objects that should be visible to the user
in a navigatable object tree.
|
List<Object> |
getTreeChildObjects(Object parentObject)
Gets the childs with respect to the parent object this
object is displayed in the current tree.
|
boolean |
isRemovable()
Returns whether this object can be removed.
|
Runnable getOpenEditor()
PdoTreeExtensionEditor getEditor()
JMenuItem[] getExtraMenuItems(PdoTree tree, DefaultMutableTreeNode node)
tree - the treenode - the node the popup menu refers toJMenuItems to be appended to the popup-menu, null = nonePdoTreeExtensionToggleNode[] getToggleNodes(PdoTree tree, DefaultMutableTreeNode node)
tree - the treenode - the node the popup menu refers toPdoTreeExtensionToggleNode to be prepended to the popup-menu, null = noneTransferable getTransferable()
Transferable for this object.boolean dropTransferable(Transferable transferable)
transferable - the Transferableboolean isRemovable()
boolean allowsTreeChildObjects()
List<Object> getTreeChildObjects()
List<Object> getTreeChildObjects(Object parentObject)
parentObject - the parent object of this object in the tree, null = no parentImageIcon getIcon()
String getToolTipText()
Tentackle - distributed, domain- and model-driven