|
Grouping Panel |
Top Previous Next |
GroupingPanel is a panel through which users can dynamically control the structure of a TreeTable. GroupingPanel uses a box layout in order to layout a number of comboboxes, whose items are populated with the columns of a table. By selecting a column in the combo box, the appropriate DefaultTreeTableComparator is created and added to the associated TreeTableModel. You can construct a GroupingPanel using the constructors:
public GroupingPanel(TreeTableModel model);
public GroupingPanel(TreeTableModel model, int axis);
public GroupingPanel(TreeTableModel model, int axis, String noGroupString);
You can also set and retrieve the maximum allowed number of groups with:
public void setMaximumGroups(int max_groups);
public int getMaximumGroups();