T
- the type of the object that will be rendered in this column's cellsS
- the type of the sort propertypublic abstract class AbstractColumn<T,S> extends Object implements IStyledColumn<T,S>
Constructor and Description |
---|
AbstractColumn(IModel<String> displayModel) |
AbstractColumn(IModel<String> displayModel,
S sortProperty) |
Modifier and Type | Method and Description |
---|---|
void |
detach()
Detaches model after use.
|
String |
getCssClass()
Returns the css class for this column.
|
IModel<String> |
getDisplayModel() |
Component |
getHeader(String componentId)
Returns the component that will be used as the header for the column.
|
S |
getSortProperty()
Returns the property that this header sorts on.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeaderColspan, getHeaderRowspan, isSortable
populateItem
public AbstractColumn(IModel<String> displayModel, S sortProperty)
displayModel
- model used to generate header textsortProperty
- sort property this column representspublic IModel<String> getDisplayModel()
public S getSortProperty()
IColumn
null
is returned the header will be not sortable.getSortProperty
in interface IColumn<T,S>
public Component getHeader(String componentId)
IColumn
public void detach()
IDetachable
detach
in interface IDetachable
public String getCssClass()
IStyledColumn
getCssClass
in interface IStyledColumn<T,S>
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.