public abstract class

Header

extends Object
java.lang.Object
   ↳ com.google.gwt.user.cellview.client.Header<H>
Known Direct Subclasses

Class Overview

A table column header or footer.

Summary

Public Constructors
Header(Cell<H> cell)
Construct a Header with a given Cell.
Public Methods
Cell<H> getCell()
Return the Cell responsible for rendering items in the header.
Object getKey()
Get the key for the header value.
abstract H getValue()
Return the header value.
void onBrowserEvent(Cell.Context context, Element elem, NativeEvent event)
Handle a browser event that took place within the header.
void render(Cell.Context context, SafeHtmlBuilder sb)
Render the header.
void setUpdater(ValueUpdater<H> updater)
Set the ValueUpdater.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Header (Cell<H> cell)

Construct a Header with a given Cell.

Parameters
cell the Cell responsible for rendering items in the header

Public Methods

public Cell<H> getCell ()

Return the Cell responsible for rendering items in the header.

Returns
  • the header Cell

public Object getKey ()

Get the key for the header value. By default, the key is the same as the value. Override this method to return a custom key.

Returns
  • the key associated with the value

public abstract H getValue ()

Return the header value.

Returns
  • the header value

public void onBrowserEvent (Cell.Context context, Element elem, NativeEvent event)

Handle a browser event that took place within the header.

Parameters
context the context of the header
elem the parent Element
event the native browser event

public void render (Cell.Context context, SafeHtmlBuilder sb)

Render the header.

Parameters
context the context of the header
sb a SafeHtmlBuilder to render into

public void setUpdater (ValueUpdater<H> updater)

Set the ValueUpdater.

Parameters
updater the value updater to use