|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Setting
public class Setting
Manage settings for framework/application wide initial setup routines.
Background information
One of the major problem of JavaScript frameworks is that you, as the user of such a framework, cannot easily control one of the initial settings. For example the framework may have defaults which only can be changed after the framework is loaded, but not before. Most of the time this restriction is not problematic. Many stuff is just then interesting when the application main gets processed. But there are exceptions like things which must be configured at loadtime and not after that.
What are settings?
This is where qooxdoo’s new sophisticated settings system comes in. And the best is that this feature is directly built into the core of qooxdoo. This means that many intial settings are easily controlable using a simple hash map structure or using simple generator flags.
For example you can control the following things in qooxdoo:
This list shows you some of your possibilities.
Also take a look at the documentation at: http://qooxdoo.org/documentation/user_manual/settings
Usage
A setting generally should only store simple primitive types like strings. Settings are not update-able. They do not fire events and they do not inform depending objects. The best way to work with settings is to “compile” them into the application code. This is easily possible using the corresponding flags of the qooxdoo build system.
At initialisation of this class all settings defined in the global
map qxsettings
are imported. This map can also created
by hand and should be defined before loading qooxdoo. After the import
the settings system deletes the map.
Constructor Summary | |
---|---|
Setting()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Setting()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |