Document Information

Last modified:
2008/04/30 15:48 by ecker

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:
2008/04/30 15:48 by ecker

Account

Not logged in

 
 

Job Offers

To further improve qooxdoo we are seeking javascript developers. Read more...

Rich Ajax Platform (RAP)

RAP uses qooxdoo, Java and the Eclipse development model to build rich web applications. Read more...

qooxdoo Web Toolkit (QWT)

Similar to GWT this framework allows to create impressive qooxdoo applications just using Java. Read more...

Pustefix

Pustefix is a MVC-based web application framework using Java and XML/XSLT. Read more...

 
SourceForge.net Logo

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