org.apache.wicket.model
Interface IComponentInheritedModel

All Superinterfaces:
IClusterable, IDetachable, IModel, java.io.Serializable
All Known Implementing Classes:
BoundCompoundPropertyModel, CompoundPropertyModel

public interface IComponentInheritedModel
extends IModel

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 model

 Form form = new Form("form", new ModelImplementingIInheritableModel());
 new TextField("textfield"); // notice textfield is created with a null model
 

Author:
jcompagner, Igor Vaynberg (ivaynberg)

Method Summary
 IWrapModel wrapOnInheritance(Component component)
           
 
Methods inherited from interface org.apache.wicket.model.IModel
getObject, setObject
 
Methods inherited from interface org.apache.wicket.model.IDetachable
detach
 

Method Detail

wrapOnInheritance

IWrapModel wrapOnInheritance(Component component)
Parameters:
component -
Returns:
The WrapModel that wraps this model


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.