Decorations are used to style the widget. In qooxdoo framework, decoration is an independent layer around the widget content, so that the decorations, such as background image, color, border, and so on, can be changed without any code change in the widget class.
The following schematic diagram illustrates the concept of decoration:
Decorations are set to the
decorator properties of the widget. They could be applied separately or together; there is no dependency between them.
To make use of the
decoration feature, you should avoid creating separate
decorations inside the application code; instead, create the