com.leafdigital.ui.api
Interface TreeBox.Item

Enclosing interface:
TreeBox

public static interface TreeBox.Item

Interface implemented by users to pass on information about the tree of options.


Method Summary
 TreeBox.Item[] getChildren()
           
 java.awt.Image getIcon()
           
 TreeBox.Item getParent()
           
 java.lang.String getText()
           
 boolean isLeaf()
           
 

Method Detail

getText

java.lang.String getText()
Returns:
Text of an item

getIcon

java.awt.Image getIcon()
Returns:
Icon for an item or null if none

getChildren

TreeBox.Item[] getChildren()
Returns:
Children of this item

getParent

TreeBox.Item getParent()
Returns:
Parent of this item

isLeaf

boolean isLeaf()
Returns:
True if this is a leaf node


Copyright © 2011 Samuel Marshall. All rights reserved.