org.apache.wicket.examples.ajax.builtin.tree
Class PropertyEditableColumn<T>
java.lang.Object
org.apache.wicket.extensions.markup.html.tree.table.AbstractColumn
org.apache.wicket.extensions.markup.html.tree.table.AbstractPropertyColumn<T>
org.apache.wicket.extensions.markup.html.tree.table.PropertyRenderableColumn<T>
org.apache.wicket.examples.ajax.builtin.tree.PropertyEditableColumn<T>
- Type Parameters:
T - the type of the property that is rendered in this column
- All Implemented Interfaces:
- Serializable, IColumn, IClusterable
public class PropertyEditableColumn<T>
- extends PropertyRenderableColumn<T>
Column, that either shows a readonly cell or an editable panel, depending on whether the current
row is selected.
- Author:
- Matej Knopp
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyEditableColumn
public PropertyEditableColumn(ColumnLocation location,
String header,
String propertyExpression)
- Column constructor.
- Parameters:
location - header - propertyExpression -
newCell
public Component newCell(MarkupContainer parent,
String id,
TreeNode node,
int level)
- Description copied from interface:
IColumn
- This method is used to populate the cell for given node in case when
IColumn.newCell(TreeNode, int) returned null.
- Specified by:
newCell in interface IColumn- Overrides:
newCell in class PropertyRenderableColumn<T>
- Parameters:
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 hierarchy
- Returns:
- The populated cell component
- See Also:
IColumn.newCell(MarkupContainer, String, TreeNode, int)
newCell
public IRenderable newCell(TreeNode node,
int level)
- Description copied from interface:
IColumn
- Creates the
IRenderable 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.
- Specified by:
newCell in interface IColumn- Overrides:
newCell in class PropertyRenderableColumn<T>
- Parameters:
node - TreeNode for the celllevel - Convenience parameter that indicates how deep the node is in hierarchy
- Returns:
- The cell renderer
- See Also:
IColumn.newCell(TreeNode, int)
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.