Download qooxdoo Documentation
Transcript
qooxdoo Documentation, Release 1.3.1
Summary
Configuration
Key
extend
members
statics
properties
events
Type
Interface |
Interface[]
Map
Description
Single interface or array of interfaces this interface inherits from.
Map
Map
Map of statics of the interface. The statics will not get copied into the target class. This
is the same behavior as statics in mixins.
Map of properties and their definitions.
Map
Map of event names and the corresponding event class name.
Map of members of the interface.
References
• Interfaces Quick Ref - a syntax quick reference for interfaces
• API Documentation for Interface
3.1.5 Mixins
Mixins are collections of code and variables, which can be merged into other classes. They are similar to classes but
can not be instantiated. Unlike interfaces they do contain implementation code. Typically they are made up of only a
few members that allow for a generic implementation of some very specific functionality.
Mixins are used to share functionality without using inheritance and to extend/patch the functionality of existing
classes.
Definition
Example:
qx.Mixin.define("name",
{
include: [SuperMixins],
properties: {
"tabIndex": {check: "Number", init: -1}
},
members:
{
prop1: "foo",
meth1: function() {},
meth2: function() {}
}
});
3.1. Object Orientation
63
Related documents