|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.table.TableHeader
public class TableHeader
A representation of a table's header.
Nested Class Summary | |
---|---|
static class |
TableHeader.DefaultHeaderRenderer
A default renderer for table header cells. |
Field Summary | |
---|---|
static java.lang.String |
HEIGHT_CHANGED_PROPERTY
|
Constructor Summary | |
---|---|
TableHeader()
Creates a table header. |
Method Summary | |
---|---|
TableCellRenderer |
getDefaultRenderer()
Returns the default cell renderer. |
int |
getHeight()
Returns the height of the table header. |
Component |
getRenderedComponent(int column)
Returns the contents of the header cell at the specified column. |
Table |
getTable()
Returns the table component with which this TableHeader is associated. |
void |
invalidate()
Marks the table header as needing to be re-rendered. |
void |
setDefaultRenderer(TableCellRenderer defaultRenderer)
Sets the default cell renderer that will be used if a column does not have an assigned renderer. |
void |
setHeight(int newValue)
Sets the height of the table header. |
void |
setTable(Table newValue)
Sets the table component with which this TableHeader is associated. |
void |
validate()
Updates the Table component to reflect its model. |
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 HEIGHT_CHANGED_PROPERTY
Constructor Detail |
---|
public TableHeader()
Method Detail |
---|
public TableCellRenderer getDefaultRenderer()
public int getHeight()
HeightUnits property.
public Component getRenderedComponent(int column)
column
- The column of the rendered header cell component to return.
public Table getTable()
public void invalidate()
public void setDefaultRenderer(TableCellRenderer defaultRenderer)
defaultRenderer
- The new default renderer.public void setTable(Table newValue)
newValue
- The table component with which this TableHeader is associated.public void setHeight(int newValue)
newValue
- The new height of the table header. The units of this value
are specified by the underlying table's
HeightUnits property.
public void validate()
Table
component to reflect its model.
validate
in interface Component
validate
in class AbstractComponent
Component.validate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |