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>,org.apache.wicket.util.io.IClusterable,org.apache.wicket.model.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
public interface IColumn<T,S> extends ICellPopulator<T>
An interface that represents a column in theDefaultDataTable- Author:
- Igor Vaynberg ( ivaynberg )
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.apache.wicket.ComponentgetHeader(String componentId)Returns the component that will be used as the header for the column.default intgetHeaderColspan()default intgetHeaderRowspan()SgetSortProperty()Returns the property that this header sorts on.default booleanisSortable()Returns true if the header of the column should be sortable-
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator
populateItem
-
-
-
-
Method Detail
-
getHeader
org.apache.wicket.Component getHeader(String componentId)
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
S getSortProperty()
Returns the property that this header sorts on. Ifnullis returned the header will be not sortable.- Returns:
- the sort property
-
isSortable
default boolean isSortable()
Returns true if the header of the column should be sortable- Returns:
- true if header should be sortable
-
getHeaderRowspan
default int getHeaderRowspan()
- Returns:
- The number of rows the header of this column should span
-
getHeaderColspan
default int getHeaderColspan()
- Returns:
- The number of columns the header of this column should span
-
-