|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.appworx.AppDbObjectTreeExtensionToggleNode
public abstract class AppDbObjectTreeExtensionToggleNode
A childnode for nodes in an AppDbObjectTree to add a popup-menu-item
for toggling the display of subtrees.
| Constructor Summary | |
|---|---|
AppDbObjectTreeExtensionToggleNode(int toggleNodeId)
Creates a toggle node. |
|
| Method Summary | |
|---|---|
int |
getChildIndex()
Gets the index of this toggle-node withing the childs of the popup node. |
JMenuItem |
getMenuItem(AppDbObjectTree tree,
DefaultMutableTreeNode popupNode,
TreePath popupPath)
Creates a JMenuItem for the popup-Menu. |
abstract JMenuItem |
getMenuItem(boolean toggleNodeDisplayed)
Gets a JMenuItem for the popup-Menu. |
DefaultMutableTreeNode |
getPopupNode()
Gets the popup node this toggle node is associated to. |
int |
getToggleNodeId()
Gets the toggle node id. |
abstract AppDbTreeToggleNodeObject |
getToggleNodeObject(Object popupObject)
Creates an AppDbTreeToggleNodeObject to be inserted into the tree. |
AppDbObjectTree |
getTree()
Gets the tree this toggle node is associated to. |
void |
hideToggleNode()
Removes the togglenode from the tree. |
void |
insertObjects(List list)
Sets the list of objects into this toggle node and inserts the toggle node into the tree (invokes showToggleNode(). |
DefaultMutableTreeNode |
showToggleNode()
Inserts the toggle-node as the first childnode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppDbObjectTreeExtensionToggleNode(int toggleNodeId)
Each of toggle node must get its own unique identifier to determine whether it is already displayed in the tree or not.
toggleNodeId - is some unique(!) id| Method Detail |
|---|
public int getToggleNodeId()
public AppDbObjectTree getTree()
public DefaultMutableTreeNode getPopupNode()
public int getChildIndex()
public abstract AppDbTreeToggleNodeObject getToggleNodeObject(Object popupObject)
popupObject - is the object of the popupNode (usually an AppDbObject, but not necessarily and may be null)
public abstract JMenuItem getMenuItem(boolean toggleNodeDisplayed)
toggleNodeDisplayed - is true if the toggle-node is displayed in the tree, false if not
public JMenuItem getMenuItem(AppDbObjectTree tree,
DefaultMutableTreeNode popupNode,
TreePath popupPath)
tree - the treepopupNode - is the node the popupMenu is displayed forpopupPath - is the treepath for the popupNode
public void insertObjects(List list)
showToggleNode().
list - the list of objectspublic DefaultMutableTreeNode showToggleNode()
public void hideToggleNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||