Download Get the PDF - Docs

Transcript
qooxdoo Documentation, Release 1.6.1
qx.Interface.define("my.cool.IInterface");
Mixins
Leading uppercase M as a naming convention. A mixin can have all the things a class can have, like properties,
constructor, destructor and members.
qx.Mixin.define("my.cool.MMixin");
Attaching mixins to a class
The include key contains either a reference to an single mixin, or an array of multiple mixins:
qx.Class.define("my.cool.Class",
{
include : [my.cool.MMixin, my.other.cool.MMixin]
...
});
Attaching mixins to an already defined class
qx.Class.include(qx.ui.core.Widget, qx.MWidgetExtensions);
Access
By the following naming convention. Goal is to be as consistent as possible. During the build process private members
can optionally be renamed to random names in order to ensure that they cannot be called from outside the class.
publicMember
_protectedMember
__privateMember
Static classes
Explicit declaration allows for useful checks during development. For example. construct or members are not
allowed for such a purely static class.
qx.Class.define("my.cool.Class", {
type : "static"
});
Abstract classes
Declaration allows for useful checks during development and does not require explicit code.
qx.Class.define("my.cool.Class", {
type : "abstract"
});
68
Chapter 3. Core Framework