getChildren(Object parent, int from, int to) Returns children for given parent on given indexes.
This method works in pair with
TreeModel.getChildrenCount , the to
parameter is up to the value that is returned from
TreeModel.getChildrenCount .
If the list of children varies over time, the implementation code
needs to pay attention to bounds and check the from and
to parameters, especially if
TreeModel.getChildrenCount returns Integer.MAX_VALUE.
Returns children for given parent on given indexes.
This method works in pair with
TreeModel.getChildrenCount , the to
parameter is up to the value that is returned from
TreeModel.getChildrenCount .
If the list of children varies over time, the implementation code
needs to pay attention to bounds and check the from and
to parameters, especially if
TreeModel.getChildrenCount returns Integer.MAX_VALUE. Caching of the children between
TreeModel.getChildrenCount and
TreeModel.getChildren can be used as well,
if necessary.
Parameters: parent - a parent of returned nodes Parameters: from - a start index Parameters: to - a end index throws: UnknownTypeException - if this TreeModel implementation is notable to resolve children for given node type children for given parent on given indexes See Also:TreeModel.getChildrenCount
This method works in pair with
TreeModel.getChildren , which gets
this returned value (or less) as the to parameter. This method
is always called before a call to
TreeModel.getChildren . This method can
return e.g. Integer.MAX_VALUE when all children should be
loaded.
Parameters: node - the parent node throws: UnknownTypeException - if this TreeModel implementation is notable to resolve children for given node type the children count since: 1.1 See Also:TreeModel.getChildren
Returns true if node is leaf.
throws: UnknownTypeException - if this TreeModel implementation is notable to resolve dchildren for given node type true if node is leaf