Task #350
Renderer component refactor
Status: | CLOSED | Start date: | 07/29/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-nethgui | |||
Target version: | Sigma |
Description
Suppress inconsistencies when calling echo
on a Renderer object
The resulting API should look like the following:
// insert(): returns the object itself; // create<CtrlType>(): returns a new object - i.e. fieldsetSwitch() echo $view->createFieldsetSwitch('fsname', 'fs1value', <flags>) ->insert($view->createRadioButton('rdname1', 'rd1value', <flags>)) ->insert($view->createRadioButton('rdname1', 'rd1value', <flags>)) ->insert($view->createTextInput('txname1', <flags>)); echo $view->createFieldsetSwitch('fsname', 'fs2value', <flags>) ->insert($view->createRadioButton('rdname2', 'rd2value', <flags>)) ->insert($view->createRadioButton('rdname2', 'rd2value', <flags>)) ->insert($view->createTextInput('txname2', <flags>)); echo $view->createTabs() ->insert($view->createInset('page1')) ->insert($view->createInset('page2')) ->insert($view->createInset('page3')) echo $view->createCheckBox('chkname', 'chkvalue', <flags>);Note:
- each
create*()
method returns a Widget object - Methods of an abstract Widget object
- insert()
- render()
- __toString() , same as render()
Related issues
Associated revisions
WIP! Refs #350 Renderer interface modified.
WIP Refs #350. Splitted NethGui_Renderer_Abstract into ReadonlyView and interface parts.
WIP Refs #350. New Widget package.
WIP Refs #350. Fixed getAttribute()
calls. Renamed Abstract renderer constants.
WIP Refs #350.
WIP Refs #350. Applied refactor to all templates (both scripts and callback methods).
WIP Refs #350. Added flags inheritance throughout inset()
calls.
WIP Refs #350. Fixed unchecked checkbox value submission. Fixed enabling/disabiling of controls under tabs
widget.
Refs #350. Fixed selector
widget server-side rendering.
WIP Refs #350. Applied new renderer API to NotificationArea and TableController classes
WIP Refs #350. Removed the Dialog widget - implemented as a composite control (panel+inset).
WIP Refs #350. Removed ID attribute from hidden INPUT tag in checkbox control.
WIP Refs #350. Fixed problem with module menu.
Refs #350. Fixed some control css class names. Fixed hidden controls disabled flag.
Refs #350. Fixed class names..
History
#1 Updated by Davide Principi about 10 years ago
- Status changed from ON_DEV to CLOSED
- % Done changed from 0 to 100