What's Renderer

From Documentation
Revision as of 08:13, 15 July 2010 by Maya001122 (talk | contribs) (Created page with '{{ZKDevelopersGuidePageHeader}} A renderer is responsible for rendering the layout of certain model. For example, <tt>RowRenderer</tt> is responsible for rendering data stored i…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


A renderer is responsible for rendering the layout of certain model. For example, RowRenderer is responsible for rendering data stored in the ListModel to the specified row in the Grid.

ZK has provided default renders:

Three Steps to Use Live Data

  • 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.
  • Specify the data in the model property, and, optionally, the rowrender in the rowRenderer property.



Last Update : 2010/07/15

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