|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface TNode<I>
Hierarchical data object.
| Method Summary | |
|---|---|
boolean |
exists()
Returns true if the node exists, false otherwise |
int |
getChildCount()
Returns the number of children. |
Iterable<TNode<I>> |
getChildren()
Returns children. |
I |
getId()
Returns the object id. |
String |
getLabel(Locale locale)
Returns language specific label. |
TNode<I> |
getParent()
Returns parent object and null for root elements without parent. |
Iterable<TNode<I>> |
getPath()
Returns path to root or null for root nodes. |
Object |
getProperty(String name)
Returns a user defined property; null for unknown properties. |
Iterable<String> |
getPropertyNames()
Returns all property names. |
boolean |
hasChildren()
Returns true if this object has children. |
boolean |
isRoot()
Returns true for root elements. |
boolean |
isSelectable()
Returns true if this object can be selected. |
| Method Detail |
|---|
@NotNull I getId()
@Nullable TNode<I> getParent()
null for root elements without parent.
null for root elements.Iterable<TNode<I>> getPath()
null for root nodes. The path starts with the node's
parent, ..., root node.
null for root nodes.boolean isRoot()
true for root elements.
true for root elements.int getChildCount()
@NotNull Iterable<TNode<I>> getChildren()
boolean hasChildren()
true if this object has children.
true if this entity has children.
@NotNull
String getLabel(@Nullable
Locale locale)
locale a
default label must be returned.
locale - locale.
@NotNull Iterable<String> getPropertyNames()
@Nullable
Object getProperty(@NotNull
String name)
null for unknown properties.
name - property name.
null for unknown properties.TNode.getPropertyNames()boolean isSelectable()
true if this object can be selected.
true if this object can be selected.boolean exists()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||