RendererCtrl"

From Documentation
Line 9: Line 9:
 
= Employment/Purpose =
 
= Employment/Purpose =
  
Space is a Separator with the orient default to "horizontal".
+
This interface defines the methods components like Listbox use to notify the renderer for several circumstance.
 
 
In other words, <space> is equivalent to <separator orient="horizontal">
 
  
 +
Though <tt>ListitemRenderer.render(org.zkoss.zul.Listitem, java.lang.Object)</tt> is called one item a timer, a request might have several items to render. And, if the renderer implements this interface, <tt>doTry()</tt> will be called before any rendering, and <tt>doFinally() </tt>will be called after all rendering. If any exception occurs, <tt>doCatch(java.lang.Throwable)</tt> will be called.
  
 +
A typical use is to start a transaction and use it for rendering all items from the same request.
  
 
= Example =
 
= Example =

Revision as of 03:33, 18 May 2010

RendererCtrl

  • Demonstration: N/A
  • Java API: RendererCtrl
  • JavaScript API: N/A

Employment/Purpose

This interface defines the methods components like Listbox use to notify the renderer for several circumstance.

Though ListitemRenderer.render(org.zkoss.zul.Listitem, java.lang.Object) is called one item a timer, a request might have several items to render. And, if the renderer implements this interface, doTry() will be called before any rendering, and doFinally() will be called after all rendering. If any exception occurs, doCatch(java.lang.Throwable) will be called.

A typical use is to start a transaction and use it for rendering all items from the same request.

Example

Supported events

Name
Event Type
None None

Supported Children

*ALL

Use cases

Version Description Example Location
     

Version History

Version Date Content
5.0.2 5/19/2010 Initialization



Last Update : 2010/05/18

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