Package jadex.commons.gui.jtable
Interface IVisibilityTableColumnModel
-
- All Known Implementing Classes:
VisibilityTableColumnModel
public interface IVisibilityTableColumnModel
User: 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.TableColumn
getAllColumn(int columnIndex)
Returns theTableColumn
object for the column atcolumnIndex
.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 toidentifier
, when compared usingequals
.java.util.Enumeration
getAllColumns()
Returns anEnumeration
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 visiblevoid
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.
-
-
-
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 acolumnAdded
orcolumnRemoved
event to its listeners.- Parameters:
column
- theTableColumn
visible
- 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 anEnumeration
of all the columns in the model.
- Returns:
- an
Enumeration
of 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
- ifidentifier
isnull
, or noTableColumn
has thisidentifier
- See Also:
getAllColumn(int)
-
getAllColumn
javax.swing.table.TableColumn getAllColumn(int columnIndex)
Returns theTableColumn
object for the column atcolumnIndex
.
- Parameters:
columnIndex
- the index of the desired column- Returns:
- the
TableColumn
object for the column atcolumnIndex
-
setColumnChangeable
void setColumnChangeable(javax.swing.table.TableColumn column, boolean changeable)
Sets whether this column can change visibility.- Parameters:
column
- theTableColumn
changeable
- 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
-
-