public interface IVisibilityTableColumnModel
| Modifier and Type | Method and Description |
|---|---|
javax.swing.table.TableColumn |
getAllColumn(int columnIndex)
Returns the
TableColumn object for the column at
columnIndex. |
int |
getAllColumnCount()
Returns the number of columns in the model.
|
int |
getAllColumnIndex(java.lang.Object identifier)
Returns the index of the first column in the table
whose identifier is equal to
identifier,
when compared using equals. |
java.util.Enumeration |
getAllColumns()
Returns an
Enumeration of all the columns in the model. |
boolean |
isColumnChangeable(javax.swing.table.TableColumn column)
Checks whether the specified column can change visibility.
|
boolean |
isColumnVisible(javax.swing.table.TableColumn aColumn)
Checks whether the specified column is currently visible.
|
void |
setAllColumnsVisible()
Makes all columns in this model visible
|
void |
setColumnChangeable(javax.swing.table.TableColumn column,
boolean changeable)
Sets whether this column can change visibility.
|
void |
setColumnVisible(javax.swing.table.TableColumn column,
boolean visible)
Sets the visibility of the specified TableColumn.
|
void setColumnVisible(javax.swing.table.TableColumn column,
boolean visible)
columnAdded or columnRemoved
event to its listeners.column - the TableColumnvisible - its new visibility statusvoid setAllColumnsVisible()
boolean isColumnVisible(javax.swing.table.TableColumn aColumn)
aColumn - column to checksetAllColumnsVisible(),
setColumnVisible(javax.swing.table.TableColumn, boolean)java.util.Enumeration getAllColumns()
Enumeration of all the columns in the model.
Enumeration of all the columns in the modelint getAllColumnCount()
int getAllColumnIndex(java.lang.Object identifier)
identifier,
when compared using equals.
identifier - the identifier objectidentifierjava.lang.IllegalArgumentException - if identifier
is null, or no
TableColumn has this
identifiergetAllColumn(int)javax.swing.table.TableColumn getAllColumn(int columnIndex)
TableColumn object for the column at
columnIndex.
columnIndex - the index of the desired columnTableColumn object for
the column at columnIndexvoid setColumnChangeable(javax.swing.table.TableColumn column,
boolean changeable)
column - the TableColumnchangeable - if true, changing visibility is allowed;
otherwise falseboolean isColumnChangeable(javax.swing.table.TableColumn column)
column - column to check