jhomenet.gui
Class HardwareTreeNode

java.lang.Object
  extended by jhomenet.gui.AbstractTreeNode
      extended by jhomenet.gui.HardwareTreeNode
All Implemented Interfaces:
TreeNodeInterface, Hardware

public class HardwareTreeNode
extends AbstractTreeNode
implements Hardware

Filename: $Source$ Description:


Field Summary
 
Fields inherited from class jhomenet.gui.AbstractTreeNode
icon
 
Constructor Summary
HardwareTreeNode(HomenetHardware hardware)
          Constructor.
 
Method Summary
 boolean equals(Hardware hw)
          Used to check for equality.
 boolean equals(java.lang.Object object)
          Check to see if two hardware nodes are equal.
 java.lang.String getDriverHardwareDescription()
          Get the driver hardware description.
 java.lang.String getDriverName()
          Get the hardware driver name.
 HomenetHardware getHardware()
          Get a reference to the node's hardware object.
 java.lang.String getHardwareClassname()
          Get the jHomenet hardware type.
 java.lang.String getHardwareId()
          Get the hardware ID.
protected  void initializeIcon()
          Initialize the hardware node's icon.
 boolean isRegistered()
          Whether the hardware is registered or not.
 
Methods inherited from class jhomenet.gui.AbstractTreeNode
getIcon, getNodeIdentifier, setNodeIdentifier, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HardwareTreeNode

public HardwareTreeNode(HomenetHardware hardware)
Constructor.

Method Detail

initializeIcon

protected void initializeIcon()
Initialize the hardware node's icon.

Specified by:
initializeIcon in class AbstractTreeNode
See Also:
AbstractTreeNode.initializeIcon()

equals

public boolean equals(java.lang.Object object)
Check to see if two hardware nodes are equal. Two hardware nodes are only equal when they have the same hardware Id.

Specified by:
equals in class AbstractTreeNode
See Also:
Object.equals(java.lang.Object)

getHardware

public HomenetHardware getHardware()
Get a reference to the node's hardware object.

Returns:

isRegistered

public boolean isRegistered()
Description copied from interface: Hardware
Whether the hardware is registered or not.

Specified by:
isRegistered in interface Hardware
Returns:
true if the hardware is registered
See Also:
Hardware.isRegistered()

getHardwareId

public java.lang.String getHardwareId()
Description copied from interface: Hardware
Get the hardware ID.

Specified by:
getHardwareId in interface Hardware
Returns:
The hardware ID
See Also:
Hardware.getHardwareId()

getHardwareClassname

public java.lang.String getHardwareClassname()
Description copied from interface: Hardware
Get the jHomenet hardware type.

Specified by:
getHardwareClassname in interface Hardware
Returns:
The jHomenet hardware type
See Also:
Hardware.getHardwareClassname()

getDriverName

public java.lang.String getDriverName()
Description copied from interface: Hardware
Get the hardware driver name.

Specified by:
getDriverName in interface Hardware
Returns:
Hardware driver name
See Also:
Hardware.getDriverName()

getDriverHardwareDescription

public java.lang.String getDriverHardwareDescription()
Description copied from interface: Hardware
Get the driver hardware description.

Specified by:
getDriverHardwareDescription in interface Hardware
Returns:
Driver hardware description
See Also:
Hardware.getDriverHardwareDescription()

equals

public boolean equals(Hardware hw)
Description copied from interface: Hardware
Used to check for equality.

Specified by:
equals in interface Hardware
Returns:
True if the hardware is considered equal
See Also:
Hardware.equals(jhomenet.hw.Hardware)


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