Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void | addColumnModelListener(TableColumnModelListener x)
|
void | addColumn(TableColumn aColumn)
Appends aColumn to the end of the receiver's tableColumns array. |
int | getColumnCount()
Returns the number of columns in the model |
int | getColumnIndexAtX(int xPosition)
Returns the index of the column that lies on the xPosition, or -1 if it lies outside the any of the column's bounds. |
int | getColumnIndex(java.lang.Object columnIdentifier)
Returns the index of the first column in the receiver's columns array whose identifier is equal to identifier, when compared using equals(). |
int | getColumnMargin()
Returns the width margin between each column |
boolean | getColumnSelectionAllowed()
|
java.util.Enumeration | getColumns()
Returns an Enumeration of all the columns in the model |
TableColumn | getColumn(int columnIndex)
Returns the TableColumn object for the column at columnIndex |
int | getSelectedColumnCount()
|
int[] | getSelectedColumns()
|
ListSelectionModel | getSelectionModel()
|
int | getTotalColumnWidth()
Returns the total width of all the columns. |
void | moveColumn(int columnIndex,
int newIndex)
Moves the column and heading at columnIndex to newIndex. |
void | removeColumnModelListener(TableColumnModelListener x)
|
void | removeColumn(TableColumn column)
Deletes the TableColumn column from the receiver's table columns array. |
void | setColumnMargin(int newMargin)
Sets the TableColumn's column margin to newMargin. |
void | setColumnSelectionAllowed(boolean flag)
Sets whether the columns in this model can be selected. |
void | setSelectionModel(ListSelectionModel newModel)
|
Method Detail |
public void addColumn(TableColumn aColumn)
aColumn
- The TableColumn to be addedpublic void removeColumn(TableColumn column)
column
- The TableColumn to be removedpublic void moveColumn(int columnIndex, int newIndex)
columnIndex
- the index of column to be moved
newIndex
- New index to move the columnpublic void setColumnMargin(int newMargin)
newMargin
- the width margin of the columnpublic int getColumnCount()
public java.util.Enumeration getColumns()
public int getColumnIndex(java.lang.Object columnIdentifier)
identifier
- the identifier objectpublic TableColumn getColumn(int columnIndex)
columnIndex
- the index of the column desiredpublic int getColumnMargin()
public int getColumnIndexAtX(int xPosition)
public int getTotalColumnWidth()
public void setColumnSelectionAllowed(boolean flag)
public boolean getColumnSelectionAllowed()
public int[] getSelectedColumns()
public int getSelectedColumnCount()
public void setSelectionModel(ListSelectionModel newModel)
public ListSelectionModel getSelectionModel()
public void addColumnModelListener(TableColumnModelListener x)
public void removeColumnModelListener(TableColumnModelListener x)
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |