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() |
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.
|
boolean |
isSortable()
Returns true if the header of the column should be sortable
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpopulateItempublic AbstractColumn(IModel<String> displayModel, S sortProperty)
displayModel - model used to generate header textsortProperty - sort property this column representspublic IModel<String> getDisplayModel()
public S getSortProperty()
IColumnnull is returned the header will be not sortable.getSortProperty in interface IColumn<T,S>IColumn.getSortProperty()public boolean isSortable()
IColumnisSortable in interface IColumn<T,S>IColumn.isSortable()public Component getHeader(String componentId)
IColumngetHeader in interface IColumn<T,S>componentId - component id for the returned ComponentIColumn.getHeader(java.lang.String)public void detach()
detach in interface IDetachableIDetachable.detach()public String getCssClass()
IStyledColumngetCssClass in interface IStyledColumn<T,S>Copyright © 2006–2015 Apache Software Foundation. All rights reserved.