org.apache.wicket.examples.ajax.builtin.tree
Class PropertyEditableColumn
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
org.apache.wicket.examples.ajax.builtin.tree.PropertyEditableColumn
- All Implemented Interfaces:
- java.io.Serializable, IColumn, IClusterable
public class PropertyEditableColumn
- extends PropertyRenderableColumn
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,
java.lang.String header,
java.lang.String propertyExpression)
- Column constructor.
- Parameters:
location
- header
- propertyExpression
-
newCell
public Component newCell(MarkupContainer parent,
java.lang.String id,
javax.swing.tree.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 AbstractRenderableColumn
- 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(javax.swing.tree.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 AbstractRenderableColumn
- 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 © 2004-2010 Apache Software Foundation. All Rights Reserved.