Class LoadableModel<T>
java.lang.Object
com.evolveum.midpoint.gui.api.model.LoadableModel<T>
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<T>
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
CountableLoadableModel
,NonEmptyLoadableModel
,RoleAnalysisAggregateChartModel
,RoleAnalysisAttributeChartModel
,RoleAnalysisAttributeResultChartModel
,RoleAnalysisStackedAttributeChartModel
,ShadowStatisticsModel
Lazy loading Wicket model. This is an IModel implementation
that loads the model content only when needed. This is supposed
to be used for objects that are expensive to load. So we can avoid
loading the at all when a component that uses them is not visible.
- Author:
- lazyman
- See Also:
-
Constructor Summary
ConstructorDescriptionLoadableModel
(boolean alwaysReload) LoadableModel
(T object) LoadableModel
(T object, boolean alwaysReload) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.wicket.model.IModel
as, combineWith, filter, flatMap, isPresent, map, orElse, orElseGet
-
Constructor Details
-
LoadableModel
public LoadableModel() -
LoadableModel
public LoadableModel(boolean alwaysReload) -
LoadableModel
-
LoadableModel
-
-
Method Details
-
create
-
getObject
- Specified by:
getObject
in interfaceorg.apache.wicket.model.IModel<T>
-
setObject
- Specified by:
setObject
in interfaceorg.apache.wicket.model.IModel<T>
-
isLoaded
public boolean isLoaded() -
reset
public void reset() -
detach
public void detach()- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
- Specified by:
detach
in interfaceorg.apache.wicket.model.IModel<T>
-
getNestedModel
public org.apache.wicket.model.IModel getNestedModel() -
toString
-
load
-
onLoad
protected void onLoad() -
onDetach
protected void onDetach() -
revive
- Throws:
SchemaException
-