Class JcrMultiPropertyValueModel<T extends Serializable>
- java.lang.Object
-
- org.hippoecm.frontend.model.properties.JcrMultiPropertyValueModel<T>
-
- 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 Summary
Constructors Constructor Description JcrMultiPropertyValueModel(JcrItemModel<Property> itemModel)
JcrMultiPropertyValueModel(JcrPropertyModel<T> propertyModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detach()
boolean
equals(Object object)
JcrItemModel<Property>
getItemModel()
List<T>
getObject()
Property
getProperty()
int
hashCode()
protected List<T>
load()
void
setObject(List<T> objects)
String
toString()
-
-
-
Constructor Detail
-
JcrMultiPropertyValueModel
public JcrMultiPropertyValueModel(JcrItemModel<Property> itemModel)
-
JcrMultiPropertyValueModel
public JcrMultiPropertyValueModel(JcrPropertyModel<T> propertyModel)
-
-
Method Detail
-
getProperty
public Property getProperty()
-
getItemModel
public JcrItemModel<Property> getItemModel()
-
getObject
public List<T> getObject()
- Specified by:
getObject
in interfaceorg.apache.wicket.model.IModel<T extends Serializable>
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
- Specified by:
detach
in interfaceorg.apache.wicket.model.IModel<T extends Serializable>
-
setObject
public void setObject(List<T> objects)
- Specified by:
setObject
in interfaceorg.apache.wicket.model.IModel<T extends Serializable>
-
-