Jadex 0.96-beta1

jadex.util.jtable
Interface IVisibilityTableColumnModel

All Known Implementing Classes:
VisibilityTableColumnModel

public interface IVisibilityTableColumnModel

User: Ruediger Leppin Date: 26.11.2003 Time: 01:52:25


Method Summary
 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(Object identifier)
          Returns the index of the first column in the table whose identifier is equal to identifier, when compared using equals.
 Enumeration getAllColumns()
          Returns an Enumeration of all the columns in the model.
 boolean isColumnChangeable(TableColumn column)
          Checks whether the specified column can change visibility.
 boolean isColumnVisible(TableColumn aColumn)
          Checks whether the specified column is currently visible.
 void setAllColumnsVisible()
          Makes all columns in this model visible
 void setColumnChangeable(TableColumn column, boolean changeable)
          Sets whether this column can change visibility.
 void setColumnVisible(TableColumn column, boolean visible)
          Sets the visibility of the specified TableColumn.
 

Method Detail

setColumnVisible

void setColumnVisible(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 a columnAdded or columnRemoved event to its listeners.

Parameters:
column - the TableColumn
visible - its new visibility status

setAllColumnsVisible

void setAllColumnsVisible()
Makes all columns in this model visible

See Also:
isColumnVisible(javax.swing.table.TableColumn), setColumnVisible(javax.swing.table.TableColumn, boolean)

isColumnVisible

boolean isColumnVisible(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

Enumeration getAllColumns()
Returns an Enumeration of all the columns in the model.
All columns whether visible or not are taken into account !!!

Returns:
an Enumeration of all the columns in the model

getAllColumnCount

int getAllColumnCount()
Returns the number of columns in the model.
All columns whether visible or not are taken into account !!!

Returns:
the number of columns in the model

getAllColumnIndex

int getAllColumnIndex(Object identifier)
Returns the index of the first column in the table whose identifier is equal to identifier, when compared using equals.
All columns whether visible or not are taken into account !!!

Parameters:
identifier - the identifier object
Returns:
the index of the first table column whose identifier is equal to identifier
Throws:
IllegalArgumentException - if identifier is null, or no TableColumn has this identifier
See Also:
getAllColumn(int)

getAllColumn

TableColumn getAllColumn(int columnIndex)
Returns the TableColumn object for the column at columnIndex.
All columns whether visible or not are taken into account !!!

Parameters:
columnIndex - the index of the desired column
Returns:
the TableColumn object for the column at columnIndex

setColumnChangeable

void setColumnChangeable(TableColumn column,
                         boolean changeable)
Sets whether this column can change visibility.

Parameters:
column - the TableColumn
changeable - if true, changing visibility is allowed; otherwise false

isColumnChangeable

boolean isColumnChangeable(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

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.