diff options
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/groupbox/GroupBox.js')
-rw-r--r-- | webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/groupbox/GroupBox.js | 158 |
1 files changed, 0 insertions, 158 deletions
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/groupbox/GroupBox.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/groupbox/GroupBox.js deleted file mode 100644 index 93651d63a8..0000000000 --- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/groupbox/GroupBox.js +++ /dev/null @@ -1,158 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2004-2007 1&1 Internet AG, Germany, http://www.1and1.org - - License: - LGPL: http://www.gnu.org/licenses/lgpl.html - EPL: http://www.eclipse.org/org/documents/epl-v10.php - See the LICENSE file in the project's top-level directory for details. - - Authors: - * Sebastian Werner (wpbasti) - * Andreas Ecker (ecker) - -************************************************************************ */ - -/* ************************************************************************ - -#module(ui_form) - -************************************************************************ */ - -qx.OO.defineClass("qx.ui.groupbox.GroupBox", qx.ui.layout.CanvasLayout, -function(vLegend, vIcon) -{ - qx.ui.layout.CanvasLayout.call(this); - - - // ************************************************************************ - // SUB WIDGETS - // ************************************************************************ - this._createFrameObject(); - this._createLegendObject(); - - - // ************************************************************************ - // INIT - // ************************************************************************ - this.setLegend(vLegend); - - if (vIcon != null) { - this.setIcon(vIcon); - } - - - // ************************************************************************ - // REMAPPING - // ************************************************************************ - this.remapChildrenHandlingTo(this._frameObject); -}); - -qx.OO.changeProperty({ name : "appearance", type : "string", defaultValue : "field-set" }); - - - - -/* ---------------------------------------------------------------------------- - SUB WIDGET CREATION ---------------------------------------------------------------------------- -*/ - -qx.Proto._createLegendObject = function() -{ - this._legendObject = new qx.ui.basic.Atom; - this._legendObject.setAppearance("field-set-legend"); - - this.add(this._legendObject); -} - -qx.Proto._createFrameObject = function() -{ - this._frameObject = new qx.ui.layout.CanvasLayout; - this._frameObject.setAppearance("field-set-frame"); - - this.add(this._frameObject); -} - - - - - -/* ---------------------------------------------------------------------------- - GETTER FOR SUB WIDGETS ---------------------------------------------------------------------------- -*/ - -qx.Proto.getFrameObject = function() { - return this._frameObject; -} - -qx.Proto.getLegendObject = function() { - return this._legendObject; -} - - - - - - -/* ---------------------------------------------------------------------------- - SETTER/GETTER ---------------------------------------------------------------------------- -*/ - -qx.Proto.setLegend = function(vLegend) { - this._legendObject.setLabel(vLegend); -} - -qx.Proto.getLegend = function() { - return this._legendObject.getLabel(); -} - -qx.Proto.setIcon = function(vIcon) { - this._legendObject.setIcon(vIcon); -} - -qx.Proto.getIcon = function() { - this._legendObject.getIcon(); -} - - - - - - -/* ---------------------------------------------------------------------------- - DISPOSER ---------------------------------------------------------------------------- -*/ - -qx.Proto.dispose = function() -{ - if (this.getDisposed()) { - return true; - } - - if (this._legendObject) - { - this._legendObject.dispose(); - this._legendObject = null; - } - - if (this._frameObject) - { - this._frameObject.dispose(); - this._frameObject = null; - } - - return qx.ui.layout.CanvasLayout.prototype.dispose.call(this); -} |