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>,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
AbstractExportableColumn,AbstractTreeColumn,FilteredAbstractColumn,HeaderlessColumn,LambdaColumn,PropertyColumn
public abstract class AbstractColumn<T,S> extends Object implements IStyledColumn<T,S>
A helper implementation for the IColumn interface- Author:
- Igor Vaynberg ( ivaynberg )
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractColumn(org.apache.wicket.model.IModel<String> displayModel)AbstractColumn(org.apache.wicket.model.IModel<String> displayModel, S sortProperty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetach()StringgetCssClass()Returns the css class for this column.org.apache.wicket.model.IModel<String>getDisplayModel()org.apache.wicket.ComponentgetHeader(String componentId)Returns the component that will be used as the header for the column.SgetSortProperty()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 Detail
-
AbstractColumn
public AbstractColumn(org.apache.wicket.model.IModel<String> displayModel, S sortProperty)
- Parameters:
displayModel- model used to generate header textsortProperty- sort property this column represents
-
AbstractColumn
public AbstractColumn(org.apache.wicket.model.IModel<String> displayModel)
- Parameters:
displayModel- model used to generate header text
-
-
Method Detail
-
getDisplayModel
public org.apache.wicket.model.IModel<String> getDisplayModel()
- Returns:
- returns display model to be used for the header component
-
getSortProperty
public S getSortProperty()
Description copied from interface:IColumnReturns the property that this header sorts on. Ifnullis returned the header will be not sortable.- Specified by:
getSortPropertyin interfaceIColumn<T,S>- Returns:
- the sort property
-
getHeader
public org.apache.wicket.Component getHeader(String componentId)
Description copied from interface:IColumnReturns the component that will be used as the header for the column. This component will be contained in <span> tags.
-
detach
public void detach()
- Specified by:
detachin interfaceorg.apache.wicket.model.IDetachable
-
getCssClass
public String getCssClass()
Description copied from interface:IStyledColumnReturns the css class for this column.- Specified by:
getCssClassin interfaceIStyledColumn<T,S>- Returns:
- CSS class name
-
-