Package org.wicketstuff.minis.model
Class LoadableDetachableDependentModel<T,D>
- java.lang.Object
-
- org.apache.wicket.model.LoadableDetachableModel<T>
-
- org.wicketstuff.minis.model.LoadableDetachableDependentModel<T,D>
-
- Type Parameters:
T- type of this modelD- type of model this model is dependent on
- All Implemented Interfaces:
Serializable,IDetachable,IModel<T>,IClusterable
- Direct Known Subclasses:
IsEmptyOrNullModel,NotModel
public abstract class LoadableDetachableDependentModel<T,D> extends LoadableDetachableModel<T>
LoadableDetachableModelthat is dependent on another model. The dependent model is detached when this model is detached.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoadableDetachableDependentModel(IModel<D> dependentModel)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IModel<D>getDependentModel()Returns the model this model depends on.protected voidonDetach()-
Methods inherited from class org.apache.wicket.model.LoadableDetachableModel
detach, getObject, isAttached, load, of, onAttach, setObject, toString
-
-
-
-
Method Detail
-
getDependentModel
public IModel<D> getDependentModel()
Returns the model this model depends on.- Returns:
- the model this model depends on
-
onDetach
protected void onDetach()
- Overrides:
onDetachin classLoadableDetachableModel<T>
-
-