Package org.hippoecm.frontend.model
Class PropertyValueProvider
- java.lang.Object
-
- org.hippoecm.frontend.model.ItemModelWrapper<T>
-
- org.hippoecm.frontend.model.AbstractProvider<javax.jcr.Property,JcrPropertyValueModel>
-
- org.hippoecm.frontend.model.PropertyValueProvider
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<javax.jcr.Property>
,org.apache.wicket.util.io.IClusterable
public class PropertyValueProvider extends AbstractProvider<javax.jcr.Property,JcrPropertyValueModel>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Date
EMPTY_DATE
Deprecated.useDateConstants.EMPTY_DATE
instead.static String
EMPTY_DATE_VALUE
Deprecated.useDateConstants.EMPTY_DATE_VALUE
instead.-
Fields inherited from class org.hippoecm.frontend.model.AbstractProvider
elements
-
-
Constructor Summary
Constructors Constructor Description PropertyValueProvider(IFieldDescriptor descriptor, ITypeDescriptor type, JcrItemModel<javax.jcr.Property> itemModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNew()
Add a new element.IFieldDescriptor
getDescriptor()
ModelPathElement
getFieldElement(JcrPropertyValueModel model)
Retrieve theModelPathElement
to access an element.protected void
loadElements()
Method to be overridden by subclasses, to populate the list of elements.void
moveToBottom(JcrPropertyValueModel model)
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
-
-
-
-
Field Detail
-
EMPTY_DATE_VALUE
@Deprecated public static final String EMPTY_DATE_VALUE
Deprecated.useDateConstants.EMPTY_DATE_VALUE
instead.- See Also:
- Constant Field Values
-
EMPTY_DATE
@Deprecated public static final Date EMPTY_DATE
Deprecated.useDateConstants.EMPTY_DATE
instead.
-
-
Constructor Detail
-
PropertyValueProvider
public PropertyValueProvider(IFieldDescriptor descriptor, ITypeDescriptor type, JcrItemModel<javax.jcr.Property> itemModel)
-
-
Method Detail
-
getDescriptor
public IFieldDescriptor getDescriptor()
-
addNew
public void addNew()
Description copied from class:AbstractProvider
Add a new element.- Specified by:
addNew
in classAbstractProvider<javax.jcr.Property,JcrPropertyValueModel>
-
remove
public void remove(JcrPropertyValueModel model)
Description copied from class:AbstractProvider
Remove a model from the list.- Specified by:
remove
in classAbstractProvider<javax.jcr.Property,JcrPropertyValueModel>
- Parameters:
model
- the model to remove
-
moveUp
public void moveUp(JcrPropertyValueModel model)
Description copied from class:AbstractProvider
Move a model up one position.- Specified by:
moveUp
in classAbstractProvider<javax.jcr.Property,JcrPropertyValueModel>
- Parameters:
model
- the model to move
-
moveToTop
public void moveToTop(JcrPropertyValueModel model)
Description copied from class:AbstractProvider
Move a model to the top of the list.- Specified by:
moveToTop
in classAbstractProvider<javax.jcr.Property,JcrPropertyValueModel>
- Parameters:
model
- the model to move
-
moveToBottom
public void moveToBottom(JcrPropertyValueModel model)
Description copied from class:AbstractProvider
Move a model to the bottom of the list.- Specified by:
moveToBottom
in classAbstractProvider<javax.jcr.Property,JcrPropertyValueModel>
- Parameters:
model
- the model to move
-
getFieldElement
public ModelPathElement getFieldElement(JcrPropertyValueModel model)
Description copied from class:AbstractProvider
Retrieve theModelPathElement
to access an element.- Specified by:
getFieldElement
in classAbstractProvider<javax.jcr.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<javax.jcr.Property,JcrPropertyValueModel>
-
-