Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5.model » [javadoc | source]
org.apache.tapestry5.model
public interface: MutableComponentModel [javadoc | source]

All Implemented Interfaces:
    ComponentModel

All Known Implementing Classes:
    MutableComponentModelImpl

Mutable version of org.apache.tapestry5.model.ComponentModel used during the transformation phase.
Method from org.apache.tapestry5.model.MutableComponentModel Summary:
addEmbeddedComponent,   addMixinClassName,   addParameter,   addRenderPhase,   enableSupportsInformalParameters,   setFieldPersistenceStrategy,   setMeta,   setMixinAfter
Method from org.apache.tapestry5.model.MutableComponentModel Detail:
 public MutableEmbeddedComponentModel addEmbeddedComponent(String id,
    String type,
    String componentClassName,
    boolean inheritInformalParameters,
    Location location)
    Defines a new embedded component.
 public  void addMixinClassName(String mixinClassName)
    Adds a mixin to the component's implementation.
 public  void addParameter(String name,
    boolean required,
    boolean allowNull,
    String defaultBindingPrefix)
    Adds a new formal parameter to the model. Each parameter has a unique name (though access to parameters is case insensitive).
 public  void addRenderPhase(Class renderPhase)
    Identifies that the component does handle the render phase.
 public  void enableSupportsInformalParameters()
    Sets the internal flag to indicate that this model (and all models that extend from it) support informal parameters.
 public String setFieldPersistenceStrategy(String fieldName,
    String strategy)
    Used to define the field persistence strategy for a particular field name. Returns a logical name for the field, which is guaranteed to be unique (this is necessary for handling the case where a subclass has a persistent field with the same name as a persistent field from a super-class).
 public  void setMeta(String key,
    String value)
    Stores a meta data value under the indicated key.
 public  void setMixinAfter(boolean mixinAfter)
    Changes the value of the mixinAfter flag. The default value is false.