Package jadex.commons.gui.jtable
Interface IVisibilityTableColumnModel
-
- All Known Implementing Classes:
VisibilityTableColumnModel
public interface IVisibilityTableColumnModelUser: Ruediger Leppin Date: 26.11.2003 Time: 01:52:25
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.swing.table.TableColumngetAllColumn(int columnIndex)Returns theTableColumnobject for the column atcolumnIndex.intgetAllColumnCount()Returns the number of columns in the model.intgetAllColumnIndex(java.lang.Object identifier)Returns the index of the first column in the table whose identifier is equal toidentifier, when compared usingequals.java.util.EnumerationgetAllColumns()Returns anEnumerationof all the columns in the model.booleanisColumnChangeable(javax.swing.table.TableColumn column)Checks whether the specified column can change visibility.booleanisColumnVisible(javax.swing.table.TableColumn aColumn)Checks whether the specified column is currently visible.voidsetAllColumnsVisible()Makes all columns in this model visiblevoidsetColumnChangeable(javax.swing.table.TableColumn column, boolean changeable)Sets whether this column can change visibility.voidsetColumnVisible(javax.swing.table.TableColumn column, boolean visible)Sets the visibility of the specified TableColumn.
-
-
-
Method Detail
-
setColumnVisible
void setColumnVisible(javax.swing.table.TableColumn column, boolean visible)Sets the visibility of the specified TableColumn. The call is ignored if the TableColumn is not found in this column model or its visibility status did not change. This method posts acolumnAddedorcolumnRemovedevent to its listeners.- Parameters:
column- theTableColumnvisible- its new visibility status
-
setAllColumnsVisible
void setAllColumnsVisible()
Makes all columns in this model visible
-
isColumnVisible
boolean isColumnVisible(javax.swing.table.TableColumn aColumn)
Checks whether the specified column is currently visible.- Parameters:
aColumn- column to check- Returns:
- visibility of specified column. false if there is no such column at all.
- See Also:
setAllColumnsVisible(),setColumnVisible(javax.swing.table.TableColumn, boolean)
-
getAllColumns
java.util.Enumeration getAllColumns()
Returns anEnumerationof all the columns in the model.
- Returns:
- an
Enumerationof all the columns in the model
-
getAllColumnCount
int getAllColumnCount()
Returns the number of columns in the model.
- Returns:
- the number of columns in the model
-
getAllColumnIndex
int getAllColumnIndex(java.lang.Object identifier)
Returns the index of the first column in the table whose identifier is equal toidentifier, when compared usingequals.
- Parameters:
identifier- the identifier object- Returns:
- the index of the first table column
whose identifier is equal to
identifier - Throws:
java.lang.IllegalArgumentException- ifidentifierisnull, or noTableColumnhas thisidentifier- See Also:
getAllColumn(int)
-
getAllColumn
javax.swing.table.TableColumn getAllColumn(int columnIndex)
Returns theTableColumnobject for the column atcolumnIndex.
- Parameters:
columnIndex- the index of the desired column- Returns:
- the
TableColumnobject for the column atcolumnIndex
-
setColumnChangeable
void setColumnChangeable(javax.swing.table.TableColumn column, boolean changeable)Sets whether this column can change visibility.- Parameters:
column- theTableColumnchangeable- if true, changing visibility is allowed; otherwise false
-
isColumnChangeable
boolean isColumnChangeable(javax.swing.table.TableColumn column)
Checks whether the specified column can change visibility.- Parameters:
column- column to check- Returns:
- true if the column can change visibility; otherwise false
-
-