|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.table.TableColumn
public class TableColumn
A description of a single column of a Table
.
Field Summary | |
---|---|
static java.lang.String |
CELL_RENDERER_CHANGED_PROPERTY
|
static java.lang.String |
HEADER_RENDERER_CHANGED_PROPERTY
|
static java.lang.String |
HEADER_VALUE_CHANGED_PROPERTY
|
static java.lang.String |
IDENTIFIER_CHANGED_PROPERTY
|
static java.lang.String |
MODEL_INDEX_CHANGED_PROPERTY
|
static java.lang.String |
WIDTH_CHANGED_PROPERTY
|
Constructor Summary | |
---|---|
TableColumn(int modelIndex)
Creates a TableColumn with the specified model index,
undefined width, and undefined cell and header renderers. |
|
TableColumn(int modelIndex,
Extent width)
Creates a TableColumn with the specified model index and width, and undefined cell and header renderers. |
|
TableColumn(int modelIndex,
Extent width,
TableCellRenderer cellRenderer,
TableCellRenderer headerRenderer)
Creates a TableColumn with the specified model index, width, and cell and header renderers. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener to be notified
of property changes to the column. |
TableCellRenderer |
getCellRenderer()
Retrieves the TableCellRenderer used to render values
contained in the column. |
TableCellRenderer |
getHeaderRenderer()
Returns the TableCellRenderer used to render the
header cell of this column. |
java.lang.Object |
getHeaderValue()
Returns the header value for this column. |
java.lang.Object |
getIdentifier()
Returns the identifier for this column. |
int |
getModelIndex()
Returns the column index of the model which this TableColumn represents. |
Extent |
getWidth()
Returns the width of the column. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from being notified
of property changes to the column. |
void |
setCellRenderer(TableCellRenderer newValue)
Sets the TableCellRenderer used to render values
contained in the column. |
void |
setHeaderRenderer(TableCellRenderer newValue)
Sets the TableCellRenderer used to render the
header cell of this column. |
void |
setHeaderValue(java.lang.Object newValue)
Sets the header value for this column. |
void |
setIdentifier(java.lang.Object newValue)
Sets the identifier for this column. |
void |
setModelIndex(int newValue)
Sets the index of the column in the TableModel which
this TableColumn object represents. |
void |
setWidth(Extent newValue)
Sets the width of the column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CELL_RENDERER_CHANGED_PROPERTY
public static final java.lang.String HEADER_RENDERER_CHANGED_PROPERTY
public static final java.lang.String HEADER_VALUE_CHANGED_PROPERTY
public static final java.lang.String IDENTIFIER_CHANGED_PROPERTY
public static final java.lang.String MODEL_INDEX_CHANGED_PROPERTY
public static final java.lang.String WIDTH_CHANGED_PROPERTY
Constructor Detail |
---|
public TableColumn(int modelIndex)
TableColumn
with the specified model index,
undefined width, and undefined cell and header renderers.
modelIndex
- the column index of model data visualized by this
columnpublic TableColumn(int modelIndex, Extent width)
modelIndex
- the column index of model data visualized by this
columnwidth
- the column widthpublic TableColumn(int modelIndex, Extent width, TableCellRenderer cellRenderer, TableCellRenderer headerRenderer)
modelIndex
- the column index of model data visualized by this
columnwidth
- the column widthcellRenderer
- the renderer to use for rendering model valuesheaderRenderer
- the renderer to use for rendering the header cellMethod Detail |
---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
PropertyChangeListener
to be notified
of property changes to the column.
l
- the listener to addpublic TableCellRenderer getCellRenderer()
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.
public TableCellRenderer getHeaderRenderer()
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.
public java.lang.Object getHeaderValue()
public java.lang.Object getIdentifier()
Table
component.
public int getModelIndex()
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.
public Extent getWidth()
Extent
s with
fixed or percentile units.
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
PropertyChangeListener
from being notified
of property changes to the column.
l
- the listener to removepublic void setCellRenderer(TableCellRenderer newValue)
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.
newValue
- the new cell rendererpublic void setHeaderRenderer(TableCellRenderer newValue)
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.
newValue
- the new header cell rendererpublic void setHeaderValue(java.lang.Object newValue)
newValue
- the new header valuepublic void setIdentifier(java.lang.Object newValue)
newValue
- The new identifier for this column.public void setModelIndex(int newValue)
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.
newValue
- the index of the column in the modelpublic void setWidth(Extent newValue)
Extent
s with
fixed or percentile units.
newValue
- the new width
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |