List Model"

From Documentation
m
m
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
  
<javadoc>org.zkoss.zul.Listbox</javadoc> allows developer to separate the view and the model by implementing <javadoc type="interface">org.zkoss.zul.ListModel</javadoc>.
+
<javadoc>org.zkoss.zul.Listbox</javadoc> and <javadoc>org.zkoss.zul.Grid</javadoc> allow developer to separate the view and the model by implementing <javadoc type="interface">org.zkoss.zul.ListModel</javadoc>. Once the model is assigned (with <javadoc method="setModel(org.zkoss.zul.ListModel)">org.zkoss.zul.Listbox</javadoc>), the display of the listbox is controlled by the model, and an optional renderer. The model is used to provide data, while the renderer is used to provide the custom look. By default, the data is shown as a single-column grid/listbox. If it is not what you want, please refer to [[[[ZK Developer's Reference/MVC/View|the View section]].
  
 
=Version History=
 
=Version History=

Revision as of 08:53, 29 December 2010

Listbox and Grid allow developer to separate the view and the model by implementing ListModel. Once the model is assigned (with Listbox.setModel(ListModel)), the display of the listbox is controlled by the model, and an optional renderer. The model is used to provide data, while the renderer is used to provide the custom look. By default, the data is shown as a single-column grid/listbox. If it is not what you want, please refer to [[the View section.

Version History

Last Update : 2010/12/29


Version Date Content
     



Last Update : 2010/12/29

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