| |
|
| java.lang.Object org.wings.table.STableColumn
All known Subclasses: org.wingx.table.XTableColumn,
Constructor Summary | |
public | STableColumn() Empty constructor of a table column. | public | STableColumn(int modelIndex) Constructs a new table column. | public | STableColumn(int modelIndex, String width) Constructs a new table column.
Parameters: modelIndex - The index of this column inside the data model. Parameters: width - The desired width of this column as relative weight. | public | STableColumn(int modelIndex, String width, STableCellRenderer cellRenderer, STableCellEditor cellEditor) Constructs a new table column. |
hidden | protected boolean hidden(Code) | | |
modelIndex | protected int modelIndex(Code) | | |
STableColumn | public STableColumn()(Code) | | Empty constructor of a table column. Assumes model index 0.
|
STableColumn | public STableColumn(int modelIndex)(Code) | | Constructs a new table column.
Parameters: modelIndex - The index of this column inside the data model. |
STableColumn | public STableColumn(int modelIndex, String width)(Code) | | Constructs a new table column.
Parameters: modelIndex - The index of this column inside the data model. Parameters: width - The desired width of this column as relative weight. (1 = default) |
STableColumn | public STableColumn(int modelIndex, String width, STableCellRenderer cellRenderer, STableCellEditor cellEditor)(Code) | | Constructs a new table column.
Parameters: modelIndex - The index of this column inside the data model. Parameters: width - The desired width of this column in px. Parameters: cellRenderer - The renderer for cells in this column Parameters: cellEditor - The editor for cells in this column |
getCellEditor | public STableCellEditor getCellEditor()(Code) | | Returns the TableCellEditor used by the
JTable to edit values for this column. When the
cellEditor is null , the JTable
uses a default editor based on the
class of the cells in that column. The default value for a
cellEditor is null .
the cellEditor property See Also: STableColumn.setCellEditor See Also: JTable.setDefaultEditor |
getCellRenderer | public STableCellRenderer getCellRenderer()(Code) | | Returns the TableCellRenderer used by the
JTable to draw
values for this column. The cellRenderer of the column
not only controls the visual look for the column, but is also used to
interpret the value object supplied by the TableModel .
When the cellRenderer is null ,
the JTable uses a default renderer based on the
class of the cells in that column. The default value for a
cellRenderer is null .
the cellRenderer property See Also: STableColumn.setCellRenderer See Also: JTable.setDefaultRenderer |
getIdentifier | public Object getIdentifier()(Code) | | Returns the identifier object for this column.
Note identifiers are not used by JTable ,
they are purely a convenience for external use.
If the identifier is null ,
getIdentifier() returns getHeaderValue
as a default.
the identifier property See Also: STableColumn.setIdentifier |
getModelIndex | public int getModelIndex()(Code) | | Returns the cmp2 index for this column.
the modelIndex property |
getWidth | public String getWidth()(Code) | | The widht of this column including the unit. |
isHidden | public boolean isHidden()(Code) | | Indicates if this column is hidden
true if this column is invisible |
setCellEditor | public void setCellEditor(STableCellEditor cellEditor)(Code) | | Sets the editor to used by when a cell in this column is edited.
Parameters: cellEditor - the new cellEditor See Also: STableColumn.getCellEditor See Also: bound: true See Also: description: The editor to use for cell values. |
setCellRenderer | public void setCellRenderer(STableCellRenderer cellRenderer)(Code) | | Sets the TableCellRenderer used by JTable
to draw individual values for this column.
Parameters: cellRenderer - the new cellRenderer See Also: STableColumn.getCellRenderer See Also: bound: true See Also: description: The renderer to use for cell values. |
setHeaderRenderer | public void setHeaderRenderer(STableCellRenderer headerRenderer)(Code) | | Sets the TableCellRenderer used to draw the
STableColumn 's header to headerRenderer .
Parameters: headerRenderer - the new headerRenderer See Also: STableColumn.getHeaderRenderer See Also: bound: true See Also: description: The header renderer. |
setHeaderValue | public void setHeaderValue(Object headerValue)(Code) | | Sets the Object whose string representation will be
used as the value for the header for this column.
|
setHidden | public void setHidden(boolean hidden)(Code) | | Indicates if this column should be hidden
Parameters: hidden - true if this column should be invisible |
setIdentifier | public void setIdentifier(Object identifier)(Code) | | Sets the STableColumn 's identifier to
anIdentifier .
Note: identifiers are not used by the JTable ,
they are purely a
convenience for the external tagging and location of columns.
Parameters: identifier - an identifier for this column See Also: STableColumn.getIdentifier See Also: bound: true See Also: description: A unique identifier for this column. |
setModelIndex | public void setModelIndex(int modelIndex)(Code) | | Sets the cmp2 index for this column. The cmp2 index is the
index of the column in the cmp2 that will be displayed by this
STableColumn . As the STableColumn
is moved around in the view the cmp2 index remains constant.
Parameters: modelIndex - the new modelIndexbound: truedescription: The cmp2 index. |
setWidth | public void setWidth(String width)(Code) | | The widht for this column including the unit
Parameters: width - The width |
|
|
|