|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.DefaultTableColumnModel
unbbayes.gui.table.GroupableTableColumnModel
public class GroupableTableColumnModel
Class which extends the functionality of DefaultColumnTableModel to also provide capabilities to group columns. This can be used for instance to aid in the layout of groupable table headers.
Field Summary | |
---|---|
protected ArrayList |
columnGroups
Hold the list of ColumnGroups which define what group each normal column is within, if any. |
Fields inherited from class javax.swing.table.DefaultTableColumnModel |
---|
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth |
Constructor Summary | |
---|---|
GroupableTableColumnModel()
|
Method Summary | |
---|---|
void |
addColumnGroup(ColumnGroup columnGroup)
Add a new columngroup. |
Iterator |
columnGroupIterator()
Provides an Iterator to iterate over the ColumnGroup list. |
ColumnGroup |
getColumnGroup(int index)
Returns a ColumnGroup specified by an index. |
Iterator |
getColumnGroups(TableColumn col)
Provides and iterator for accessing the ColumnGroups associated with a column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ArrayList columnGroups
Constructor Detail |
---|
public GroupableTableColumnModel()
Method Detail |
---|
public void addColumnGroup(ColumnGroup columnGroup)
columnGroup
- new ColumnGrouppublic Iterator columnGroupIterator()
public ColumnGroup getColumnGroup(int index)
index
- index of ColumnGroup
public Iterator getColumnGroups(TableColumn col)
col
- Column
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |