com.arsdigita.toolbox.ui
Class DataTable.DataTableColumnModel
java.lang.Object
com.arsdigita.bebop.table.DefaultTableColumnModel
com.arsdigita.toolbox.ui.DataTable.DataTableColumnModel
- All Implemented Interfaces:
- Lockable, TableColumnModel
- Enclosing class:
- DataTable
- protected static class DataTable.DataTableColumnModel
- extends DefaultTableColumnModel
A special column model that maintains an alternate key
for each column. The alternate key will be passed
to the query in the addOrder
method, thus
sorting the query by the given column - making it possible
to make the sort key differ from the attribute key for
any given column.
Note that each column ALREADY has a unique key, which
can be retrieved by calling TableColumn.getHeaderKey()
.
This key will be used to provide the value for the column.
Methods inherited from class com.arsdigita.bebop.table.DefaultTableColumnModel |
add, add, columns, get, getIndex, getSelectionModel, isLocked, lock, set, setSelectionModel, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataTable.DataTableColumnModel
protected DataTable.DataTableColumnModel()
add
public void add(TableColumn column,
String columnKey)
add
public void add(int columnIndex,
TableColumn column,
String columnKey)
getColumnKey
public String getColumnKey(TableColumn column)
getKeyAt
public String getKeyAt(int columnIndex)
setColumnKey
public void setColumnKey(TableColumn column,
String columnKey)
setColumnKey
public void setColumnKey(int columnIndex,
String columnKey)
remove
public void remove(TableColumn column)
- Specified by:
remove
in interface TableColumnModel
- Overrides:
remove
in class DefaultTableColumnModel
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC