org.tentackle.appworx
Class AppDbTreeToggleNodeObject

java.lang.Object
  extended by org.tentackle.appworx.AppDbTreeObject
      extended by org.tentackle.appworx.AppDbTreeToggleNodeObject

public class AppDbTreeToggleNodeObject
extends AppDbTreeObject

Extended AppDbTreeObject for displaying subtrees as childnodes in an AppDbObjectTree.

Author:
harald

Constructor Summary
AppDbTreeToggleNodeObject(int toggleNodeId, String text, ImageIcon icon)
          Creates a toggle node object.
 
Method Summary
 Object getObject()
          Gets the object.
The default implementation returns "this".
 int getToggleNodeId()
          Gets the toggle node id.
 String getToolTipText()
          Gets the tooltip text.
The default implementation returns null.
 
Methods inherited from class org.tentackle.appworx.AppDbTreeObject
equals, getIcon, getParentObject, getTreeText, hashCode, isExpanded, isStopExpandPath, isStopTreeWillExpand, setExpanded, setIcon, setObject, setStopExpandPath, setStopTreeWillExpand, setTreeText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppDbTreeToggleNodeObject

public AppDbTreeToggleNodeObject(int toggleNodeId,
                                 String text,
                                 ImageIcon icon)
Creates a toggle node object.

Parameters:
toggleNodeId - the unique toggle node id
text - some text which is displayed for the node, null = none
icon - the icon for the node, null = none
Method Detail

getToggleNodeId

public int getToggleNodeId()
Gets the toggle node id.

Returns:
the unique toggleNodeId

getToolTipText

public String getToolTipText()
Gets the tooltip text.
The default implementation returns null.

Overrides:
getToolTipText in class AppDbTreeObject
Returns:
the tooltip

getObject

public Object getObject()
Gets the object.
The default implementation returns "this".

Overrides:
getObject in class AppDbTreeObject
Returns:
the wrapped object


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de