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 a
ListDataTable
. Can be used to define sorting,
cell renderers and attribute modifiers that will be applied to the repeater Item
.
By default, the renderer used is the NameRenderer
, that renders the (translated)
name of a JCR node.- See Also:
-
Constructor Summary
ConstructorDescriptionListColumn
(org.apache.wicket.model.IModel<String> displayModel, String sortProperty) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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()
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
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
getHeaderColspan, getHeaderRowspan, isSortable
-
Constructor Details
-
ListColumn
-
-
Method Details
-
getCssClass
-
setCssClass
-
setComparator
-
getComparator
-
setRenderer
-
getRenderer
-
setAttributeModifier
-
setLink
public void setLink(boolean isLink) -
detach
public void detach() -
isLink
protected boolean isLink() -
populateItem
-
addCell
-
addLinkBehavior
-
addCssClasses
protected void addCssClasses(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item)
-