T
- the row data typepublic interface FooterBuilder<T>
FooterBuilder
provides two optional ways to handle events, via a
Column
, a Header
, or both. If getColumn(Element)
returns a Column
given the target Element
of an event, cell
table will use it to enable features such as sorting. If
getHeader(Element)
returns a Header
, cell table will forward
the event to the Header
. You can specify both a Column
and
Header
.
The default implementation used by cell widgets is
DefaultHeaderOrFooterBuilder
.
Modifier and Type | Method and Description |
---|---|
TableSectionBuilder |
buildFooter()
Builds the DOM subtree for this footer.
|
Column<T,?> |
getColumn(Element elem)
Given an element in the DOM subtree returned by the most recent call to
buildFooter() , returns the Column that should be the target of any
button clicks or other events on that element, or null if the events should
be discarded. |
Header<?> |
getHeader(Element elem)
|
int |
getRowIndex(TableRowElement row)
Get the row index from the associated
TableRowElement (an TR element). |
boolean |
isColumn(Element elem)
Check if an element contains a
Column . |
boolean |
isHeader(Element elem)
Check if an element contains a
Header . |
TableSectionBuilder buildFooter()
If the footer is empty, return null.
TableSectionBuilder
representing the new footer, or null
if the footer is emptyColumn<T,?> getColumn(Element elem)
buildFooter()
, returns the Column that should be the target of any
button clicks or other events on that element, or null if the events should
be discarded. The column is used to support features such as column
sorting.elem
- the element that the contains columnHeader<?> getHeader(Element elem)
Header
,
implement this method to return the appropriate instance and cell table
will forward events originating in the element to the Header
.
Return null if events from the element should be discarded.elem
- the element that the contains headerHeader
contained by the elementint getRowIndex(TableRowElement row)
TableRowElement
(an TR element).row
- the row elementboolean isColumn(Element elem)
Column
. This method should return
false if and only if getColumn(Element)
would return null.elem
- the element of interestboolean isHeader(Element elem)
Header
. This method should return
false if and only if getHeader(Element)
would return null.elem
- the element of interest