Class JcrMultiPropertyValueModel<T extends Serializable>

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<List<T>>, org.apache.wicket.util.io.IClusterable

    public class JcrMultiPropertyValueModel<T extends Serializable>
    extends Object
    implements org.apache.wicket.model.IModel<List<T>>
    Model of a multiple property with a Collection as object. Can be used for Wicket components that edit multiple property values directy, i.e. without a surrounding repeater, for instance a multiselect list.

    The contents of the list must be saved explicitly; i.e. modifying a returned list is not sufficient, the client must also invoke setObject(List).

    See Also:
    Serialized Form
    • Constructor Detail

      • JcrMultiPropertyValueModel

        public JcrMultiPropertyValueModel​(JcrItemModel<javax.jcr.Property> itemModel)
      • JcrMultiPropertyValueModel

        public JcrMultiPropertyValueModel​(JcrPropertyModel<T> propertyModel)
    • Method Detail

      • getProperty

        public javax.jcr.Property getProperty()
      • getItemModel

        public JcrItemModel<javax.jcr.Property> getItemModel()
      • getObject

        public List<T> getObject()
        Specified by:
        getObject in interface org.apache.wicket.model.IModel<T extends Serializable>
      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable
        Specified by:
        detach in interface org.apache.wicket.model.IModel<T extends Serializable>
      • setObject

        public void setObject​(List<T> objects)
        Specified by:
        setObject in interface org.apache.wicket.model.IModel<T extends Serializable>
      • load

        protected List<T> load()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object