|
||||||||||
| 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>
T - public abstract class AbstractColumn<T>
A helper implementation for the IColumn interface
| Constructor Summary | |
|---|---|
AbstractColumn(IModel<String> displayModel)
|
|
AbstractColumn(IModel<String> displayModel,
String sortProperty)
|
|
| Method Summary | |
|---|---|
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. |
String |
getSortProperty()
Returns the name of the property that this header sorts. |
boolean |
isSortable()
Returns true if this header should be a sortable header |
| 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,
String 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 String getSortProperty()
IColumn
getSortProperty in interface IColumn<T>IColumn.getSortProperty()public boolean isSortable()
IColumn
isSortable in interface IColumn<T>IColumn.isSortable()public Component getHeader(String componentId)
IColumn
getHeader in interface IColumn<T>componentId - component id for the returned Component
IColumn.getHeader(java.lang.String)public void detach()
IDetachable
detach in interface IDetachableIDetachable.detach()public String getCssClass()
IStyledColumn
getCssClass in interface IStyledColumn<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||