Class ListColumn<T>
- java.lang.Object
-
- org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,String>
-
- org.hippoecm.frontend.plugins.standards.list.ListColumn<T>
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>
,org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<T,String>
,org.apache.wicket.extensions.markup.html.repeater.data.table.IStyledColumn<T,String>
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
public class ListColumn<T> extends org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,String>
Definition of a column in aListDataTable
. Can be used to define sorting, cell renderers and attribute modifiers that will be applied to the repeaterItem
. By default, the renderer used is theNameRenderer
, that renders the (translated) name of a JCR node.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListColumn(org.apache.wicket.model.IModel<String> displayModel, String sortProperty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCell(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item, String componentId, org.apache.wicket.model.IModel<T> model)
protected void
addCssClasses(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item)
protected void
addLinkBehavior(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item, org.apache.wicket.model.IModel<T> model)
void
detach()
Comparator<T>
getComparator()
String
getCssClass()
IListCellRenderer<T>
getRenderer()
protected boolean
isLink()
void
populateItem(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item, String componentId, org.apache.wicket.model.IModel<T> model)
void
setAttributeModifier(AbstractListAttributeModifier<T> attributeModifier)
void
setComparator(Comparator<T> comparator)
void
setCssClass(String cssClass)
void
setLink(boolean isLink)
void
setRenderer(IListCellRenderer<T> renderer)
-
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn
getDisplayModel, getHeader, getSortProperty
-
-
-
-
Method Detail
-
getCssClass
public String getCssClass()
-
setCssClass
public void setCssClass(String cssClass)
-
setComparator
public void setComparator(Comparator<T> comparator)
-
getComparator
public Comparator<T> getComparator()
-
setRenderer
public void setRenderer(IListCellRenderer<T> renderer)
-
getRenderer
public IListCellRenderer<T> getRenderer()
-
setAttributeModifier
public void setAttributeModifier(AbstractListAttributeModifier<T> attributeModifier)
-
setLink
public void setLink(boolean isLink)
-
detach
public void detach()
-
isLink
protected boolean isLink()
-
populateItem
public void populateItem(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item, String componentId, org.apache.wicket.model.IModel<T> model)
-
addCell
protected void addCell(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item, String componentId, org.apache.wicket.model.IModel<T> model)
-
addLinkBehavior
protected void addLinkBehavior(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item, org.apache.wicket.model.IModel<T> model)
-
addCssClasses
protected void addCssClasses(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item)
-
-