HTML_Progress2 : The Definitive Guide |
Table of Contents
The HTML_Progress2_Monitor class allow to display a progress bar into a dialog box. Renders are customizable by QF rendering system , and both mode determinate/indeterminate are supported. Process may be stop at any time by user action (click on Cancel button).
In three following examples, we will learn how to change layout easily, and observe changes values with new observer pattern (PEAR::Event_Dispatcher).
Design pattern apply the same HTML_QuickForm_Renderer architecture. So it's easy to change presentation of a progress monitor.
Belong presentation aspect, we don't forget that progress monitor
allow also to observe changes through the observer pattern (same
interface as progress meter), with: addListener()
and removeListener()
methods.
There are 8 renderers available since release 3.1.1 of QuickForm. The following template engines are directly suported: Smarty, HTML_Template_Sigma, HTML_Template_IT, HTML_Template_Flexy.
Among these 8 renderers, we will have a look on all basic concepts with 3 examples in next sections: default, default improved, sigma template integration.
HTML_Progress2 : The Definitive Guide | v 2.4.0 : April 20, 2007 |