|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.tableview.DefaultTableColumnModel
public class DefaultTableColumnModel
The standard column-handler for a TableView.
Constructor Summary | |
---|---|
DefaultTableColumnModel()
Creates a default table column model. |
Method Summary | |
---|---|
void |
addColumn(TableColumn column)
Appends a column to the end of the tableColumns array. |
void |
addColumnModelListener(TableColumnModelListener listener)
Adds a listener for table column model events. |
TableColumn |
getColumn(int columnIndex)
Returns the TableColumn object for the column at columnIndex. |
int |
getColumnCount()
Returns the number of columns in the tableColumns array. |
int |
getColumnIndex(java.lang.Object columnIdentifier)
Returns the index of the first column in the tableColumns array whose identifier is equal to columnIdentifier, when compared using equals. |
java.util.Enumeration |
getColumns()
Returns an Enumeration of all the columns in the tableColumns array in the order they are to be displayed. |
java.util.Locale |
getLocale()
Gets the locale. |
void |
moveColumn(int columnIndex,
int newIndex)
Moves the column and its header at columnIndex to newIndex. |
void |
removeColumn(TableColumn column)
Deletes the TableColumn column from the tableColumns array. |
void |
removeColumnModelListener(TableColumnModelListener listener)
Removes a listener for table column model events. |
void |
setColumnOrder(int[] columnIndexes)
Set the order to display the columns that are currently in the tableColumns array. |
void |
setLocale(java.util.Locale loc)
Sets the locale. |
Constructor Detail |
---|
public DefaultTableColumnModel()
Method Detail |
---|
public void addColumn(TableColumn column)
addColumn
in interface TableColumnModel
column
- the TableColumn to be added
java.lang.IllegalArgumentException
- if column is nullremoveColumn(com.sas.servlet.tbeans.tableview.TableColumn)
public void removeColumn(TableColumn column)
removeColumn
in interface TableColumnModel
column
- the TableColumn to be removedaddColumn(com.sas.servlet.tbeans.tableview.TableColumn)
public void moveColumn(int columnIndex, int newIndex)
moveColumn
in interface TableColumnModel
columnIndex
- the index of column to be movednewIndex
- index of the column's new location
java.lang.IllegalArgumentException
- if columnIndex or newIndex
are not in the valid rangepublic int getColumnCount()
getColumnCount
in interface TableColumnModel
public java.util.Enumeration getColumns()
getColumns
in interface TableColumnModel
public int getColumnIndex(java.lang.Object columnIdentifier)
getColumnIndex
in interface TableColumnModel
columnIdentifier
- - the identifier object
java.lang.IllegalArgumentException
- if identifier is null, or no
TableColumn has this identifierpublic TableColumn getColumn(int columnIndex)
getColumn
in interface TableColumnModel
columnIndex
- the index of the desired column
java.lang.IllegalArgumentException
- if columnIndex is not in the
columns arraypublic void setColumnOrder(int[] columnIndexes)
setColumnOrder
in interface TableColumnModel
columnIndexes
- the indexes of the columns in the order
they are to be displayed
java.lang.IllegalArgumentException
- if the columnIndexes array
is larger than the tableColumns array or if an index in the
columnIndexes array does not exist in the tableColumns arraypublic void addColumnModelListener(TableColumnModelListener listener)
addColumnModelListener
in interface TableColumnModel
listener
- a TableColumnModelListener objectpublic void removeColumnModelListener(TableColumnModelListener listener)
removeColumnModelListener
in interface TableColumnModel
listener
- a TableColumnModelListener objectpublic void setLocale(java.util.Locale loc)
setLocale
in interface TableColumnModel
loc
- an instance of java.util.Localepublic java.util.Locale getLocale()
getLocale
in interface TableColumnModel
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |