-
Book Overview & Buying
-
Table Of Contents
qooxdoo Beginner's Guide
By :
This concept is pulled from the Ruby programming language. qooxdoo supports single inheritance, like Java and Ruby do. The concept of modules, known as categories in Objective-C, is used to substitute the multiple inheritance features in Ruby. A module is a collection of methods. Classes can mix in a module and receive all of its methods. It is a kind of lateral merging to the inheritance hierarchy.
A mixin is a collection of members, variables, and methods; it can be merged into other classes. In qooxdoo, a mixin is very similar to a class but cannot be instantiated. Unlike interfaces, they do contain implementation code. Typically, a mixin is 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. A mixin is especially used when you don't want to change the object hierarchy and just want to add few members...
Change the font size
Change margin width
Change background colour