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 JCR
Item
.- See Also:
-
Constructor Summary
ConstructorDescriptionItemModelWrapper
(String path, boolean property) ItemModelWrapper
(Item item) ItemModelWrapper
(JcrItemModel model) -
Method Summary
Modifier and TypeMethodDescriptionvoid
detach()
void
setItemModel
(org.apache.wicket.model.IModel<?> model) void
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
-
Constructor Details
-
ItemModelWrapper
-
ItemModelWrapper
-
ItemModelWrapper
-
-
Method Details
-
getItemModel
-
setItemModel
public void setItemModel(org.apache.wicket.model.IModel<?> model) -
getObject
- Specified by:
getObject
in interfaceorg.apache.wicket.model.IModel<T>
-
setObject
- 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>
-