|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.extensions.markup.html.tree.table.AbstractColumn
org.apache.wicket.extensions.markup.html.tree.table.AbstractPropertyColumn<T>
T - the type of the property that is rendered in this columnpublic abstract class AbstractPropertyColumn<T>
Convenience class for building tree columns.
| Constructor Summary | |
|---|---|
AbstractPropertyColumn(ColumnLocation location,
String header,
String propertyExpression)
Creates the tree column. |
|
| Method Summary | |
|---|---|
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(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). |
| Methods inherited from class org.apache.wicket.extensions.markup.html.tree.table.AbstractColumn |
|---|
getLocation, getSpan, getTreeTable, isVisible, newHeader, setTreeTable |
| 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.tree.table.IColumn |
|---|
newCell, newCell |
| Constructor Detail |
|---|
public 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 access| Method Detail |
|---|
public IConverter<T> getConverter()
public Locale getLocale()
public void setConverter(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()
public String getNodeValue(TreeNode node)
node - The node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||