qx
Class Class
java.lang.Object
qx.Class
public class Class
- extends java.lang.Object
This class is one of the most important parts of qooxdoo’s
object-oriented features.
Its #define
method is used to create qooxdoo classes.
Each instance of a class defined by #define
has
the following keys attached to the constructor and the prototype:
classname | The fully-qualified name of the class (e.g. "qx.ui.core.Widget" ). |
basename | The namespace part of the class name (e.g. "qx.ui.core" ). |
constructor | A reference to the constructor of the class. |
superclass | A reference to the constructor of the super class. |
Each method may access static members of the same class by using
this.self(arguments)
(Object.self(qx.core.Object)
):
statics : { FOO : "bar" },
members: {
baz: function(x) {
this.self(arguments).FOO;
...
}
}
Each overriding method may call the overridden method by using
this.base(arguments [, ...])
(Object.base(qx.core.Object, qx.core.Object)
). This is also true for calling
the constructor of the superclass.
members: {
foo: function(x) {
this.base(arguments, x);
...
}
}
Constructor Summary |
Class()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Class
public Class()
Copyright © 2008 1&1. All Rights Reserved.