View

From Documentation
Revision as of 06:22, 22 October 2021 by Hawk (talk | contribs)

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

As described in MVC/Model, some ZK components supports Model-driven rendering, such as Listbox. There are two approaches you can customize the rendering of each item in a model:

  • Template: you define a template which is a fragment of the ZUML document to define how to render each item. It's more readable and easy to use.
  • Renderer: you create a Java class that implements a specific interface to render each item. If you need to render items according to conditions in the runtime, this approach is suggested.







Last Update : 2021/10/22

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