|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AppDbObjectTreeExtension
Interface to add features to objects displayed in an AppDbObjectTree.
Objects must implement this interface if:
| Method Summary | |
|---|---|
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. |
AppDbObjectTreeExtensionEditor |
getEditor()
Defines an editor that will be invoked to edit this tree object. The editor should be a modal dialog, i.e. |
JMenuItem[] |
getExtraMenuItems(AppDbObjectTree 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. |
AppDbObjectTreeExtensionToggleNode[] |
getToggleNodes(AppDbObjectTree 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. |
| Method Detail |
|---|
Runnable getOpenEditor()
AppDbObjectTreeExtensionEditor getEditor()
JMenuItem[] getExtraMenuItems(AppDbObjectTree tree,
DefaultMutableTreeNode node)
tree - the treenode - the node the popup menu refers to
JMenuItems to be appended to the popup-menu, null = none
AppDbObjectTreeExtensionToggleNode[] getToggleNodes(AppDbObjectTree tree,
DefaultMutableTreeNode node)
tree - the treenode - the node the popup menu refers to
AppDbObjectTreeExtensionToggleNode to be prepended to the popup-menu, null = noneTransferable getTransferable()
Transferable for this object.
boolean dropTransferable(Transferable transferable)
transferable - the Transferable
boolean isRemovable()
boolean allowsTreeChildObjects()
List<Object> getTreeChildObjects()
List<Object> getTreeChildObjects(Object parentObject)
parentObject - the parent object of this object in the tree, null = no parent
ImageIcon getIcon()
String getToolTipText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||