NextApp Echo
1.0.5

nextapp.echo.table
Class TableHeader

java.lang.Object
  extended bynextapp.echo.Component
      extended bynextapp.echo.table.TableHeader
All Implemented Interfaces:
java.io.Serializable

public class TableHeader
extends Component
implements java.io.Serializable

A representation of a table's header.

See Also:
Serialized Form

Nested Class Summary
static class TableHeader.DefaultHeaderRenderer
          A default renderer for table header cells.
 
Field Summary
private  TableCellRenderer defaultRenderer
           
private  Table table
           
 
Fields inherited from class nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
TableHeader()
          Creates a table header.
 
Method Summary
 TableCellRenderer getDefaultRenderer()
          Returns the default cell renderer.
 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 setTable(Table table)
          Sets the table component with which this TableHeader is associated.
 
Methods inherited from class nextapp.echo.Component
add, add, addHierarchyListener, addPropertyChangeListener, applyStyle, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultRenderer

private TableCellRenderer defaultRenderer

table

private Table table
Constructor Detail

TableHeader

public TableHeader()
Creates a table header.

Method Detail

getDefaultRenderer

public TableCellRenderer getDefaultRenderer()
Returns the default cell renderer.

Returns:
The default cell renderer.

getTable

public Table getTable()
Returns the table component with which this TableHeader is associated.

Returns:
The table component with which this TableHeader is associated.

invalidate

public void invalidate()
Marks the table header as needing to be re-rendered.


setDefaultRenderer

public void setDefaultRenderer(TableCellRenderer defaultRenderer)
Sets the default cell renderer that will be used if a column does not have an assigned renderer.

Parameters:
defaultRenderer - The new default renderer.

setTable

public void setTable(Table table)
Sets the table component with which this TableHeader is associated.

Parameters:
table - The table component with which this TableHeader is associated.

NextApp Echo
1.0.5