org.exolab.jms.tools.admin
Class OpenJMSQueueFolder

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--org.exolab.jms.tools.admin.OpenJMSQueueFolder
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, OpenJMSNode, java.io.Serializable, javax.swing.tree.TreeNode

public class OpenJMSQueueFolder
extends javax.swing.tree.DefaultMutableTreeNode
implements OpenJMSNode

This is a folder node, which holds all administered topics

Version:
$Revision: 1.1 $ $Date: 2004/11/26 01:51:15 $
Author:
Jim Alateras
See Also:
Serialized Form

Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
OpenJMSQueueFolder(javax.swing.JTree tree)
          Construct an instance of this folder given the parent node.
 
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()
          Queue folders are allowed on this node
 boolean isLeaf()
          The consumer folder is not a leaf node
 java.lang.String toString()
          The unique name of this queue/topic.
 void update()
          Update all children belonging to this node.
 
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

OpenJMSQueueFolder

public OpenJMSQueueFolder(javax.swing.JTree tree)
Construct an instance of this folder given the parent node.
Parameters:
tree - - The parent tree this consumer belons to.
Method Detail

createCommands

protected void createCommands()
Create the menu for all consumers and set up the Action events for each menu item. Since menus are shared, the callbacks called are static. Once a menu is slected, the slected node can be determined from the parent object.

getAllowsChildren

public boolean getAllowsChildren()
Queue folders are allowed on this node
Overrides:
getAllowsChildren in class javax.swing.tree.DefaultMutableTreeNode
Returns:
boolean Always returns true.

isLeaf

public boolean isLeaf()
The consumer folder is not a leaf node
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode
Returns:
boolean Always returns false.

displayCommands

public void displayCommands(java.awt.Rectangle loc)
This node has been right clicked. The locations of this node is given by the loc object. Use this location to popup the consumer message menu.
Specified by:
displayCommands in interface OpenJMSNode
Parameters:
The - location of this Queue node.

update

public void update()
Update all children belonging to this node.
Specified by:
update in interface OpenJMSNode

toString

public java.lang.String toString()
The unique name of this queue/topic.
Specified by:
toString in interface OpenJMSNode
Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode
Returns:
String the queue/topic name.


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.