Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.table
Interface GroupTableColumnModel

All Known Implementing Classes:
DefaultGroupTableColumnModel

public interface GroupTableColumnModel

GroupTableColumnModel defines the requirements for a table column model object suitable for use with a GroupTableHeader.


Method Summary
 void addGroupColumnModelListener(GroupTableColumnModelListener l)
          Adds a GroupTableColumnModelListener that is notified each time a group column is added or removed from the model.
 TableColumn getChildColumn(GroupTableColumn parent, int index)
          Returns the child column of a group column at the specified location.
 int getChildColumnCount(GroupTableColumn parent)
          Returns the number of children columns in a group column.
 GroupTableColumn getGroupColumn(TableColumn column)
          Returns the parent group column of the specified column.
 int getIndexOfChildColumn(GroupTableColumn parent, TableColumn child)
          Returns the index of a child column in its parent group column.
 GroupTableColumn getRootGroupColumn()
          Returns the root group column.
 void insertColumnInto(TableColumn child, GroupTableColumn parent, int index)
          Inserts a column as child of a group column at the specified index.
 void removeColumnFromParent(TableColumn aColumn)
          Removes a column from the model.
 void removeGroupColumnModelListener(GroupTableColumnModelListener l)
          Removes a GroupTableColumnModelListener from the list that is notified each time a group column is added or removed from the model.
 

Method Detail

addGroupColumnModelListener

void addGroupColumnModelListener(GroupTableColumnModelListener l)
Adds a GroupTableColumnModelListener that is notified each time a group column is added or removed from the model.

Parameters:
l - the GroupTableColumnModelListener to add

getChildColumn

TableColumn getChildColumn(GroupTableColumn parent,
                           int index)
Returns the child column of a group column at the specified location.

Parameters:
parent - a group column
index - the location of the child column
Returns:
the child column of parent at index

getChildColumnCount

int getChildColumnCount(GroupTableColumn parent)
Returns the number of children columns in a group column.

Parameters:
parent - a group column
Returns:
the number of the group column's children

getGroupColumn

GroupTableColumn getGroupColumn(TableColumn column)
Returns the parent group column of the specified column. If the column is not part of a group, null is returned.

Parameters:
column - the column being part of a group column
Returns:
the enclosing group column or null, if the column is not part of a group

getIndexOfChildColumn

int getIndexOfChildColumn(GroupTableColumn parent,
                          TableColumn child)
Returns the index of a child column in its parent group column.

Parameters:
parent - a group column in the model
child - the child column
Returns:
the index of the child column in the group column

getRootGroupColumn

GroupTableColumn getRootGroupColumn()
Returns the root group column.

Returns:
the root group column

insertColumnInto

void insertColumnInto(TableColumn child,
                      GroupTableColumn parent,
                      int index)
Inserts a column as child of a group column at the specified index.

Parameters:
child - the column to add
parent - the group column to add the child column to
index - the location of the added child column

removeColumnFromParent

void removeColumnFromParent(TableColumn aColumn)
Removes a column from the model.

Parameters:
aColumn - the column to remove

removeGroupColumnModelListener

void removeGroupColumnModelListener(GroupTableColumnModelListener l)
Removes a GroupTableColumnModelListener from the list that is notified each time a group column is added or removed from the model.

Parameters:
l - the GroupTableColumnModelListener to remove

Copyright © 2011 Citra Technologies. All Rights Reserved.