Module org.apache.wicket.extensions
Interface IColumn<T,S>
- Type Parameters:
T
- the type of the object that will be rendered in this column's cellsS
- the type of the sorting parameter
- All Superinterfaces:
ICellPopulator<T>
,IClusterable
,IDetachable
,Serializable
- All Known Subinterfaces:
IExportableColumn<T,
,S> IFilteredColumn<T,
,S> IStyledColumn<T,
,S> ITreeColumn<T,
S>
- All Known Implementing Classes:
AbstractColumn
,AbstractExportableColumn
,AbstractTreeColumn
,ChoiceFilteredPropertyColumn
,FilteredAbstractColumn
,FilteredPropertyColumn
,HeaderlessColumn
,LambdaColumn
,PropertyColumn
,TextFilteredPropertyColumn
,TreeColumn
An interface that represents a column in the
DefaultDataTable
- Author:
- Igor Vaynberg ( ivaynberg )
-
Method Summary
Modifier and TypeMethodDescriptionReturns the component that will be used as the header for the column.default int
default int
Returns the property that this header sorts on.default boolean
Returns true if the header of the column should be sortableMethods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator
populateItem
Methods inherited from interface org.apache.wicket.model.IDetachable
detach
-
Method Details
-
getHeader
Returns the component that will be used as the header for the column. This component will be contained in <span> tags.- Parameters:
componentId
- component id for the returned Component- Returns:
- component that will be used as the header for the column
-
getSortProperty
Returns the property that this header sorts on. Ifnull
is returned the header will be not sortable.- Returns:
- the sort property
-
isSortable
Returns true if the header of the column should be sortable- Returns:
- true if header should be sortable
-
getHeaderRowspan
- Returns:
- The number of rows the header of this column should span
-
getHeaderColspan
- Returns:
- The number of columns the header of this column should span
-