Composite Component
From Documentation
Revision as of 03:25, 9 November 2010 by Tomyeh (talk | contribs) (→Implement a Composite Component)
Like a macro component, a composite component is an approach to compose a component based on a template. Unlike a macro component, a composite component has to create and wire the child components by itself, and handle ID space if necessary. The advantage is that a composite component can extend from any component, such as Row, such that it is easier to fit to any situation (and no need of the inline concept).
Implement a Composite Component
First, you have to decide which component to extend from. Div is a common choice since it is a simple component. For sake of illustration, here we extend from Row. Then, we can use them under Rows, which the regular macros cannot.
Implement a Template
Implement a Java Class
ID Space
Use Composite Component
Version History
Last Update : 2010/11/9
Version | Date | Content |
---|---|---|