public interface TreeDataSource extends ModelProperties
COLUMN_NAMES_PROPERTY, COLUMN_TYPES_PROPERTY
Modifier and Type | Method and Description |
---|---|
Object[] |
getChildren(Object node)
Get the children of a given node in the tree.
|
Icon |
getIcon(Object node,
boolean expanded)
Get the icon for a node.
|
String |
getLabel(Object node)
Get the label for a node.
|
Object |
getRoot()
Get the root object.
|
Object |
getValueForProperty(Object node,
String property)
Get the value of an arbitrary property for a given node.
|
boolean |
isExpandable(Object node)
Determine if this node is expandable.
|
Object[] getChildren(Object node)
node
- The node that children are being requested for.Object getValueForProperty(Object node, String property)
node
- The node.property
- The name of the property; one of the constants defined
above, or some arbitrary application-defined property.null
if
there is no value for this property.boolean isExpandable(Object node)
node
- The node.Icon getIcon(Object node, boolean expanded)
node
- The node.expanded
- The current expanded state of the node.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses