| org.apache.tapestry.model.MutableComponentModel
All known Subclasses: org.apache.tapestry.internal.model.MutableComponentModelImpl,
addEmbeddedComponent | MutableEmbeddedComponentModel addEmbeddedComponent(String id, String type, String componentClassName, Location location)(Code) | | Defines a new embedded component.
Parameters: id - the unique id for the embedded component, which must not already exist. Parameters: type - the type of the component (posslibly blank) Parameters: componentClassName - the fully qualified class name (derived from the field), used if the type is blank Parameters: location - where the component is defined a mutable model allowing parameters to be set |
addMixinClassName | void addMixinClassName(String mixinClassName)(Code) | | Adds a mixin to the component's implementation.
|
addParameter | void addParameter(String name, boolean required, String defaultBindingPrefix)(Code) | | Adds a new formal parameter to the model. Each parameter has a unique name (though access to
parameters is case insensitive).
Parameters: name - new, unique name for the parameter Parameters: required - if true, the parameter must be bound Parameters: defaultBindingPrefix - the default binding prefix for this parameter throws: IllegalArgumentException - if a parameter with the given name has already been defined for this model See Also: Parameter |
enableSupportsInformalParameters | void enableSupportsInformalParameters()(Code) | | Sets the internal flag to indicate that this model (and all models that extend from it)
support informal parameters.
|
setFieldPersistenceStrategy | String setFieldPersistenceStrategy(String fieldName, String strategy)(Code) | | 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).
Parameters: fieldName - the name of the field which is to be made persistent Parameters: strategy - the strategy for persisting the field, from Persist.value. This valuemay be blank, in which case the stategy is inherited from the component, or thecomponent's container. a logical name for the field, to be used withComponentModel.getFieldPersistenceStrategy(String), and withInternalComponentResources.persistFieldChange(StringObject), etc. |
setMeta | void setMeta(String key, String value)(Code) | | Stores a meta data value under the indicated key.
|
setMixinAfter | void setMixinAfter(boolean mixinAfter)(Code) | | Changes the value of the mixinAfter flag. The default value is false.
|
|
|