|
||||||||||
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.tools.admin.OpenJMSConsumer
This class controls all dispay characteristics and menus related to a consumer. Currently only add, delete and edit are allowed. Add is added from the QueueTopic handler. Only one menu is created for all consumers since it is modal, it can be shared by all the consumer nodes. The menu is moved and displayed underneath the node that activated it.
AdminMgr
,
OpenJMSNode
, Serialized FormFields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
OpenJMSConsumer(java.lang.String consumerName,
javax.swing.JTree tree)
The constructor gets its unique name for this consumer plus a reference to its parent tree. |
Method Summary | |
protected void |
createCommands()
Create the menu for all consumers and set up the Action events for each menu item. |
void |
displayCommands(java.awt.Rectangle loc)
This node has been right clicked. |
boolean |
getAllowsChildren()
No children are allowed for consumers at this point. |
boolean |
isLeaf()
All consumers are leaves in the tree for this release. |
java.lang.String |
toString()
The unique name of this consumer. |
void |
update()
This method is defined by the interface, but is not required by consumers for this release. |
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 OpenJMSConsumer(java.lang.String consumerName, javax.swing.JTree tree)
If this is the first consumer call the menu for all consumers is created.
consumerName
- This consumers unique name.tree
- The parent tree this consumer belons 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 Consumer 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 |