C
- the type of column identifierT
- the type representing table columnspublic interface FilteredTableColumnModel<C,T>
Modifier and Type | Method and Description |
---|---|
void |
addColumnHiddenListener(EventDataListener<C> listener) |
void |
addColumnShownListener(EventDataListener<C> listener) |
boolean |
containsColumn(C identifier) |
java.util.List<T> |
getAllColumns() |
ColumnConditionModel<C> |
getColumnFilterModel(C columnIdentifier) |
java.util.Collection<ColumnConditionModel<C>> |
getColumnFilterModels() |
C |
getColumnIdentifier(int modelColumnIndex) |
java.util.Collection<T> |
getHiddenColumns() |
T |
getTableColumn(C identifier)
Returns the TableColumn with the given identifier
|
boolean |
isColumnVisible(C columnIdentifier) |
void |
removeColumnHiddenListener(EventDataListener<C> listener) |
void |
removeColumnShownListener(EventDataListener<C> listener) |
void |
setColumns(C... columnIdentifiers)
Arranges the columns so that only the given columns are visible and in the given order
|
void |
setColumnVisible(C columnIdentifier,
boolean visible)
Toggles the visibility of the column representing the given columnIdentifier.
|
java.util.List<T> getAllColumns()
java.util.Collection<T> getHiddenColumns()
boolean isColumnVisible(C columnIdentifier)
columnIdentifier
- the key for which to query if its column is visiblevoid setColumnVisible(C columnIdentifier, boolean visible)
columnIdentifier
- the column identifiervisible
- if true the column is shown, otherwise it is hiddenvoid setColumns(C... columnIdentifiers)
columnIdentifiers
- the column identifiersT getTableColumn(C identifier)
identifier
- the column identifierjava.lang.IllegalArgumentException
- in case this table model does not contain a column with the given identifierboolean containsColumn(C identifier)
identifier
- the column identifierC getColumnIdentifier(int modelColumnIndex)
modelColumnIndex
- the column model indexColumnConditionModel<C> getColumnFilterModel(C columnIdentifier)
columnIdentifier
- the column identifierjava.util.Collection<ColumnConditionModel<C>> getColumnFilterModels()
void addColumnHiddenListener(EventDataListener<C> listener)
listener
- a listener to be notified each time a column is hiddenvoid removeColumnHiddenListener(EventDataListener<C> listener)
listener
- the listener to removevoid addColumnShownListener(EventDataListener<C> listener)
listener
- a listener to be notified each time a column is shownvoid removeColumnShownListener(EventDataListener<C> listener)
listener
- the listener to remove