public class ListColumn<T> extends org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,String>
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.Constructor and Description |
---|
ListColumn(org.apache.wicket.model.IModel<String> displayModel,
String sortProperty) |
Modifier and Type | Method and 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) |
public String getCssClass()
public void setCssClass(String cssClass)
public void setComparator(Comparator<T> comparator)
public Comparator<T> getComparator()
public void setRenderer(IListCellRenderer<T> renderer)
public IListCellRenderer<T> getRenderer()
public void setAttributeModifier(AbstractListAttributeModifier<T> attributeModifier)
public void setLink(boolean isLink)
public void detach()
protected boolean isLink()
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)
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 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)
protected void addCssClasses(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item)
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.