Package org.hippoecm.frontend.model
Class PropertyValueProvider
java.lang.Object
org.hippoecm.frontend.model.ItemModelWrapper<T>
org.hippoecm.frontend.model.AbstractProvider<Property,JcrPropertyValueModel>
org.hippoecm.frontend.model.PropertyValueProvider
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<Property>
,org.apache.wicket.util.io.IClusterable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Date
Deprecated.static final String
Deprecated.useDateConstants.EMPTY_DATE_VALUE
instead.Fields inherited from class org.hippoecm.frontend.model.AbstractProvider
elements
-
Constructor Summary
ConstructorDescriptionPropertyValueProvider
(IFieldDescriptor descriptor, ITypeDescriptor type, JcrItemModel<Property> itemModel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNew()
Add a new element.Retrieve theModelPathElement
to access an element.protected void
Method to be overridden by subclasses, to populate the list of elements.void
Move a model to the bottom of the list.void
moveToTop
(JcrPropertyValueModel model) Move a model to the top of the list.void
moveUp
(JcrPropertyValueModel model) Move a model up one position.void
remove
(JcrPropertyValueModel model) Remove a model from the list.Methods inherited from class org.hippoecm.frontend.model.AbstractProvider
detach, iterator, load, refresh, setItemModel, size
Methods inherited from class org.hippoecm.frontend.model.ItemModelWrapper
getItemModel, getObject, setObject
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.model.IModel
as, combineWith, filter, flatMap, isPresent, map, orElse, orElseGet
-
Field Details
-
EMPTY_DATE_VALUE
Deprecated.useDateConstants.EMPTY_DATE_VALUE
instead.- See Also:
-
EMPTY_DATE
Deprecated.useDateConstants.EMPTY_DATE
instead.
-
-
Constructor Details
-
PropertyValueProvider
public PropertyValueProvider(IFieldDescriptor descriptor, ITypeDescriptor type, JcrItemModel<Property> itemModel)
-
-
Method Details
-
getDescriptor
-
addNew
public void addNew()Description copied from class:AbstractProvider
Add a new element.- Specified by:
addNew
in classAbstractProvider<Property,
JcrPropertyValueModel>
-
remove
Description copied from class:AbstractProvider
Remove a model from the list.- Specified by:
remove
in classAbstractProvider<Property,
JcrPropertyValueModel> - Parameters:
model
- the model to remove
-
moveUp
Description copied from class:AbstractProvider
Move a model up one position.- Specified by:
moveUp
in classAbstractProvider<Property,
JcrPropertyValueModel> - Parameters:
model
- the model to move
-
moveToTop
Description copied from class:AbstractProvider
Move a model to the top of the list.- Specified by:
moveToTop
in classAbstractProvider<Property,
JcrPropertyValueModel> - Parameters:
model
- the model to move
-
moveToBottom
Description copied from class:AbstractProvider
Move a model to the bottom of the list.- Specified by:
moveToBottom
in classAbstractProvider<Property,
JcrPropertyValueModel> - Parameters:
model
- the model to move
-
getFieldElement
Description copied from class:AbstractProvider
Retrieve theModelPathElement
to access an element.- Specified by:
getFieldElement
in classAbstractProvider<Property,
JcrPropertyValueModel> - Parameters:
model
- the element to be made accessible- Returns:
- the ModelPathElement for the element
-
loadElements
protected void loadElements()Description copied from class:AbstractProvider
Method to be overridden by subclasses, to populate the list of elements.- Specified by:
loadElements
in classAbstractProvider<Property,
JcrPropertyValueModel>
-
DateConstants.EMPTY_DATE
instead.