Class TreeColumn<T,S>
- java.lang.Object
-
- org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,S>
-
- org.apache.wicket.extensions.markup.html.repeater.tree.table.AbstractTreeColumn<T,S>
-
- org.apache.wicket.extensions.markup.html.repeater.tree.table.TreeColumn<T,S>
-
- Type Parameters:
T- node typeS- the type of the sort property
- All Implemented Interfaces:
Serializable,ICellPopulator<T>,IColumn<T,S>,IStyledColumn<T,S>,ITreeColumn<T,S>,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable
public class TreeColumn<T,S> extends AbstractTreeColumn<T,S>
A column displaying the tree nodes hierarchy.- Author:
- svenmeier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TreeColumn(org.apache.wicket.model.IModel<String> displayModel)Construct.TreeColumn(org.apache.wicket.model.IModel<String> displayModel, S sortProperty)Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCssClass()Returns the css class for this column.voidpopulateItem(org.apache.wicket.markup.repeater.Item<ICellPopulator<T>> cellItem, String componentId, org.apache.wicket.model.IModel<T> rowModel)Method used to populate a cell in theDataGridViewImplementation 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
-
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, getHeaderColspan, getHeaderRowspan, getSortProperty, isSortable
-
-
-
-
Constructor Detail
-
TreeColumn
public TreeColumn(org.apache.wicket.model.IModel<String> displayModel)
Construct.- Parameters:
displayModel- model used to generate header text
-
TreeColumn
public TreeColumn(org.apache.wicket.model.IModel<String> displayModel, S sortProperty)
Construct.- Parameters:
displayModel- model used to generate header textsortProperty- sort property
-
-
Method Detail
-
getCssClass
public String getCssClass()
Description copied from interface:IStyledColumnReturns the css class for this column.- Specified by:
getCssClassin interfaceIStyledColumn<T,S>- Overrides:
getCssClassin classAbstractColumn<T,S>- Returns:
- CSS class name
-
populateItem
public void populateItem(org.apache.wicket.markup.repeater.Item<ICellPopulator<T>> cellItem, String componentId, org.apache.wicket.model.IModel<T> rowModel)
Description copied from interface:ICellPopulatorMethod used to populate a cell in theDataGridViewImplementation 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 renderedcomponentId- 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
-
-