View"

From Documentation
m
Line 3: Line 3:
 
The view is the UI of an application. It totally depends on the application's requirements.
 
The view is the UI of an application. It totally depends on the application's requirements.
  
As described in [[ZK Developer's Reference/MVC/Model|the Model section]], many ZK components could operate based on models, such as <javadoc>org.zkoss.zul.Listbox</javadoc>. In additions, you could customize their visual representation by providing an implementation of so-called renderer. The renderer depends on the component. For example, the display of <javadoc>org.zkoss.zul.Listbox</javadoc> can be customized by an implementation of <javadoc type="interface">org.zkoss.zul.ListitemRenderer</javadoc>, and <javadoc>org.zkoss.zul.Grid</javadoc> by <javadoc type="interface">org.zkoss.zul.RowRenderer</javadoc><ref>The same model usually can be shared by components having the same ''logic model''. For example, <javadoc type="interface">org.zkoss.zul.ListMode</javadoc> can be used in both <javadoc>org.zkoss.zul.Grid</javadoc> and <javadoc>org.zkoss.zul.Listbox</javadoc>. However, a renderer is usually specific to a particular component.</ref>.
+
As described in [[ZK Developer's Reference/MVC/Model|the Model section]], many ZK components could operate based on models, such as <javadoc>org.zkoss.zul.Listbox</javadoc>. In addition, you could customize their visual representation by providing an implementation of so-called renderer. The renderer depends on the component. For example, the display of <javadoc>org.zkoss.zul.Listbox</javadoc> can be customized by an implementation of <javadoc type="interface">org.zkoss.zul.ListitemRenderer</javadoc>, and <javadoc>org.zkoss.zul.Grid</javadoc> by <javadoc type="interface">org.zkoss.zul.RowRenderer</javadoc><ref>The same model usually can be shared by components having the same ''logic model''. For example, <javadoc type="interface">org.zkoss.zul.ListMode</javadoc> can be used in both <javadoc>org.zkoss.zul.Grid</javadoc> and <javadoc>org.zkoss.zul.Listbox</javadoc>. However, a renderer is usually specific to a particular component.</ref>.
  
 
{{ZKDevelopersReferenceHeadingToc}}
 
{{ZKDevelopersReferenceHeadingToc}}

Revision as of 10:17, 22 July 2011

The view is the UI of an application. It totally depends on the application's requirements.

As described in the Model section, many ZK components could operate based on models, such as Listbox. In addition, you could customize their visual representation by providing an implementation of so-called renderer. The renderer depends on the component. For example, the display of Listbox can be customized by an implementation of ListitemRenderer, and Grid by RowRenderer[1].




  1. The same model usually can be shared by components having the same logic model. For example, ListMode can be used in both Grid and Listbox. However, a renderer is usually specific to a particular component.



Last Update : 2011/07/22

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