Class NonEmptyLoadableModel<T>
java.lang.Object
com.evolveum.midpoint.gui.api.model.LoadableModel<T>
com.evolveum.midpoint.gui.api.model.NonEmptyLoadableModel<T>
- All Implemented Interfaces:
NonEmptyModel<T>
,Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<T>
,org.apache.wicket.util.io.IClusterable
Loadable model whose object is always not null.
Used to reduce checks of the 'model.getObject() != null' kind.
TODO remove redundant checks after annotations are checked at runtime (needs to be done in maven build)
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class com.evolveum.midpoint.gui.api.model.LoadableModel
detach, getNestedModel, isLoaded, onDetach, onLoad, reset, revive, toString
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, detach, filter, flatMap, isPresent, map, orElse, orElseGet
-
Constructor Details
-
NonEmptyLoadableModel
public NonEmptyLoadableModel(boolean alwaysReload)
-
-
Method Details
-
create
-
getObject
- Specified by:
getObject
in interfaceorg.apache.wicket.model.IModel<T>
- Specified by:
getObject
in interfaceNonEmptyModel<T>
- Overrides:
getObject
in classLoadableModel<T>
-
setObject
- Specified by:
setObject
in interfaceorg.apache.wicket.model.IModel<T>
- Specified by:
setObject
in interfaceNonEmptyModel<T>
- Overrides:
setObject
in classLoadableModel<T>
-
load
- Specified by:
load
in classLoadableModel<T>
-