public interface FTreeNode
FTreeNodeAdapters
that are selected based on the FTreeNode's type.
Each FTreeNode contains an Hashtable that can be used to store objects in the node.
This Hashtable should be primarily used by FTreeNodeObjectProviders
to store objects that can be then accesed via the objectForClass()
method. Objects are stored in key-value pairs.
Changes to the FTreeNode are propagated to the node's liteners
via FTreeNodeEvents
.Modifier and Type | Method and Description |
---|---|
void |
addFTreeNodeListener(FTreeNodeListener listener)
Add an FTreeNodeListener to this node.
|
void |
addKey(Object key,
Object value)
Add a key-value pair to this node.
|
List |
childNodes()
Get the list of children in this node.
|
Object |
objectForClass(Class clazz)
Get the object for a given class contained in this node.
|
FTreeNode |
parent()
Get the parent for this node.
|
FTreePath |
path()
Get the FTreePath that leads to this node.
|
void |
removeFTreeNodeListener(FTreeNodeListener listener)
Remove an FTreeNodeListener from this node.
|
void |
removeKey(Object key)
Remove a key, and the corresponding value, from this node.
|
FTree |
tree()
Get the FTree to which this node belongs.
|
Class |
type()
Get the node's type.
|
Object |
value(Object key)
Get the value contained in the node for a given key.
|
Object objectForClass(Class clazz)
clazz
- The type of object to be returned.Class type()
FTreePath path()
FTree tree()
List childNodes()
FTreeNode parent()
void addKey(Object key, Object value)
key
- The key for the given value.value
- The corresponding value.void removeKey(Object key)
key
- The key to be removed.Object value(Object key)
key
- The key.void addFTreeNodeListener(FTreeNodeListener listener)
listener
- The FTreeNodeListener to be added.void removeFTreeNodeListener(FTreeNodeListener listener)
listener
- The FTreeNodeListener to be removed.Copyright © 2014. All Rights Reserved.