public interface Template
Modifier and Type | Method and Description |
---|---|
Component[] |
create(Component parent,
Component insertBefore,
VariableResolver resolver,
Composer composer)
Creates the components defined in this template.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Returns a readonly map of the parameters that are assigned
to the template.
|
Component[] create(Component parent, Component insertBefore, VariableResolver resolver, Composer composer)
parent
- the parent to assign the new component to.
Unlike Execution.createComponents(PageDefinition, Component, Map)
(but similar to Execution.createComponents(PageDefinition, Map)
),
if parent is null or the parent does not belong to any page,
the created components won't be attached to any page too.insertBefore
- the component that the new components shall
be inserted before. If null, the new components will be appended.
If insertBefore.getParent() is not the same as parent, it is ignored.resolver
- the addition variable resolver used to render
the template. Ignored if null.composer
- the addition composer used to control the lifecycle.
Ignored if null.java.lang.NullPointerException
- if parent is nulljava.util.Map<java.lang.String,java.lang.Object> getParameters()
Notice that if a parameter's value contains EL expression, it will
be evaluated when this object is instantiated and assigned to a component
(by use of Component.setTemplate(java.lang.String, org.zkoss.zk.ui.util.Template)
).
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.