| org.apache.tapestry.services.BindingSource
All known Subclasses: org.apache.tapestry.internal.services.BindingSourceImpl,
BindingSource | public interface BindingSource (Code) | | Used to acquire bindings for component parameters.
|
Method Summary | |
Binding | newBinding(String description, ComponentResources container, ComponentResources component, String defaultPrefix, String expression, Location location) Examines the expression and strips off the leading prefix. | Binding | newBinding(String description, ComponentResources container, String defaultPrefix, String expression) A simpler version of
BindingSource.newBinding(String,ComponentResources,ComponentResources,String,String,Location) that defaults the values for several parameters. |
newBinding | Binding newBinding(String description, ComponentResources container, ComponentResources component, String defaultPrefix, String expression, Location location)(Code) | | Examines the expression and strips off the leading prefix. The prefix is used to choose the
appropriate
BindingFactory , which recieves the description, the expression (after
the prefix), and the location. If the prefix doesn't exist, or if there's no prefix, then the
factory for the default prefix (often "literal") is used (and passed the full prefix).
The binding represents a connection between the container and the component (the component is
usually the child of the container, though in a few cases, it is the component itself). In
most cases, the expression is evaluated in terms of the resources of the container
and the component is ignored.
Parameters: description - description of the binding, such as "parameter foo" Parameters: container - typically, the parent of the component Parameters: component - the component whose parameter is to be bound Parameters: defaultPrefix - the default prefix used when the expression itself does not have a prefix Parameters: expression - the binding Parameters: location - location assigned to the binding (or null if not known) a binding |
newBinding | Binding newBinding(String description, ComponentResources container, String defaultPrefix, String expression)(Code) | | A simpler version of
BindingSource.newBinding(String,ComponentResources,ComponentResources,String,String,Location) that defaults the values for several parameters. This is used in most cases. The default
binding prefix will be "prop". Most often, this is used to create a new default binding.
Parameters: description - description of the binding, such as "parameter foo" Parameters: container - typically, the parent of the component. This value will be used as the containerand the component, so whatever type of expression is evaluated, will beevaulated in terms of this component Parameters: defaultPrefix - the default prefix used when the expression itself does not have a prefix Parameters: expression - the binding a binding |
|
|