Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.tree
Class TreeTableComparator

java.lang.Object
  extended by com.citra.tree.TreeTableComparator
All Implemented Interfaces:
Comparator
Direct Known Subclasses:
DefaultTreeTableComparator

public abstract class TreeTableComparator
extends Object
implements Comparator

The comparator used in order to group the rows of a TreeTable component.


Field Summary
protected  TreeTableModel model
          the associated treetablemodel
 
Constructor Summary
TreeTableComparator(TreeTableModel model)
          Constructs a TreeTableComparator object.
 
Method Summary
 TreeTableModel getModel()
          Returns the associated TreeTableModel instance.
abstract  boolean isGroupedByColumn(int column)
          Returns true if column was used by this comparator in order to group the rows of a TreeTable component.
 void setModel(TreeTableModel model)
          Sets model as the TreeTableModel of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Field Detail

model

protected TreeTableModel model
the associated treetablemodel

Constructor Detail

TreeTableComparator

public TreeTableComparator(TreeTableModel model)
Constructs a TreeTableComparator object.

Method Detail

getModel

public TreeTableModel getModel()
Returns the associated TreeTableModel instance.

Returns:
the TreeTableModel

isGroupedByColumn

public abstract boolean isGroupedByColumn(int column)
Returns true if column was used by this comparator in order to group the rows of a TreeTable component.

Parameters:
column - the index of the column
Returns:
true if the column was used in grouping, false otherwise

setModel

public void setModel(TreeTableModel model)
Sets model as the TreeTableModel of this object.

Parameters:
model - the treetablemodel to assign

Copyright © 2011 Citra Technologies. All Rights Reserved.