org.exolab.jms.tools.admin
Class OpenJMSTopic

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

public class OpenJMSTopic
extends OpenJMSObject

Extends the OpenJMSDestination node and defines a topic specific node

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

Fields inherited from class org.exolab.jms.tools.admin.OpenJMSObject
_commands, _commandsCreated, _dateFormat, _isExplored, _isLeaf, _name, _tree
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
OpenJMSTopic(java.lang.String topic, javax.swing.JTree tree)
          Construct a node with the specified topic name and the a reference to the parent node in the tree.
 
Method Summary
protected  void createCommands()
          Create the menu for all objects and set up the Action events for each menu item.
 void update()
          As a performance enhancement, no consumer is added to a topic node until a request is made to expand the node, or a new consumer is to be added to the node.
 
Methods inherited from class org.exolab.jms.tools.admin.OpenJMSObject
displayCommands, getAllowsChildren, getInstanceSelected, isLeaf, refresh, toString
 
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

OpenJMSTopic

public OpenJMSTopic(java.lang.String topic,
                    javax.swing.JTree tree)
Construct a node with the specified topic name and the a reference to the parent node in the tree.
Parameters:
name - This topic name
tree - The parent tree that this node will belong too
Method Detail

createCommands

protected void createCommands()
Description copied from class: OpenJMSObject
Create the menu for all objects 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.
Overrides:
createCommands in class OpenJMSObject

update

public void update()
As a performance enhancement, no consumer is added to a topic node until a request is made to expand the node, or a new consumer is to be added to the node. This metgod is then called to fetch all consumers from the database, and display the as children of this node.


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