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 <tt>AjaxDevice</tt> and <tt>MilDevice</tt>.
+
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>
  
{{ZKConfigurationReferencePageFooter}}
+
=Version History=
 +
{{LastUpdated}}
 +
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| &nbsp;
 +
| &nbsp;
 +
| &nbsp;
 +
|}
 +
{{ZKConfigurationReferencePageFooter}}

Latest revision as of 14:33, 3 December 2010


The device-class Element


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

Last Update : 2010/12/03


Version Date Content
     


Last Update : 2010/12/03

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