|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sciapp.table.DefaultGroupTableColumnModel
public class DefaultGroupTableColumnModel
DefaultGroupTableColumnModel is the default implementation of a GroupTableColumnModel.
| Field Summary | |
|---|---|
protected EventListenerList |
listenerList
the listenerlist of GroupTableColumnModelListeners |
protected GroupTableColumn |
root
the group table column used as the root. |
| Constructor Summary | |
|---|---|
DefaultGroupTableColumnModel()
Constructs a DefaultGroupTableColumnModel. |
|
| Method Summary | |
|---|---|
void |
addGroupColumnModelListener(GroupTableColumnModelListener l)
Adds a GroupTableColumnModelListener that is notified each time a group column is added or removed from the model. |
protected void |
fireGroupColumnsInserted(GroupTableColumnModelEvent e)
Notifies listeners that a group column has been added to the model. |
protected void |
fireGroupColumnsRemoved(GroupTableColumnModelEvent e)
Notifies listeners that a group column has been 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EventListenerList listenerList
protected GroupTableColumn root
| Constructor Detail |
|---|
public DefaultGroupTableColumnModel()
| Method Detail |
|---|
public void addGroupColumnModelListener(GroupTableColumnModelListener l)
addGroupColumnModelListener in interface GroupTableColumnModell - the GroupTableColumnModelListener to addprotected void fireGroupColumnsInserted(GroupTableColumnModelEvent e)
e - the event to forwardprotected void fireGroupColumnsRemoved(GroupTableColumnModelEvent e)
e - the event to forward
public TableColumn getChildColumn(GroupTableColumn parent,
int index)
getChildColumn in interface GroupTableColumnModelparent - a group columnindex - the location of the child column
parent at indexpublic int getChildColumnCount(GroupTableColumn parent)
getChildColumnCount in interface GroupTableColumnModelparent - a group column
public GroupTableColumn getGroupColumn(TableColumn column)
getGroupColumn in interface GroupTableColumnModelcolumn - the column being part of a group column
public int getIndexOfChildColumn(GroupTableColumn parent,
TableColumn child)
getIndexOfChildColumn in interface GroupTableColumnModelparent - a group column in the modelchild - the child column
public GroupTableColumn getRootGroupColumn()
getRootGroupColumn in interface GroupTableColumnModel
public void insertColumnInto(TableColumn child,
GroupTableColumn parent,
int index)
insertColumnInto in interface GroupTableColumnModelchild - the column to addparent - the group column to add the child column toindex - the location of the added child columnpublic void removeColumnFromParent(TableColumn aColumn)
removeColumnFromParent in interface GroupTableColumnModelaColumn - the column to removepublic void removeGroupColumnModelListener(GroupTableColumnModelListener l)
removeGroupColumnModelListener in interface GroupTableColumnModell - the GroupTableColumnModelListener to remove
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||