HtmlMacroComponent"
From Documentation
Line 9: | Line 9: | ||
= Employment/Purpose = | = Employment/Purpose = | ||
+ | The base class for macro components. | ||
+ | If you want to apply the auto-wiring, you can invoke <javadoc method="wireVariables(org.zkoss.zk.ui.Component, java.lang.Object)">org.zkoss.zk.ui.Components</javadoc> in <javadoc method="afterCompose()">org.zkoss.zk.ui.HtmlMacroComponent</javadoc> as follows. | ||
+ | |||
+ | <source lang="java"> | ||
+ | public void afterCompose() { | ||
+ | super.afterCompose(); //create components | ||
+ | |||
+ | Components.wireVariables(this, this); | ||
+ | Components.addForward(this, this); | ||
+ | } | ||
+ | </source> | ||
=Example= | =Example= |
Revision as of 09:17, 29 June 2010
Html Macro Component
- Demonstration: N/A
- Java API: AbstractComponent
- JavaScript API: N/A
Employment/Purpose
The base class for macro components.
If you want to apply the auto-wiring, you can invoke Components.wireVariables(Component, Object) in HtmlMacroComponent.afterCompose() as follows.
public void afterCompose() {
super.afterCompose(); //create components
Components.wireVariables(this, this);
Components.addForward(this, this);
}
Example
N/A
Supported Events
None | None |
See also events inherited from HtmlBasedComponent's Supported Events.
Supported Children
*ALL
Use cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|