Three Steps to Use Live Data"
From Documentation
Maya001122 (talk | contribs) m (Created page with '{{ZKDevelopersGuidePageHeader}} *Prepare the data in the form of <tt>ListModel</tt>. ZK has a concrete implementation called <tt>org.zkoss.zul.SimpleListModel</tt> for represen…') |
m (correct highlight (via JWB)) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ZKDevelopersGuidePageHeader}} | {{ZKDevelopersGuidePageHeader}} | ||
− | *Prepare the data in the form of < | + | *Prepare the data in the form of <code>ListModel</code>. ZK has a concrete implementation called <javadoc>org.zkoss.zul.SimpleListModel</javadoc> for representing an array of objects. |
− | *Implement the < | + | *Implement the <javadoc type="interface">org.zkoss.zul.RowRenderer</javadoc> interface for rendering a row of data into the Grid. |
− | ** This is optional. If it is not specified, the default < | + | ** This is optional. If it is not specified, the default <code>rowrender</code> is used to render the data into the first column. |
** You could implement different renderers for represent the same data in different views. | ** You could implement different renderers for represent the same data in different views. | ||
− | *Specify the data in the < | + | *Specify the data in the <code>model</code> property, and, optionally, the <code>rowrender</code> in the <code>rowRenderer</code> property. |
{{ ZKDevelopersGuidePageFooter}} | {{ ZKDevelopersGuidePageFooter}} |
Latest revision as of 10:40, 19 January 2022
This documentation is for an older version of ZK. For the latest one, please click here.
- Prepare the data in the form of
ListModel
. ZK has a concrete implementation called SimpleListModel for representing an array of objects. - Implement the RowRenderer interface for rendering a row of data into the Grid.
- This is optional. If it is not specified, the default
rowrender
is used to render the data into the first column. - You could implement different renderers for represent the same data in different views.
- This is optional. If it is not specified, the default
- Specify the data in the
model
property, and, optionally, therowrender
in therowRenderer
property.