-
Book Overview & Buying
-
Table Of Contents
qooxdoo Beginner's Guide
Even though qooxdoo has a large set of widgets, its framework allows to inherit the existing widgets and adding functionality to it. So, a user can easily build a custom widget just by inheriting and adding more functionality to an existing widget.
qx.ui.core.Widget is the base class and every widget extends this widget directly or indirectly and adds more functionalities. The framework itself reuses most of the simple widgets and builds a new set of widgets.
For example, qx.ui.form.Spinner extends qx.ui.core.Widget and uses a text field and two repeat buttons to create the functionality of a spinner. The layout used for the Spinner class is the Grid layout and the methods modifying this layout are made private, so that the layout cannot be modified outside, and it maintains the same look throughout the application.
The most required method to override the widget is _createChildControlImpl(id). This method is used to create any of the children, based on the ID and return...
Change the font size
Change margin width
Change background colour