Package org.apache.wicket.model
Interface IComponentInheritedModel<T>
-
- Type Parameters:
T
- The model object type
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,IDetachable
,IModel<T>
,Serializable
- All Known Implementing Classes:
CompoundPropertyModel
public interface IComponentInheritedModel<T> extends IModel<T>
This is a marker interface for models that can be inherited from components higher in the hierarchy. If a model implements this interface then you can give the parent container this model and all the child (recursively) components will also get and then set that model on their own if they are created with a null modelForm form = new Form("form", new ModelImplementingIInheritableModel()); new TextField("textfield"); // notice textfield is created with a null model
- Author:
- jcompagner, Igor Vaynberg (ivaynberg)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <W> IWrapModel<W>
wrapOnInheritance(Component component)
-
-
-
Method Detail
-
wrapOnInheritance
<W> IWrapModel<W> wrapOnInheritance(Component component)
- Type Parameters:
W
- the model object type of the wrapped model- Parameters:
component
-- Returns:
- The WrapModel that wraps this model
-
-