Class MutableEmbeddedComponentModelImpl
java.lang.Object
org.apache.tapestry5.ioc.BaseLocatable
org.apache.tapestry5.internal.model.MutableEmbeddedComponentModelImpl
- All Implemented Interfaces:
Locatable
,EmbeddedComponentModel
,MutableEmbeddedComponentModel
public class MutableEmbeddedComponentModelImpl
extends BaseLocatable
implements MutableEmbeddedComponentModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a mixin to the component in terms of its fully qualified class name, with optional ordering constraints.void
addParameter
(String name, String value) The class name of the component, as derived from the field to which theComponent
annotation is applied.The type of the component, which may be blank.String[]
getConstraintsForMixin
(String mixinClassName) getId()
A unique id for the embedded component.boolean
If true, then the component should inherit informal parameters from its container.Returns the fully qualified class names of all mixins added to this component, sorted alphabetically.A sorted list of the names of all bound parameters.getParameterValue
(String parameterName) The value for each parameter, which will be interpreted as a binding expression.Returns the list of published parameters of this component (usually an empty list).void
setPublishedParameters
(List<String> parameterNames) Sets the list of published parameters for this embedded component.toString()
Methods inherited from class org.apache.tapestry5.ioc.BaseLocatable
getLocation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.tapestry5.commons.Locatable
getLocation
-
Constructor Details
-
MutableEmbeddedComponentModelImpl
-
-
Method Details
-
getComponentClassName
Description copied from interface:EmbeddedComponentModel
The class name of the component, as derived from the field to which theComponent
annotation is applied. This value is only used when the componentType property is blank.- Specified by:
getComponentClassName
in interfaceEmbeddedComponentModel
-
toString
-
addParameter
- Specified by:
addParameter
in interfaceMutableEmbeddedComponentModel
-
getId
Description copied from interface:EmbeddedComponentModel
A unique id for the embedded component.- Specified by:
getId
in interfaceEmbeddedComponentModel
-
getComponentType
Description copied from interface:EmbeddedComponentModel
The type of the component, which may be blank.- Specified by:
getComponentType
in interfaceEmbeddedComponentModel
-
getParameterNames
Description copied from interface:EmbeddedComponentModel
A sorted list of the names of all bound parameters.- Specified by:
getParameterNames
in interfaceEmbeddedComponentModel
-
getParameterValue
Description copied from interface:EmbeddedComponentModel
The value for each parameter, which will be interpreted as a binding expression.- Specified by:
getParameterValue
in interfaceEmbeddedComponentModel
-
getMixinClassNames
Description copied from interface:EmbeddedComponentModel
Returns the fully qualified class names of all mixins added to this component, sorted alphabetically.- Specified by:
getMixinClassNames
in interfaceEmbeddedComponentModel
-
addMixin
Description copied from interface:MutableEmbeddedComponentModel
Adds a mixin to the component in terms of its fully qualified class name, with optional ordering constraints.- Specified by:
addMixin
in interfaceMutableEmbeddedComponentModel
-
getInheritInformalParameters
Description copied from interface:EmbeddedComponentModel
If true, then the component should inherit informal parameters from its container.- Specified by:
getInheritInformalParameters
in interfaceEmbeddedComponentModel
-
setPublishedParameters
Description copied from interface:MutableEmbeddedComponentModel
Sets the list of published parameters for this embedded component.- Specified by:
setPublishedParameters
in interfaceMutableEmbeddedComponentModel
- Parameters:
parameterNames
- list of names- See Also:
-
getPublishedParameters
Description copied from interface:EmbeddedComponentModel
Returns the list of published parameters of this component (usually an empty list).- Specified by:
getPublishedParameters
in interfaceEmbeddedComponentModel
- Returns:
- list of parameter names to publish
- See Also:
-
getConstraintsForMixin
- Specified by:
getConstraintsForMixin
in interfaceEmbeddedComponentModel
- Returns:
- the ordering constraints for the specified mixin, or null.
-