Package org.hippoecm.frontend.model
Class ItemModelWrapper<T>
- java.lang.Object
-
- org.hippoecm.frontend.model.ItemModelWrapper<T>
-
- Type Parameters:
T
- the model object type
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<T>
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
AbstractProvider
,JcrNodeModel
,JcrPropertyModel
public abstract class ItemModelWrapper<T> extends Object implements org.apache.wicket.model.IModel<T>
Base class for models that can provide objects based on an JCRItem
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemModelWrapper(String path, boolean property)
ItemModelWrapper(Item item)
ItemModelWrapper(JcrItemModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detach()
JcrItemModel
getItemModel()
T
getObject()
void
setItemModel(org.apache.wicket.model.IModel<?> model)
void
setObject(T object)
-
-
-
Constructor Detail
-
ItemModelWrapper
public ItemModelWrapper(JcrItemModel model)
-
ItemModelWrapper
public ItemModelWrapper(Item item)
-
ItemModelWrapper
public ItemModelWrapper(String path, boolean property)
-
-
Method Detail
-
getItemModel
public JcrItemModel getItemModel()
-
setItemModel
public void setItemModel(org.apache.wicket.model.IModel<?> model)
-
getObject
public T getObject()
- Specified by:
getObject
in interfaceorg.apache.wicket.model.IModel<T>
-
setObject
public void setObject(T object)
- Specified by:
setObject
in interfaceorg.apache.wicket.model.IModel<T>
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
- Specified by:
detach
in interfaceorg.apache.wicket.model.IModel<T>
-
-