Document Information

Last modified:
2011/02/22 12:31 (external edit)

This is documentation for qooxdoo 0.7.x only. You might be interested in consulting the latest docs.

Property Summary

Property definition

Part of the class definition:

properties : {
  test: {}
}

Checking for pre-defined types

test: { 
  check : "String" 
}

The names of types are identical to the ones used in the API viewer:

  • Boolean, String, Number, Integer, Float, Double
  • Object, Array, Map
  • Class, Mixin, Interface, Theme
  • Error, RegExp, Function, Date, Node, Element, Document, Window, Event

Checking for instances

test: { 
  check : "qx.core.Object"
}

Set of allowed values

Given as an array of allowed values:

test: { 
  check : [ "red", "blue", "yellow" ] 
}

Custom check method

The custom check method can be placed right into the property declaration:

test: { 
  check : function(value) {
    // do check...,
  }
}

Nullable properties

By default properties are not nullable.

test: { 
  nullable : true
}

Modifying existing properties

test: { 
  refine : true,
  init : "world"
}
The properties do not allow other than init value refinements.

Defining name of event for property changes

test: { 
  event : "testChanged"
}

Apply method

Explicit. A leading _apply is a preferred convention.

test: { 
  apply: "_applyTest"
}

Shared apply method

width: { 
  apply : "_applyDimension"
},
 
height: { 
  apply : "_applyDimension"
}

Fallback to init value

Supported. Init value is recoverable using reset method.

Distinct value for themes

Supported. A themeable value is stored separately and has a lower priority than the user value.

Apply of initial value

Supported. It is possible to initialize a property in the class constructor.

Inheritance support

Supported. It is possible to enable inheritance on property level. Supports overriding, too.

Information

Last modified:
2011/02/22 12:31 (external edit)

Account

 
 
A book on qooxdoo RIAs, authored  by community members
JS Tutorial, JavaScript Tutorial, JavaScript Guide, Learn JavaScript JS, How To Learn JS, Learning JavaScript
 

Bad Behavior has blocked 0 potential spam attempts in the last 7 days.