de.pannenleiter.client
Class TextNode

java.lang.Object
  |
  +--de.pannenleiter.client.TreeNode
        |
        +--de.pannenleiter.client.TextNode
Direct Known Subclasses:
ElementNode

public class TextNode
extends TreeNode

TextNode -- a TreeNode with a label


Field Summary
protected  int icon
           
static int ICON_DB
           
static int ICON_DOC
           
static int ICON_FOLDER
           
static int ICON_PACKAGE
           
protected  java.lang.String label
           
 
Constructor Summary
TextNode(TreeNode up, boolean toOpen, java.lang.String label, int icon)
           
TextNode(TreeWidget up, boolean toOpen, java.lang.String label, int icon)
           
 
Method Summary
static java.awt.Image getIcon(int what, java.awt.Component at)
           
 void paint(java.awt.Graphics g, TreeWidget tree, int x, int y)
           
 
Methods inherited from class de.pannenleiter.client.TreeNode
elements, getAncestor, getParent, indentCount, nodeCount, removeChilds, setCanOpened, setOpened, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICON_DB

public static final int ICON_DB

ICON_FOLDER

public static final int ICON_FOLDER

ICON_DOC

public static final int ICON_DOC

ICON_PACKAGE

public static final int ICON_PACKAGE

label

protected java.lang.String label

icon

protected int icon
Constructor Detail

TextNode

public TextNode(TreeNode up,
                boolean toOpen,
                java.lang.String label,
                int icon)

TextNode

public TextNode(TreeWidget up,
                boolean toOpen,
                java.lang.String label,
                int icon)
Method Detail

getIcon

public static java.awt.Image getIcon(int what,
                                     java.awt.Component at)

paint

public void paint(java.awt.Graphics g,
                  TreeWidget tree,
                  int x,
                  int y)
Overrides:
paint in class TreeNode