| org.glasser.swing.table.ColumnManager
All known Subclasses: org.glasser.swing.table.AbstractColumnManager,
Method Summary | |
public Class | getColumnClass(int columnIndex) Returns the most specific superclass for all the cell values
in the column. | public int | getColumnCount() Returns the number of columns in the model. | public String | getColumnName(int columnIndex) Returns the name of the column at columnIndex . | public Object | getValueAt(int rowIndex, int columnIndex, Object rowObject) Returns the value for the cell at columnIndex and
rowIndex . | public boolean | isCellEditable(int rowIndex, int columnIndex, Object rowObject) Returns true if the cell at rowIndex and
columnIndex
is editable. | public void | setValueAt(Object newCellValue, int rowIndex, int columnIndex, Object rowObject) Sets the value in the cell at columnIndex and
rowIndex to aValue . |
getColumnClass | public Class getColumnClass(int columnIndex)(Code) | | Returns the most specific superclass for all the cell values
in the column. This is used by the JTable to set up a
default renderer and editor for the column.
Parameters: columnIndex - the index of the column the common ancestor class of the object values in the model. |
getColumnCount | public int getColumnCount()(Code) | | Returns the number of columns in the model. A
JTable uses this method to determine how many columns it
should create and display by default.
the number of columns in the model See Also: ColumnManager.getRowCount |
getColumnName | public String getColumnName(int columnIndex)(Code) | | Returns the name of the column at columnIndex . This is used
to initialize the table's column header name. Note: this name does
not need to be unique; two columns in a table can have the same name.
Parameters: columnIndex - the index of the column the name of the column |
getValueAt | public Object getValueAt(int rowIndex, int columnIndex, Object rowObject)(Code) | | Returns the value for the cell at columnIndex and
rowIndex .
Parameters: rowIndex - the row whose value is to be queried Parameters: columnIndex - the column whose value is to be queried the value Object at the specified cell |
isCellEditable | public boolean isCellEditable(int rowIndex, int columnIndex, Object rowObject)(Code) | | Returns true if the cell at rowIndex and
columnIndex
is editable. Otherwise, setValueAt on the cell will not
change the value of that cell.
Parameters: rowIndex - the row whose value to be queried Parameters: columnIndex - the column whose value to be queried true if the cell is editable See Also: ColumnManager.setValueAt |
setValueAt | public void setValueAt(Object newCellValue, int rowIndex, int columnIndex, Object rowObject)(Code) | | Sets the value in the cell at columnIndex and
rowIndex to aValue .
Parameters: aValue - the new value Parameters: rowIndex - the row whose value is to be changed Parameters: columnIndex - the column whose value is to be changed See Also: ColumnManager.getValueAt See Also: ColumnManager.isCellEditable |
|
|