| java.lang.Object nextapp.echo2.app.table.TableColumn
TableColumn | public class TableColumn implements Serializable(Code) | | A description of a single column of a Table .
|
Constructor Summary | |
public | TableColumn(int modelIndex) Creates a TableColumn with the specified model index,
undefined width, and undefined cell and header renderers. | public | TableColumn(int modelIndex, Extent width) Creates a TableColumn with the specified model index and width,
and undefined cell and header renderers. | public | TableColumn(int modelIndex, Extent width, TableCellRenderer cellRenderer, TableCellRenderer headerRenderer) Creates a TableColumn with the specified model index, width,
and cell and header renderers. |
CELL_RENDERER_CHANGED_PROPERTY | final public static String CELL_RENDERER_CHANGED_PROPERTY(Code) | | |
HEADER_RENDERER_CHANGED_PROPERTY | final public static String HEADER_RENDERER_CHANGED_PROPERTY(Code) | | |
HEADER_VALUE_CHANGED_PROPERTY | final public static String HEADER_VALUE_CHANGED_PROPERTY(Code) | | |
IDENTIFIER_CHANGED_PROPERTY | final public static String IDENTIFIER_CHANGED_PROPERTY(Code) | | |
MODEL_INDEX_CHANGED_PROPERTY | final public static String MODEL_INDEX_CHANGED_PROPERTY(Code) | | |
WIDTH_CHANGED_PROPERTY | final public static String WIDTH_CHANGED_PROPERTY(Code) | | |
TableColumn | public TableColumn(int modelIndex)(Code) | | Creates a TableColumn with the specified model index,
undefined width, and undefined cell and header renderers.
Parameters: modelIndex - the column index of model data visualized by this column |
TableColumn | public TableColumn(int modelIndex, Extent width)(Code) | | Creates a TableColumn with the specified model index and width,
and undefined cell and header renderers.
Parameters: modelIndex - the column index of model data visualized by this column Parameters: width - the column width |
TableColumn | public TableColumn(int modelIndex, Extent width, TableCellRenderer cellRenderer, TableCellRenderer headerRenderer)(Code) | | Creates a TableColumn with the specified model index, width,
and cell and header renderers.
Parameters: modelIndex - the column index of model data visualized by this column Parameters: width - the column width Parameters: cellRenderer - the renderer to use for rendering model values Parameters: headerRenderer - the renderer to use for rendering the header cell |
addPropertyChangeListener | public void addPropertyChangeListener(PropertyChangeListener l)(Code) | | Adds a PropertyChangeListener to be notified
of property changes to the column.
Parameters: l - the listener to add |
getCellRenderer | public TableCellRenderer getCellRenderer()(Code) | | Retrieves the TableCellRenderer used to render values
contained in the column. The value of this property may be null,
in which case the table should revert to using its default cell
renderer.
the cell renderer for this column |
getHeaderRenderer | public TableCellRenderer getHeaderRenderer()(Code) | | Returns the TableCellRenderer used to render the
header cell of this column. The value of this property may be null,
in which case the table should revert to using its default cell
renderer.
the header cell renderer for this column |
getHeaderValue | public Object getHeaderValue()(Code) | | Returns the header value for this column. The header value is the
object that will be provided to the header renderer to produce
a component that will be used as the table header for this column.
the header value for this column |
getIdentifier | public Object getIdentifier()(Code) | | Returns the identifier for this column. Each table column may have
an identifier. Identifiers are provided as a convenience to the
application developer, and are neither used nor required by the
Table component.
the identifier for this column |
getModelIndex | public int getModelIndex()(Code) | | Returns the column index of the model which this
TableColumn represents.
This value is independent of the column's position within the column
model, such that columns may be displayed in an arbitrary order.
the index of the column in the model |
getWidth | public Extent getWidth()(Code) | | Returns the width of the column.
This property supports Extent s with
fixed or percentile units.
the width |
removePropertyChangeListener | public void removePropertyChangeListener(PropertyChangeListener l)(Code) | | Removes a PropertyChangeListener from being notified
of property changes to the column.
Parameters: l - the listener to remove |
setCellRenderer | public void setCellRenderer(TableCellRenderer newValue)(Code) | | Sets the TableCellRenderer used to render values
contained in the column. The value of this property may be null,
in which case the table should revert to using its default cell
renderer.
Parameters: newValue - the new cell renderer |
setHeaderRenderer | public void setHeaderRenderer(TableCellRenderer newValue)(Code) | | Sets the TableCellRenderer used to render the
header cell of this column. The value of this property may be null,
in which case the table should revert to using its default cell
renderer.
Parameters: newValue - the new header cell renderer |
setHeaderValue | public void setHeaderValue(Object newValue)(Code) | | Sets the header value for this column. The header value is the
object that will be provided to the header renderer to produce
a component that will be used as the table header for this column.
Parameters: newValue - the new header value |
setIdentifier | public void setIdentifier(Object newValue)(Code) | | Sets the identifier for this column. Each table column may have
an identifier. Identifiers are provided as a convenience to the
application developer, and are neither used nor required by the
Table component.
Parameters: newValue - The new identifier for this column. |
setModelIndex | public void setModelIndex(int newValue)(Code) | | Sets the index of the column in the TableModel which
this TableColumn object represents. This value is
independent of the column's position within the column model, such that
columns may be displayed in an arbitrary order.
Parameters: newValue - the index of the column in the model |
setWidth | public void setWidth(Extent newValue)(Code) | | Sets the width of the column.
This property supports Extent s with
fixed or percentile units.
Parameters: newValue - the new width |
|
|