|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Filters content of some original tree of nodes (represented by
TreeModel
).
Method Summary | |
void |
addModelListener(ModelListener l)
Registers given listener. |
Object[] |
getChildren(TreeModel original,
Object parent,
int from,
int to)
Returns filtered children for given parent on given indexes. |
int |
getChildrenCount(TreeModel original,
Object node)
Returns number of filterred children for given node. |
Object |
getRoot(TreeModel original)
Returns filtered root of hierarchy. |
boolean |
isLeaf(TreeModel original,
Object node)
Returns true if node is leaf. |
void |
removeModelListener(ModelListener l)
Unregisters given listener. |
Method Detail |
public Object getRoot(TreeModel original)
original
- the original tree model
public Object[] getChildren(TreeModel original, Object parent, int from, int to) throws UnknownTypeException
original.getChildren (...)
), and modify them, or return
it without modifications. You should not throw UnknownTypeException
directly from this method!
original
- the original tree modelparent
- a parent of returned nodes
UnknownTypeException
- this exception can be thrown from
original.getChildren (...)
method call only!public int getChildrenCount(TreeModel original, Object node) throws UnknownTypeException
original
- the original tree modelnode
- the parent node
UnknownTypeException
- if this TreeModel implementation is not
able to resolve children for given node typepublic boolean isLeaf(TreeModel original, Object node) throws UnknownTypeException
original
- the original tree model
UnknownTypeException
- this exception can be thrown from
original.isLeaf (...)
method call only!public void addModelListener(ModelListener l)
l
- the listener to addpublic void removeModelListener(ModelListener l)
l
- the listener to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |