T - the type of the property that is rendered in this columnpublic class PropertyRenderableColumn<T> extends AbstractPropertyColumn<T>
| Constructor and Description |
|---|
PropertyRenderableColumn(ColumnLocation location,
org.apache.wicket.model.IModel<String> header,
String propertyExpression)
Creates the column
|
PropertyRenderableColumn(ColumnLocation location,
String header,
String propertyExpression)
Creates the column
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isContentAsTooltip()
Returns whether the content should also be visible as tooltip of the cell.
|
boolean |
isEscapeContent()
Returns whether the special html characters of content will be escaped.
|
org.apache.wicket.Component |
newCell(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node,
int level)
This method is used to populate the cell for given node in case when
IColumn.newCell(TreeNode, int) returned null. |
IRenderable |
newCell(TreeNode node,
int level)
Creates the
IRenderable instance for given node. |
void |
setContentAsTooltip(boolean contentAsTooltip)
Sets whether the content should also be visible as tooltip (html title attribute) of the
cell.
|
void |
setEscapeContent(boolean escapeContent)
Sets whether the special html characters of content should be escaped.
|
getConverter, getLocale, getNodeValue, getPropertyExpression, setConverter, setLocalegetLocation, getSpan, getTreeTable, isVisible, newHeader, setTreeTablepublic PropertyRenderableColumn(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 PropertyRenderableColumn(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 boolean isContentAsTooltip()
public boolean isEscapeContent()
public org.apache.wicket.Component newCell(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node,
int level)
IColumnIColumn.newCell(TreeNode, int) returned null.parent - The parent to which the cell must be added. Can also be used to find the TreeTable
instance (using parent.findParent(TreeTable.cass))id - The component idnode - TreeNode for the celllevel - Convenience parameter that indicates how deep the node is in hierarchyIColumn.newCell(MarkupContainer, String, TreeNode, int)public IRenderable newCell(TreeNode node, int level)
IColumnIRenderable instance for given node. IRenderable can be used as
lightweight alternative to regular Component for cells, that don't require user interaction
(just display data).
If this method returns null, IColumn.newCell(MarkupContainer, String, TreeNode, int)
is used to popuplate the cell.
node - TreeNode for the celllevel - Convenience parameter that indicates how deep the node is in hierarchyIColumn.newCell(TreeNode, int)public void setContentAsTooltip(boolean contentAsTooltip)
contentAsTooltip - whether the content should also be visible as tooltippublic void setEscapeContent(boolean escapeContent)
escapeContent - Whether to espcape html charactersCopyright © 2016. All Rights Reserved.