org.apache.wicket.extensions.markup.html.repeater.tree.table
Class TreeColumn<T>

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T>
      extended by org.apache.wicket.extensions.markup.html.repeater.tree.table.AbstractTreeColumn<T>
          extended by org.apache.wicket.extensions.markup.html.repeater.tree.table.TreeColumn<T>
Type Parameters:
T - node type
All Implemented Interfaces:
Serializable, ICellPopulator<T>, IColumn<T>, IStyledColumn<T>, ITreeColumn<T>, IDetachable, IClusterable

public class TreeColumn<T>
extends AbstractTreeColumn<T>

A column displaying the tree nodes hierarchy.

Author:
svenmeier
See Also:
Serialized Form

Constructor Summary
TreeColumn(IModel<String> displayModel)
          Construct.
TreeColumn(IModel<String> displayModel, String sortProperty)
          Construct.
 
Method Summary
 String getCssClass()
          Returns the css class for this column.
 void populateItem(Item<ICellPopulator<T>> cellItem, String componentId, IModel<T> rowModel)
          Method used to populate a cell in the DataGridView Implementation MUST add a component to the cellItem using the component id provided by componentId argument, otherwise a WicketRuntimeException will be thrown
 
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.tree.table.AbstractTreeColumn
getTree, setTree
 
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn
detach, getDisplayModel, getHeader, getSortProperty, isSortable
 
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.repeater.data.table.IColumn
getHeader, getSortProperty, isSortable
 
Methods inherited from interface org.apache.wicket.model.IDetachable
detach
 

Constructor Detail

TreeColumn

public TreeColumn(IModel<String> displayModel)
Construct.

Parameters:
displayModel - model used to generate header text

TreeColumn

public TreeColumn(IModel<String> displayModel,
                  String sortProperty)
Construct.

Parameters:
displayModel - model used to generate header text
sortProperty - sort property
Method Detail

getCssClass

public String getCssClass()
Description copied from interface: IStyledColumn
Returns the css class for this column.

Specified by:
getCssClass in interface IStyledColumn<T>
Overrides:
getCssClass in class AbstractColumn<T>
Returns:
CSS class name

populateItem

public void populateItem(Item<ICellPopulator<T>> cellItem,
                         String componentId,
                         IModel<T> rowModel)
Description copied from interface: ICellPopulator
Method used to populate a cell in the DataGridView Implementation MUST add a component to the cellItem using the component id provided by componentId argument, otherwise a WicketRuntimeException will be thrown

Parameters:
cellItem - the item representing the current table cell being rendered
componentId - the id of the component used to render the cell (only one component should be added to the cell)
rowModel - the model of the row item being rendered. this model usually contains the model provided by the data provider.
See Also:
Item


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.