| java.lang.Object org.glasser.swing.table.AbstractColumnManager
All known Subclasses: org.glasser.swing.table.ListColumnManager, org.glasser.qform.ForeignKeyColumnManager, org.glasser.swing.table.ReflectionColumnManager, org.glasser.qform.ExportedKeyColumnManager, org.glasser.swing.table.ArrayColumnManager,
AbstractColumnManager | abstract public class AbstractColumnManager implements ColumnManager(Code) | | |
editableColumns | protected boolean[] editableColumns(Code) | | |
AbstractColumnManager | public AbstractColumnManager()(Code) | | |
AbstractColumnManager | public AbstractColumnManager(String[] columnNames, Class[] columnClasses)(Code) | | |
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. |
getColumnClasses | protected Class[] getColumnClasses()(Code) | | |
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: AbstractColumnManager.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 |
getEditableColumns | public boolean[] getEditableColumns()(Code) | | |
getValueAt | abstract public Object getValueAt(int rowIndex, int columnIndex, Object rowObject)(Code) | | Returns the value in the cell at columnIndex and
rowIndex .
Parameters: rowIndex - the row containing the cell. Parameters: columnIndex - the columnContaining the cell. Parameters: rowObject - the object containing the row's data. |
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 Parameters: rowObject - the object which contains the entire row for this table. true if the cell is editable See Also: AbstractColumnManager.setValueAt |
setColumnClasses | protected void setColumnClasses(Class[] columnClasses)(Code) | | |
setColumnNames | protected void setColumnNames(String[] columnNames)(Code) | | |
setEditableColumns | public void setEditableColumns(boolean[] editableColumns)(Code) | | |
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: newCellValue - the new value Parameters: rowIndex - the row whose value is to be changed Parameters: columnIndex - the column whose value is to be changed Parameters: rowObject - the object which contains the entire row for this table.modifying the cell value will likely change this object in some way. See Also: AbstractColumnManager.getValueAt See Also: AbstractColumnManager.isCellEditable |
|
|