|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.extensions.markup.html.tree.table.AbstractColumn org.apache.wicket.extensions.markup.html.tree.table.AbstractRenderableColumn org.apache.wicket.extensions.markup.html.tree.table.PropertyRenderableColumn
public class PropertyRenderableColumn
Lightweight column that uses a property expression to get the value from the node.
Constructor Summary | |
---|---|
PropertyRenderableColumn(ColumnLocation location,
java.lang.String header,
java.lang.String propertyExpression)
Creates the columns. |
Method Summary | |
---|---|
IConverter |
getConverter()
Returns the converter or null if no converter is specified. |
java.util.Locale |
getLocale()
Returns the locale or null if no locale is specified. |
java.lang.String |
getNodeValue(javax.swing.tree.TreeNode node)
Returns the string value for the provided node. |
protected java.lang.String |
getPropertyExpression()
Returns the property expression. |
void |
setConverter(IConverter converter)
By default the property is converted to string using toString method. |
void |
setLocale(java.util.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.AbstractRenderableColumn |
---|
isContentAsTooltip, isEscapeContent, newCell, newCell, setContentAsTooltip, setEscapeContent |
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 |
Constructor Detail |
---|
public PropertyRenderableColumn(ColumnLocation location, java.lang.String header, java.lang.String propertyExpression)
location
- Specifies how the column should be aligned and what his size should beheader
- Header captionpropertyExpression
- Expression for property accessMethod Detail |
---|
public IConverter getConverter()
public java.util.Locale getLocale()
public java.lang.String getNodeValue(javax.swing.tree.TreeNode node)
AbstractRenderableColumn
getNodeValue
in class AbstractRenderableColumn
node
- Determines the position in tree
AbstractRenderableColumn.getNodeValue(TreeNode)
public void setConverter(IConverter converter)
toString
method. If you
want to alter this behavior, you can specify a custom converter.
converter
- any converterpublic void setLocale(java.util.Locale locale)
locale
- Any localeprotected java.lang.String getPropertyExpression()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |