The device-class Element"
From Documentation
(Created page with ' {{ZKConfigurationReferencePageHeader}} [Optional] It specifies the implementation class. The class must implement the <javadoc type="interface">org.zkoss.zk.device.Device</ja…') |
m |
||
Line 1: | Line 1: | ||
{{ZKConfigurationReferencePageHeader}} | {{ZKConfigurationReferencePageHeader}} | ||
+ | |||
+ | '''Syntax:''' | ||
+ | <device-class>''a_class_name''</device-class> | ||
[Optional] | [Optional] | ||
− | It specifies the implementation class. The class must implement the <javadoc type="interface">org.zkoss.zk.device.Device</javadoc> interface. Instead of implementing it from scratch, you can derive from the proper implementation, such as < | + | It specifies the implementation class. The class must implement the <javadoc type="interface">org.zkoss.zk.device.Device</javadoc> interface. Instead of implementing it from scratch, you can derive from the proper implementation, such as <javadoc>org.zkoss.zk.device.AjaxDevice</javadoc>. |
+ | |||
+ | <source lang="xml"> | ||
+ | <device-config> | ||
+ | <device-type>ajax</device-type> | ||
+ | <device-class>my.MyAjaxDevice</device-class> | ||
+ | </device-config> | ||
+ | </source> | ||
− | + | =Version History= | |
+ | {{LastUpdated}} | ||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 14:33, 3 December 2010
Syntax:
<device-class>a_class_name</device-class>
[Optional]
It specifies the implementation class. The class must implement the Device interface. Instead of implementing it from scratch, you can derive from the proper implementation, such as AjaxDevice.
<device-config>
<device-type>ajax</device-type>
<device-class>my.MyAjaxDevice</device-class>
</device-config>
Version History
Version | Date | Content |
---|---|---|