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


HtmlMacroComponent

Html Macro Component

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

Name
Event Type
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
     



Last Update : 2010/06/29

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.