T - the type of the property that is rendered in this columnpublic abstract class AbstractPropertyColumn<T> extends AbstractColumn
| Constructor and Description |
|---|
AbstractPropertyColumn(ColumnLocation location,
org.apache.wicket.model.IModel<String> header,
String propertyExpression)
Creates the tree column.
|
AbstractPropertyColumn(ColumnLocation location,
String header,
String propertyExpression)
Creates the tree column.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.wicket.util.convert.IConverter<T> |
getConverter()
Returns the converter or null if no converter is specified.
|
Locale |
getLocale()
Returns the locale or null if no locale is specified.
|
String |
getNodeValue(TreeNode node)
Returns the string representation of the node.
|
protected String |
getPropertyExpression()
Returns the property expression.
|
void |
setConverter(org.apache.wicket.util.convert.IConverter<T> converter)
By default the property is converted to string using
toString method. |
void |
setLocale(Locale locale)
Sets the locale to be used as parameter for custom converter (if one is specified).
|
getLocation, getSpan, getTreeTable, isVisible, newHeader, setTreeTablepublic AbstractPropertyColumn(ColumnLocation location, String header, String propertyExpression)
location - Specifies how the column should be aligned and what his size should beheader - Header captionpropertyExpression - Expression for property accesspublic AbstractPropertyColumn(ColumnLocation location, org.apache.wicket.model.IModel<String> header, String propertyExpression)
location - Specifies how the column should be aligned and what his size should beheader - Header captionpropertyExpression - Expression for property accesspublic org.apache.wicket.util.convert.IConverter<T> getConverter()
public Locale getLocale()
public void setConverter(org.apache.wicket.util.convert.IConverter<T> converter)
toString method. If you
want to alter this behavior, you can specify a custom converter.converter - any converterpublic void setLocale(Locale locale)
locale - Any localeprotected String getPropertyExpression()
Copyright © 2016. All Rights Reserved.