XObject.prototype = {
/**
- * @type {GObject} the Gtk / etc. element.
+ * @type {GObject}
+ * the Gtk / GObject element.
*/
el : false,
- /*
- * @type {Array} list of sub elements
+ /**
+ * @type {Array}
+ * list of sub elements
*/
items : false,
/**
- * @type {XObject} parent Element
+ * @type {XObject}
+ * parent Element
*/
parent: false,
/**
- * @type {Object} the construction configuration.
+ * @type {Object}
+ * the constructor configuration.
*/
config: false,
/**
- * @method init
* Initializes the Element (el) hooks up all the listeners
* and packs the children.
* you can override this, in child objects, then
/**
- * @method
* Adds an item to the object using a new XObject
* uses pack property to determine how to add it.
- * @arg cfg {Object} same as XObject constructor.
+ * @param {Object} o same as XObject constructor.
*/
- addItem : function(cfg) {
+ addItem : function(o) {
var item = (o.constructor == XObject) ? o : new XObject(o);
},
/**
- * @method addListener
* Connects a method to a signal. (gjs/Seed aware)
*
- * @arg sig {String} name of signal
- * @arg fn {Function} handler.
+ * @param {String} sig name of signal
+ * @param {Function} fn handler.
*/
addListener : function(sig, fn)
{
},
/**
- * @method get
* Finds an object in the child elements using xid of object.
* prefix with '.' to look up the tree.. multiple '..' to look further up..
*
- * @arg name {String} name of signal
+ * @param {String} name name of signal
* @return {XObject|false} the object if found.
*/
get : function(xid)