|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultMutableTreeNode | +--org.exolab.jms.jndiadministration.OpenJMSContext
This class controls all dispay characteristics and menus related to a queue/topic object. Currently only add/delete, edit and purge is supported. Add is added from the OpenJMSServer node. Only one menu is created for all queue/topics since it is modal, it can be shared by all the nodes.
AdminMgr
, Serialized FormFields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
OpenJMSContext(java.lang.String contextName,
java.lang.String parentName,
javax.swing.JTree tree)
The constructor gets its unique name for this context and a reference to its parent tree. |
Method Summary | |
protected void |
createCommands()
Create the menu for all contexts and set up the Action events for each menu item. |
void |
displayCommands(java.awt.Rectangle loc)
This node has been right clicked. |
boolean |
getAllowsChildren()
Children are allowed for all contexts |
boolean |
isLeaf()
Contexts are leaves iff they have no objects registered against them. |
java.lang.String |
toString()
The unique name of this Context |
void |
update()
As a performance enhancement, no child is added to the context until after it is expanded. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OpenJMSContext(java.lang.String contextName, java.lang.String parentName, javax.swing.JTree tree)
If this is the first context call, the menu for all contexts is created.
contextName
- This context name.tree
- The parent tree this context belongs to.Method Detail |
protected void createCommands()
public boolean getAllowsChildren()
getAllowsChildren
in class javax.swing.tree.DefaultMutableTreeNode
public boolean isLeaf()
isLeaf
in class javax.swing.tree.DefaultMutableTreeNode
public void update()
update
in interface OpenJMSNode
public void displayCommands(java.awt.Rectangle loc)
displayCommands
in interface OpenJMSNode
The
- location of this node.public java.lang.String toString()
toString
in interface OpenJMSNode
toString
in class javax.swing.tree.DefaultMutableTreeNode
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |