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.
|
int |
getHeaderColspan() |
int |
getHeaderRowspan() |
S |
getSortProperty()
Returns the property that this header sorts on.
|
boolean |
isSortable()
Returns true if the header of the column should be sortable
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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>
IColumn.getSortProperty()
public boolean isSortable()
IColumn
isSortable
in interface IColumn<T,S>
IColumn.isSortable()
public Component getHeader(String componentId)
IColumn
getHeader
in interface IColumn<T,S>
componentId
- component id for the returned ComponentIColumn.getHeader(java.lang.String)
public void detach()
IDetachable
detach
in interface IDetachable
IDetachable.detach()
public String getCssClass()
IStyledColumn
getCssClass
in interface IStyledColumn<T,S>
public int getHeaderRowspan()
public int getHeaderColspan()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.