|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
I - T - public interface TreeBrowser<I extends Serializable,T extends it.amattioli.dominate.Entity<I>>
A TreeBrowser allows the navigation through a set of entities arranged as the
nodes of a tree structure.
The tree structure must have a single root that can be retrieved using the
getRoot() method.
| Method Summary | |
|---|---|
void |
deselect()
|
List<T> |
getChildrenOf(T target)
Retrieves the list of the children of a given node |
TreePath |
getPathOf(T target)
Retrieves the path of node |
T |
getRoot()
Retrieves the root of the tree |
TreePath |
getSelectedPath()
Retrieves the path of the selected object |
it.amattioli.dominate.Specification<T> |
getSpecification()
|
T |
getTargetOf(TreePath path)
Retrieves a tree node given its path inside the tree |
void |
next()
Select next node in tree. |
void |
previous()
Select previous node in tree. |
void |
select(T selected)
Select a node |
void |
select(TreePath path)
Select a node given its path |
void |
setSpecification(it.amattioli.dominate.Specification<T> spec)
|
| Methods inherited from interface it.amattioli.applicate.browsing.Browser |
|---|
addContentChangeListener, release, removeContentChangeListener |
| Methods inherited from interface it.amattioli.applicate.selection.Selector |
|---|
addSelectionListener, getSelectedObject, removeSelectionListener |
| Methods inherited from interface it.amattioli.applicate.commands.CommandListener |
|---|
commandDone |
| Method Detail |
|---|
T getRoot()
T getTargetOf(TreePath path)
path -
TreePath getPathOf(T target)
target -
List<T> getChildrenOf(T target)
target -
void select(T selected)
selected - void select(TreePath path)
path - void deselect()
TreePath getSelectedPath()
void next()
void previous()
void setSpecification(it.amattioli.dominate.Specification<T> spec)
it.amattioli.dominate.Specification<T> getSpecification()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||