|
NextApp Echo3 Extras v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.extras.app.tree.TreeColumn
public class TreeColumn
A description of a single column of a Tree
.
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 | |
---|---|
TreeColumn(int modelIndex)
Creates a TreeColumn with the specified model index,
undefined width, and undefined cell and header renderers. |
|
TreeColumn(int modelIndex,
nextapp.echo.app.Extent width)
Creates a TreeColumn with the specified model index and width, and undefined cell and header renderers. |
|
TreeColumn(int modelIndex,
nextapp.echo.app.Extent width,
TreeCellRenderer cellRenderer,
TreeCellRenderer headerRenderer)
Creates a TreeColumn 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. |
TreeCellRenderer |
getCellRenderer()
Retrieves the TreeCellRenderer used to render values
contained in the column. |
TreeCellRenderer |
getHeaderRenderer()
Returns the TreeCellRenderer 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 TreeColumn represents. |
nextapp.echo.app.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(TreeCellRenderer newValue)
Sets the TreeCellRenderer used to render values
contained in the column. |
void |
setHeaderRenderer(TreeCellRenderer newValue)
Sets the TreeCellRenderer 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 TreeModel which
this TreeColumn object represents. |
void |
setWidth(nextapp.echo.app.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 TreeColumn(int modelIndex)
TreeColumn
with the specified model index,
undefined width, and undefined cell and header renderers.
modelIndex
- the column index of model data visualized by this
columnpublic TreeColumn(int modelIndex, nextapp.echo.app.Extent width)
modelIndex
- the column index of model data visualized by this
columnwidth
- the column widthpublic TreeColumn(int modelIndex, nextapp.echo.app.Extent width, TreeCellRenderer cellRenderer, TreeCellRenderer 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 TreeCellRenderer getCellRenderer()
TreeCellRenderer
used to render values
contained in the column. The value of this property may be null,
in which case the tree should revert to using its default cell
renderer.
public TreeCellRenderer getHeaderRenderer()
TreeCellRenderer
used to render the
header cell of this column. The value of this property may be null,
in which case the tree should revert to using its default cell
renderer.
public java.lang.Object getHeaderValue()
public java.lang.Object getIdentifier()
Tree
component.
public int getModelIndex()
TreeColumn
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 nextapp.echo.app.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(TreeCellRenderer newValue)
TreeCellRenderer
used to render values
contained in the column. The value of this property may be null,
in which case the tree should revert to using its default cell
renderer.
newValue
- the new cell rendererpublic void setHeaderRenderer(TreeCellRenderer newValue)
TreeCellRenderer
used to render the
header cell of this column. The value of this property may be null,
in which case the tree 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)
TreeModel
which
this TreeColumn
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(nextapp.echo.app.Extent newValue)
Extent
s with
fixed or percentile units.
newValue
- the new width
|
NextApp Echo3 Extras v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |