|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.inmethod.grid.column.AbstractColumn<M,I>
com.inmethod.grid.column.AbstractLightWeightColumn<M,I>
com.inmethod.grid.column.PropertyColumn<M,I,P>
M - grid model object typeI - row/item model object typeP - type of the propertypublic class PropertyColumn<M,I,P>
A lightweight column that displays a property of row object specified by an property expression.
| Constructor Summary | |
|---|---|
PropertyColumn(IModel<String> headerModel,
String propertyExpression)
Constructor. |
|
PropertyColumn(IModel<String> headerModel,
String propertyExpression,
String sortProperty)
Constructor. |
|
PropertyColumn(String columnId,
IModel<String> headerModel,
String propertyExpression)
Constructor. |
|
PropertyColumn(String columnId,
IModel<String> headerModel,
String propertyExpression,
String sortProperty)
Constructor. |
|
| Method Summary | ||
|---|---|---|
protected
|
convertToString(C object)
|
|
protected
|
getConverter(Class<C> type)
|
|
protected Locale |
getLocale()
|
|
protected I |
getModelObject(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(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> |
setEscapeMarkup(boolean escape)
Sets whether the markup will be escaped. |
|
| Methods inherited from class com.inmethod.grid.column.AbstractLightWeightColumn |
|---|
isLightWeight, newCell |
| Methods inherited from class com.inmethod.grid.column.AbstractColumn |
|---|
cellClicked, 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, setWrapText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyColumn(String columnId,
IModel<String> headerModel,
String propertyExpression,
String 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 sorted
public PropertyColumn(String columnId,
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 object
public PropertyColumn(IModel<String> headerModel,
String propertyExpression,
String 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 sorted
public PropertyColumn(IModel<String> headerModel,
String propertyExpression)
headerModel - model for column headerpropertyExpression - property expression used to get the displayed value for row object| Method Detail |
|---|
public PropertyColumn<M,I,P> 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 otherwise
protected P getProperty(Object object,
String propertyExpression)
protected I getModelObject(IModel<I> rowModel)
protected <C> IConverter<C> getConverter(Class<C> type)
protected Locale getLocale()
protected <C> CharSequence convertToString(C object)
public IRenderable<I> newCell(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>newCell in class AbstractLightWeightColumn<M,I>rowModel - model for given row
IRenderable instancepublic String getPropertyExpression()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||