M - grid model object typeI - row/item model object typeP - type of the propertypublic class PropertyColumn<M,I,P,S> extends AbstractLightWeightColumn<M,I,S>
| Constructor and Description |
|---|
PropertyColumn(org.apache.wicket.model.IModel<String> headerModel,
String propertyExpression)
Constructor.
|
PropertyColumn(org.apache.wicket.model.IModel<String> headerModel,
String propertyExpression,
S sortProperty)
Constructor.
|
PropertyColumn(String columnId,
org.apache.wicket.model.IModel<String> headerModel,
String propertyExpression)
Constructor.
|
PropertyColumn(String columnId,
org.apache.wicket.model.IModel<String> headerModel,
String propertyExpression,
S sortProperty)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected <C> CharSequence |
convertToString(C object) |
protected <C> org.apache.wicket.util.convert.IConverter<C> |
getConverter(Class<C> type) |
protected Locale |
getLocale() |
protected I |
getModelObject(org.apache.wicket.model.IModel<I> rowModel) |
protected P |
getProperty(Object object,
String propertyExpression) |
String |
getPropertyExpression()
Returns the property expression.
|
boolean |
isEscapeMarkup()
Returns whether the markup will be escaped.
|
IRenderable<I> |
newCell(org.apache.wicket.model.IModel<I> rowModel)
Creates a new
IRenderable instance that is used to render to render the output of
cell for given row. |
PropertyColumn<M,I,P,S> |
setEscapeMarkup(boolean escape)
Sets whether the markup will be escaped.
|
isLightWeight, newCellcellClicked, detach, getCellCssClass, getColSpan, getGrid, getHeaderCssClass, getHeaderModel, getHeaderTooltipModel, getId, getInitialSize, getMaxSize, getMinSize, getSizeUnit, getSortProperty, getWrapText, isReorderable, isResizable, newHeader, setGrid, setHeaderTooltipModel, setInitialSize, setMaxSize, setMinSize, setReorderable, setResizable, setSizeUnit, setWrapTextpublic PropertyColumn(String columnId, org.apache.wicket.model.IModel<String> headerModel, String propertyExpression, S sortProperty)
columnId - column identified (must be unique within the grid)headerModel - model for column headerpropertyExpression - property expression used to get the displayed value for row objectsortProperty - optional string that will be returned by ISortState to indicate that the
column is being sortedpublic PropertyColumn(String columnId, org.apache.wicket.model.IModel<String> headerModel, String propertyExpression)
columnId - column identified (must be unique within the grid)headerModel - model for column headerpropertyExpression - property expression used to get the displayed value for row objectpublic PropertyColumn(org.apache.wicket.model.IModel<String> headerModel, String propertyExpression, S sortProperty)
headerModel - model for column headerpropertyExpression - property expression used to get the displayed value for row objectsortProperty - optional string that will be returned by ISortState to indicate that the
column is being sortedpublic PropertyColumn(org.apache.wicket.model.IModel<String> headerModel, String propertyExpression)
headerModel - model for column headerpropertyExpression - property expression used to get the displayed value for row objectpublic PropertyColumn<M,I,P,S> setEscapeMarkup(boolean escape)
false if the property contains
html snippets that need to be rendered as html (without being escaped).escape - this (useful for method chaining)public boolean isEscapeMarkup()
truefalse otherwiseprotected <C> org.apache.wicket.util.convert.IConverter<C> getConverter(Class<C> type)
protected Locale getLocale()
protected <C> CharSequence convertToString(C object)
public IRenderable<I> newCell(org.apache.wicket.model.IModel<I> rowModel)
IRenderable instance that is used to render to render the output of
cell for given row. This method is called for rows that are lightweight (
IGridColumn.isLightWeight(IModel) returns true ).newCell in interface IGridColumn<M,I,S>newCell in class AbstractLightWeightColumn<M,I,S>rowModel - model for given rowIRenderable instancepublic String getPropertyExpression()
Copyright © 2015. All rights reserved.