|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrTreeSorter
A tree sorter allows you to reorder the nodes provided by the tree's model.
IlrTreeDataProvider
,
IlrTreeController.getTreeSorter()
Method Summary | |
---|---|
int |
category(IlrTreeNode node)
Returns the category of a node. |
int |
compare(IlrTreeController controller,
IlrTreeNode node1,
IlrTreeNode node2,
boolean ignoreCase)
Returns a negative, zero, or positive number depending on whether the first element is less than, equal to, or greater than the second element. |
Method Detail |
---|
int category(IlrTreeNode node)
A common use is to categorize the node to optimize the sorting.
node
- The node.
int compare(IlrTreeController controller, IlrTreeNode node1, IlrTreeNode node2, boolean ignoreCase)
Note: The ignoreCase
argument is relevant in case of string comparisons.
controller
- The tree controller.node1
- The first node.node2
- The second node.ignoreCase
- true
if the method should not be case sensitive, and false
otherwise.
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |