Class 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:
    Serialized Form
    • Constructor Detail

      • ListColumn

        public ListColumn​(org.apache.wicket.model.IModel<String> displayModel,
                          String sortProperty)
    • Method Detail

      • getCssClass

        public String getCssClass()
        Specified by:
        getCssClass in interface org.apache.wicket.extensions.markup.html.repeater.data.table.IStyledColumn<T,​String>
        Overrides:
        getCssClass in class org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,​String>
      • setCssClass

        public void setCssClass​(String cssClass)
      • setComparator

        public void setComparator​(Comparator<T> comparator)
      • setLink

        public void setLink​(boolean isLink)
      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable
        Overrides:
        detach in class org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,​String>
      • 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)