Module org.apache.wicket.extensions
Class AbstractColumn<T,S>
java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,S>
- Type Parameters:
T
- the type of the object that will be rendered in this column's cellsS
- the type of the sort property
- All Implemented Interfaces:
Serializable
,ICellPopulator<T>
,IColumn<T,
,S> IStyledColumn<T,
,S> IDetachable
,IClusterable
- Direct Known Subclasses:
AbstractExportableColumn
,AbstractTreeColumn
,FilteredAbstractColumn
,HeaderlessColumn
,LambdaColumn
,PropertyColumn
A helper implementation for the IColumn interface
- Author:
- Igor Vaynberg ( ivaynberg )
- See Also:
-
Constructor Summary
ConstructorDescriptionAbstractColumn
(IModel<String> displayModel) AbstractColumn
(IModel<String> displayModel, S sortProperty) -
Method Summary
Modifier and TypeMethodDescriptionvoid
detach()
Detaches model after use.Returns the css class for this column.Returns the component that will be used as the header for the column.Returns the property that this header sorts on.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator
populateItem
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn
getHeaderColspan, getHeaderRowspan, isSortable
-
Constructor Details
-
AbstractColumn
- Parameters:
displayModel
- model used to generate header textsortProperty
- sort property this column represents
-
AbstractColumn
- Parameters:
displayModel
- model used to generate header text
-
-
Method Details
-
getDisplayModel
- Returns:
- returns display model to be used for the header component
-
getSortProperty
Description copied from interface:IColumn
Returns the property that this header sorts on. Ifnull
is returned the header will be not sortable.- Specified by:
getSortProperty
in interfaceIColumn<T,
S> - Returns:
- the sort property
-
getHeader
Description copied from interface:IColumn
Returns the component that will be used as the header for the column. This component will be contained in <span> tags. -
detach
Description copied from interface:IDetachable
Detaches model after use. This is generally used to null out transient references that can be re-attached later.- Specified by:
detach
in interfaceIDetachable
-
getCssClass
Description copied from interface:IStyledColumn
Returns the css class for this column.- Specified by:
getCssClass
in interfaceIStyledColumn<T,
S> - Returns:
- CSS class name
-