org.exolab.jms.jndiadministration
Class OpenJMSObject

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

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

This class controls all dispay characteristics and menus related to an object. Currently this is nothing more than just displaying the Object name.

Version:
$Revision: 1.3 $ $Date: 2003/08/17 01:32:23 $
Author:
Jim Mourikis
See Also:
AdminMgr, OpenJMSContext, OpenJMSNode, Serialized Form

Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
OpenJMSObject(java.lang.String objectName, javax.swing.JTree tree)
          The constructor gets its unique name for this object plus a reference to its parent tree.
 
Method Summary
 void displayCommands(java.awt.Rectangle loc)
          This node has been right clicked.
 boolean getAllowsChildren()
          Objects are always leaves.
 boolean isLeaf()
          All objects are leaves in the tree for this release.
 java.lang.String toString()
          The Objects name.
 void update()
          This method is defined by the interface, but is not required by objects 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

OpenJMSObject

public OpenJMSObject(java.lang.String objectName,
                     javax.swing.JTree tree)
The constructor gets its unique name for this object plus a reference to its parent tree.
Parameters:
objectName - This objects unique name.
tree - The parent tree this object belons to.
Method Detail

getAllowsChildren

public boolean getAllowsChildren()
Objects are always leaves.
Overrides:
getAllowsChildren in class javax.swing.tree.DefaultMutableTreeNode
Returns:
boolean Always returns false.

isLeaf

public boolean isLeaf()
All objects are leaves in the tree for this release.
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode
Returns:
boolean Always returns true.

update

public void update()
This method is defined by the interface, but is not required by objects for this release.
Specified by:
update in interface OpenJMSNode

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. There are no menus for Objects yet.
Specified by:
displayCommands in interface OpenJMSNode
Parameters:
The - location of this Object node.

toString

public java.lang.String toString()
The Objects name.
Specified by:
toString in interface OpenJMSNode
Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode
Returns:
String the Object name.


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