|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableColumnModel
Defines the requirements for a table column model object suitable for use with TableView. This model is 0 based.
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 model. |
int |
getColumnIndex(java.lang.Object columnIdentifier)
Returns the index of the first column in the table whose identifier is equal to identifier, 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. |
Method Detail |
---|
void addColumn(TableColumn column)
column
- the TableColumn to be addedvoid removeColumn(TableColumn column)
column
- the TableColumn to be removedvoid moveColumn(int columnIndex, int newIndex)
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 rangeint getColumnCount()
java.util.Enumeration getColumns()
int getColumnIndex(java.lang.Object columnIdentifier)
columnIdentifier
- the identifier object
java.lang.IllegalArgumentException
- if identifier is null, or no
TableColumn has this identifierTableColumn getColumn(int columnIndex)
columnIndex
- the index of the desired column
void setColumnOrder(int[] columnIndexes)
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 arrayvoid addColumnModelListener(TableColumnModelListener listener)
listener
- a TableColumnModelListener objectvoid removeColumnModelListener(TableColumnModelListener listener)
listener
- a TableColumnModelListener objectvoid setLocale(java.util.Locale loc)
loc
- an instance of java.util.Localejava.util.Locale getLocale()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |