@qooxdoo/framework
Version:
The JS Framework for Coders
69 lines (62 loc) • 1.19 kB
JavaScript
${header}
/**
* This is a qooxdoo singleton class
*
*/
qx.Class.define("${classname}",
{
extend : ${extend},
include : [],
type : "singleton",
/**
* Create a the singleton
*/
construct : function() {
// If you want to call the parent constructor, use
// this.base(arguments);
},
/**
* The properties of the singleton
*/
properties :
{
/** The foo property of the object */
foo :
{
apply : "_applyFoo",
nullable : true,
check : "String",
event : "changeFoo"
}
},
/**
* Declaration of events fired by class instances in addition
* to the property change events
*/
events :
{
/** Fired when something happens */
"changeSituation" : "qx.event.type.Data"
},
/**
* Methods and simple properties of the singleton
*/
members :
{
/**
* Singleton method
* @param {String} foo The foo parameter
* @param {Number} bar The bar parameter
* @return {void} The result of the method.
*/
myMethod : function(foo, bar)
{
//
},
/** Applies the foo property */
_applyFoo : function(value, old)
{
//
}
}
});