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,- 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 SummaryConstructorsConstructorDescriptionLoadableModel(boolean alwaysReload) LoadableModel(T object) LoadableModel(T object, boolean alwaysReload) 
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.wicket.model.IModelcombineWith, filter, flatMap, isPresent, map, orElse, orElseGet
- 
Constructor Details- 
LoadableModelpublic LoadableModel()
- 
LoadableModelpublic LoadableModel(boolean alwaysReload) 
- 
LoadableModel
- 
LoadableModel
 
- 
- 
Method Details- 
create
- 
getObject- Specified by:
- getObjectin interface- org.apache.wicket.model.IModel<T>
 
- 
setObject- Specified by:
- setObjectin interface- org.apache.wicket.model.IModel<T>
 
- 
isLoadedpublic boolean isLoaded()
- 
resetpublic void reset()
- 
detachpublic void detach()- Specified by:
- detachin interface- org.apache.wicket.model.IDetachable
- Specified by:
- detachin interface- org.apache.wicket.model.IModel<T>
 
- 
getNestedModelpublic org.apache.wicket.model.IModel getNestedModel()
- 
toString
- 
load
- 
onLoadprotected void onLoad()
- 
onDetachprotected void onDetach()
- 
revive- Throws:
- SchemaException
 
 
-