jhomenet.gui
Class AbstractTreeNode

java.lang.Object
  extended by jhomenet.gui.AbstractTreeNode
All Implemented Interfaces:
TreeNodeInterface
Direct Known Subclasses:
DefaultTreeNode, HardwareTreeNode, UnregisteredTreeNode

public abstract class AbstractTreeNode
extends java.lang.Object
implements TreeNodeInterface

Filename: $Source$ Description:


Field Summary
protected  javax.swing.Icon icon
          The tree node icon.
 
Constructor Summary
AbstractTreeNode()
          Constructor.
AbstractTreeNode(java.lang.String identifier)
          Default constructor.
 
Method Summary
abstract  boolean equals(java.lang.Object object)
           
 javax.swing.Icon getIcon()
          Get the node's icon.
 java.lang.String getNodeIdentifier()
          Get the node identifier.
protected abstract  void initializeIcon()
           
 void setNodeIdentifier(java.lang.String nodeIdentifier)
          Set the node identifier.
 java.lang.String toString()
          Get a string representation of the tree node.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

icon

protected javax.swing.Icon icon
The tree node icon.

Constructor Detail

AbstractTreeNode

public AbstractTreeNode(java.lang.String identifier)
Default constructor.

Parameters:
identifier -

AbstractTreeNode

public AbstractTreeNode()
Constructor.

Method Detail

setNodeIdentifier

public void setNodeIdentifier(java.lang.String nodeIdentifier)
Set the node identifier.

Parameters:
nodeIdentifier -

getNodeIdentifier

public java.lang.String getNodeIdentifier()
Get the node identifier.

Returns:

toString

public java.lang.String toString()
Get a string representation of the tree node.
Note: The string returned from this method is the text displayed in the tree node.

Specified by:
toString in interface TreeNodeInterface
Overrides:
toString in class java.lang.Object
Returns:
String representation
See Also:
Object.toString()

getIcon

public javax.swing.Icon getIcon()
Get the node's icon.

Specified by:
getIcon in interface TreeNodeInterface
Returns:
A reference to the node's icon

initializeIcon

protected abstract void initializeIcon()

equals

public abstract boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2004-2005 David Irwin. All Rights Reserved.