docu update and fix IDE warnings

This commit is contained in:
Ralf Becker 2014-01-27 09:48:43 +00:00
parent 1e726cedac
commit 50b34a7b99
3 changed files with 28 additions and 16 deletions

View File

@ -18,10 +18,11 @@
*/
/**
* Class which implements the hbox and vbox tag
* Class which implements box and vbox tag
*
* @augments et2_baseWidget
*/
var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
*/
var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
{
attributes: {
// Not needed
@ -33,7 +34,7 @@ var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
/**
* Constructor
*
*
* @memberOf et2_box
*/
init: function() {
@ -45,13 +46,15 @@ var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
this.setDOMNode(this.div[0]);
},
/**
* Overriden so we can check for autorepeating children. We only check for
* $ in the immediate children & grandchildren of this node.
*
* @param {object} _node
*/
loadFromXML: function(_node) {
if(this._type != "box")
if(this._type != "box")
{
return this._super.apply(this, arguments);
}
@ -89,7 +92,7 @@ var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
repeatNode = node;
}
}
// Only the last child repeats(?)
if(repeatNode != null)
{
@ -108,19 +111,21 @@ var et2_box = et2_baseWidget.extend([et2_IDetachedDOM],
this.createElementFromNode(repeatNode);
}
// Reset
for(var name in this.getArrayMgrs())
{
this.getArrayMgr(name).perspectiveData = currentPerspective;
}
}
}
},
/**
* Code for implementing et2_IDetachedDOM
* This doesn't need to be implemented.
* Individual widgets are detected and handled by the grid, but the interface is needed for this to happen
*
* @param {array} _attrs array to add further attributes to
*/
getDetachedAttributes: function(_attrs)
{

View File

@ -1,5 +1,5 @@
/**
* EGroupware eTemplate2 - JS Box object
* EGroupware eTemplate2 - JS HBox object
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package etemplate
@ -18,17 +18,17 @@
*/
/**
* Class which implements the hbox and vbox tag
*
* Class which implements hbox tag
*
* @augments et2_baseWidget
*/
*/
var et2_hbox = et2_baseWidget.extend(
{
createNamespace: true,
/**
* Constructor
*
*
* @memberOf et2_hbox
*/
init: function() {
@ -98,6 +98,8 @@ var et2_hbox = et2_baseWidget.extend(
/**
* The overwritten loadFromXML function checks whether any child element has
* a special align value.
*
* @param {object} _node
*/
loadFromXML: function(_node) {
// Check whether any child node has an alignment tag
@ -172,6 +174,8 @@ var et2_hbox = et2_baseWidget.extend(
/**
* Tables added to the root node need to be inline instead of blocks
*
* @param {et2_widget} child child-widget to add
*/
addChild: function(child) {
this._super.apply(this, arguments);

View File

@ -76,6 +76,8 @@ var et2_url = et2_textbox.extend(
/**
* Override parent to update href of 'button'
*
* @param _value value to set
*/
set_value: function(_value) {
this.update_button(_value);
@ -292,8 +294,9 @@ var et2_url_ro = et2_valueWidget.extend([et2_IDetachedDOM],
/**
* Code for implementing et2_IDetachedDOM
*
* @param {array} _attrs array to add further attributes to
*/
getDetachedAttributes: function(_attrs)
{
_attrs.push("value", "class");