|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,S>
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>
A helper implementation for the IColumn interface
| Constructor Summary | |
|---|---|
AbstractColumn(IModel<String> displayModel)
|
|
AbstractColumn(IModel<String> displayModel,
S sortProperty)
|
|
| Method Summary | |
|---|---|
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 |
| 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 |
| Constructor Detail |
|---|
public AbstractColumn(IModel<String> displayModel,
S sortProperty)
displayModel - model used to generate header textsortProperty - sort property this column representspublic AbstractColumn(IModel<String> displayModel)
displayModel - model used to generate header text| Method Detail |
|---|
public 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()
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 Component
IColumn.getHeader(java.lang.String)public void detach()
detach in interface IDetachableIDetachable.detach()public String getCssClass()
IStyledColumn
getCssClass in interface IStyledColumn<T,S>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||