|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.exolab.jms.tools.admin.OpenJMSDestination
public abstract class OpenJMSDestination
This is the base class for all destination nodes. A destination is either a queue or a topic.
Field Summary | |
---|---|
protected javax.swing.JPopupMenu |
commands_
|
protected boolean |
commandsCreated_
|
protected static java.text.SimpleDateFormat |
dateFormat_
|
protected java.lang.String |
destinationName_
|
protected boolean |
isExplored_
|
protected boolean |
isLeaf_
|
protected static javax.swing.JTree |
tree_
|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
OpenJMSDestination(java.lang.String destinationName,
javax.swing.JTree tree)
The constructor gets its unique name for this queue/topic and a reference to its parent tree. |
Method Summary | |
---|---|
protected abstract void |
createCommands()
Create the menu for all queue/topics 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 queue/topics |
protected static OpenJMSDestination |
getInstanceSelected()
Get the particular instance of the queue/topic that has been selected. |
boolean |
isLeaf()
Queue/Topics are leaves iff they have no consumers registered against them. |
protected void |
refresh()
This node has changed. |
java.lang.String |
toString()
The unique name of this queue/topic. |
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 |
Methods inherited from interface org.exolab.jms.tools.admin.OpenJMSNode |
---|
update |
Field Detail |
---|
protected java.lang.String destinationName_
protected boolean isLeaf_
protected boolean isExplored_
protected javax.swing.JPopupMenu commands_
protected boolean commandsCreated_
protected static java.text.SimpleDateFormat dateFormat_
protected static javax.swing.JTree tree_
Constructor Detail |
---|
public OpenJMSDestination(java.lang.String destinationName, javax.swing.JTree tree)
If this is the first queue/topic call, the menu for all queue/topics is created.
destinationName
- This queue/topic name.tree
- The parent tree this queue/topic belongs to.Method Detail |
---|
protected abstract void createCommands()
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class javax.swing.tree.DefaultMutableTreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class javax.swing.tree.DefaultMutableTreeNode
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
protected void refresh()
protected static OpenJMSDestination getInstanceSelected()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |