component"
From Documentation
(Created page with '{{ZKDevelopersReferencePageHeader}} '''Syntax:''' <component> <component-name>''a_name''</component-name> <extends>''a_name''</extends> <component-class>''a_class_name…') |
|||
Line 7: | Line 7: | ||
<component-class>''a_class_name''</component-class> | <component-class>''a_class_name''</component-class> | ||
<widget-class>''a_class_name''</widget-class> | <widget-class>''a_class_name''</widget-class> | ||
− | + | ||
<mold> | <mold> | ||
<mold-name>''a_mold''</mold-name> | <mold-name>''a_mold''</mold-name> | ||
<mold-uri>''a_uri''</mold-uri> | <mold-uri>''a_uri''</mold-uri> | ||
</mold> | </mold> | ||
− | + | ||
<text-as>''a_property_name''</text-as> | <text-as>''a_property_name''</text-as> | ||
− | + | ||
<property> | <property> | ||
<property-name>''a_name''</property-name> | <property-name>''a_name''</property-name> | ||
<property-value>''a_value''</property-value> | <property-value>''a_value''</property-value> | ||
</property> | </property> | ||
− | + | ||
<annotation> | <annotation> | ||
<annotation-name>''an_annotation_name''</annotation-name> | <annotation-name>''an_annotation_name''</annotation-name> | ||
Line 28: | Line 28: | ||
</attribute> | </attribute> | ||
</annotation> | </annotation> | ||
− | + | ||
<custom-attribute> | <custom-attribute> | ||
<attribute-name>''a_custom_attr_name''</attribute-name> | <attribute-name>''a_custom_attr_name''</attribute-name> | ||
Line 35: | Line 35: | ||
</component> | </component> | ||
+ | It specifies a component definition. | ||
+ | |||
+ | Example, | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <component> | ||
+ | <component-name>area</component-name> | ||
+ | <component-class>org.zkoss.zul.Area</component-class> | ||
+ | <widget-class>zul.wgt.Area</widget-class> | ||
+ | <mold> | ||
+ | <mold-name>default</mold-name> | ||
+ | <mold-uri>mold/area.js</mold-uri> | ||
+ | </mold> | ||
+ | </component> | ||
+ | <component> | ||
+ | <component-name>bandbox</component-name> | ||
+ | <extends>bandbox</extends> | ||
+ | <annotation> | ||
+ | <annotation-name>default-bind</annotation-name> | ||
+ | <property-name>value</property-name> | ||
+ | <attribute> | ||
+ | <attribute-name>access</attribute-name> | ||
+ | <attribute-value>both</attribute-value> | ||
+ | </attribute> | ||
+ | </annotation> | ||
+ | </component> | ||
+ | </source> | ||
+ | =component-name= | ||
+ | [Required] | ||
+ | |||
+ | The name of the component. It must be unique in the whole language. | ||
+ | |||
+ | =extends= | ||
+ | =component-class= | ||
+ | [Required if no extends] | ||
+ | |||
+ | It specifies the component's Java class at the server side. It is required if you define a new component. | ||
=Version History= | =Version History= | ||
{{LastUpdated}} | {{LastUpdated}} |
Revision as of 07:00, 19 November 2010
Syntax:
<component> <component-name>a_name</component-name> <extends>a_name</extends> <component-class>a_class_name</component-class> <widget-class>a_class_name</widget-class> <mold> <mold-name>a_mold</mold-name> <mold-uri>a_uri</mold-uri> </mold> <text-as>a_property_name</text-as> <property> <property-name>a_name</property-name> <property-value>a_value</property-value> </property> <annotation> <annotation-name>an_annotation_name</annotation-name> <property-name>a_property_name</property-name> <attribute> <attribute-name>an_annotation_attr_name</attribute-name> <attribute-value>an_annotation_attr_value</attribute-value> </attribute> </annotation> <custom-attribute> <attribute-name>a_custom_attr_name</attribute-name> <attribute-value>a_custom_attr_value</attribute-value> </custom-attribute> </component>
It specifies a component definition.
Example,
<component>
<component-name>area</component-name>
<component-class>org.zkoss.zul.Area</component-class>
<widget-class>zul.wgt.Area</widget-class>
<mold>
<mold-name>default</mold-name>
<mold-uri>mold/area.js</mold-uri>
</mold>
</component>
<component>
<component-name>bandbox</component-name>
<extends>bandbox</extends>
<annotation>
<annotation-name>default-bind</annotation-name>
<property-name>value</property-name>
<attribute>
<attribute-name>access</attribute-name>
<attribute-value>both</attribute-value>
</attribute>
</annotation>
</component>
component-name
[Required]
The name of the component. It must be unique in the whole language.
extends
component-class
[Required if no extends]
It specifies the component's Java class at the server side. It is required if you define a new component.
Version History
Version | Date | Content |
---|---|---|