|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.TableColumn com.jidesoft.grid.AbstractCalculatedColumn com.jidesoft.grid.SingleColumn
public class SingleColumn
A direct mapping from a single existing column of a table model. It can be used with CalculatedTableModel to create a completely new table model based on the original table model. The SingleColumn can be created based on the column index or the column name (the first one in case there are duplicated column names) as in the original table model. By default it will gets the same column name and the same column class. However you can define a new column name and a new column class. If the actual model is a ContextSensitiveTableModel, the SingleColumn will automatically find the ConverterContext and EditorContext defined in the ContextSensitiveTableModel and set them.
Field Summary |
---|
Fields inherited from class javax.swing.table.TableColumn |
---|
CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, COLUMN_WIDTH_PROPERTY, HEADER_RENDERER_PROPERTY, HEADER_VALUE_PROPERTY, headerRenderer, headerValue, identifier, isResizable, maxWidth, minWidth, modelIndex, resizedPostingDisableCount, width |
Constructor Summary | |
---|---|
SingleColumn(TableModel model,
int columnIndex)
|
|
SingleColumn(TableModel model,
int columnIndex,
ObjectGrouper objectGrouper)
|
|
SingleColumn(TableModel model,
int columnIndex,
String newColumnName)
|
|
SingleColumn(TableModel model,
int columnIndex,
String newColumnName,
Class<?> columnClass)
|
|
SingleColumn(TableModel model,
int columnIndex,
String newColumnName,
ObjectGrouper objectGrouper)
|
|
SingleColumn(TableModel model,
String columnName)
|
|
SingleColumn(TableModel model,
String columnName,
ObjectGrouper objectGrouper)
|
|
SingleColumn(TableModel model,
String columnName,
String newColumnName)
|
|
SingleColumn(TableModel model,
String columnName,
String newColumnName,
Class<?> columnClass)
|
|
SingleColumn(TableModel model,
String columnName,
String newColumnName,
ObjectGrouper objectGrouper)
|
Method Summary | |
---|---|
int |
getColumnIndex()
Gets the column index as in the actual table model. |
int[] |
getDependingColumns()
Gets the depending column index. |
Object |
getValueAt(int rowIndex)
Gets the value at the specified row index. |
boolean |
isCellEditable(int rowIndex)
Checks if the cell is editable at the specified row index. |
void |
setColumnIndex(int columnIndex)
Sets the column index as in the actual table model. |
void |
setObjectGrouper(ObjectGrouper objectGrouper)
|
void |
setValueAt(Object value,
int rowIndex)
Sets the value at the specified row index. |
Methods inherited from class com.jidesoft.grid.AbstractCalculatedColumn |
---|
getActualModel, getColumnClass, getColumnIdentifier, getColumnName, getConverterContext, getEditorContext, getGroupValue, getObjectGrouper, setColumnClass, setColumnName, setConverterContext, setEditorContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleColumn(TableModel model, int columnIndex)
public SingleColumn(TableModel model, String columnName)
public SingleColumn(TableModel model, String columnName, String newColumnName)
public SingleColumn(TableModel model, int columnIndex, String newColumnName)
public SingleColumn(TableModel model, int columnIndex, String newColumnName, Class<?> columnClass)
public SingleColumn(TableModel model, String columnName, String newColumnName, Class<?> columnClass)
public SingleColumn(TableModel model, int columnIndex, ObjectGrouper objectGrouper)
public SingleColumn(TableModel model, int columnIndex, String newColumnName, ObjectGrouper objectGrouper)
public SingleColumn(TableModel model, String columnName, ObjectGrouper objectGrouper)
public SingleColumn(TableModel model, String columnName, String newColumnName, ObjectGrouper objectGrouper)
Method Detail |
---|
public int getColumnIndex()
public void setColumnIndex(int columnIndex)
columnIndex
- the column index as in the actual table model.public void setObjectGrouper(ObjectGrouper objectGrouper)
setObjectGrouper
in class AbstractCalculatedColumn
public Object getValueAt(int rowIndex)
rowIndex
- the row index.
public void setValueAt(Object value, int rowIndex)
value
- a new value at the specified row index.rowIndex
- the row index.public boolean isCellEditable(int rowIndex)
rowIndex
- the row index.
public int[] getDependingColumns()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |