diff options
author | Derrell Lipman <derrell@samba.org> | 2007-01-03 19:57:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:36:06 -0500 |
commit | 2e7c59c24470766e37309c7a8bfa4c7b81c57614 (patch) | |
tree | c44c89911868c52f25ca66bdefa68e13248db8e6 /webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/renderer/border/BorderObject.js | |
parent | 57f5bf78fa9fc9d190c3cb25251e686a1488f790 (diff) | |
download | samba-2e7c59c24470766e37309c7a8bfa4c7b81c57614.tar.gz samba-2e7c59c24470766e37309c7a8bfa4c7b81c57614.tar.bz2 samba-2e7c59c24470766e37309c7a8bfa4c7b81c57614.zip |
r20515: Continued work on the Web Application Framework. Until we get all of the
functionality of the old scripts incorporated into the new framework, the old
scripts need to still be available. I've reverted to having the old scripts
be the default pages, and added an option to access the preview of the new
SWAT.
(This used to be commit b43620d4b8eff815f4a6dc02522a8dfc9fdcaef4)
Diffstat (limited to 'webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/renderer/border/BorderObject.js')
-rw-r--r-- | webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/renderer/border/BorderObject.js | 149 |
1 files changed, 0 insertions, 149 deletions
diff --git a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/renderer/border/BorderObject.js b/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/renderer/border/BorderObject.js deleted file mode 100644 index e8e1dc0fcc..0000000000 --- a/webapps/qooxdoo-0.6.3-sdk/frontend/framework/source/class/qx/renderer/border/BorderObject.js +++ /dev/null @@ -1,149 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2004-2006 by 1&1 Internet AG, Germany, http://www.1and1.org - - License: - LGPL 2.1: http://www.gnu.org/licenses/lgpl.html - - Authors: - * Sebastian Werner (wpbasti) - * Andreas Ecker (ecker) - -************************************************************************ */ - -/* ************************************************************************ - -#module(ui_core) - -************************************************************************ */ - -qx.OO.defineClass("qx.renderer.border.BorderObject", qx.renderer.border.Border, -function(vWidth, vStyle, vColor) -{ - this._dependentObjects = {}; - - qx.renderer.border.Border.call(this, vWidth, vStyle, vColor); -}); - - - -/* ---------------------------------------------------------------------------- - UTILITY ---------------------------------------------------------------------------- -*/ - -qx.renderer.border.BorderObject.fromString = function(vDefString) -{ - var vBorder = new qx.renderer.border.BorderObject; - var vAllParts = vDefString.split(/\s+/); - var vPart, vTemp; - - for (var i=0; i<vAllParts.length; i++) - { - vPart = vAllParts[i]; - - switch(vPart) - { - case "groove": - case "ridge": - case "inset": - case "outset": - case "solid": - case "dotted": - case "dashed": - case "double": - case "none": - vBorder.setStyle(vPart); - break; - - default: - vTemp = parseFloat(vPart); - - if(vTemp == vPart || qx.lang.String.contains(vPart, "px")) - { - vBorder.setWidth(vTemp); - } - else - { - vPart = vPart.toLowerCase(); - vBorder.setColor(qx.renderer.color.Color.themedNames[vPart] ? new qx.renderer.color.ColorObject(vPart) : new qx.renderer.color.Color(vPart)); - } - - break; - } - } - - return vBorder; -} - - - - - - -/* ---------------------------------------------------------------------------- - WIDGET CONNECTION ---------------------------------------------------------------------------- -*/ - -qx.Proto.addListenerWidget = function(o) { - this._dependentObjects[o.toHashCode()] = o; -} - -qx.Proto.removeListenerWidget = function(o) { - delete this._dependentObjects[o.toHashCode()]; -} - -qx.Proto._sync = function(vEdge) -{ - var vAll = this._dependentObjects; - var vCurrent; - - for (vKey in vAll) - { - vCurrent = vAll[vKey]; - - if (vCurrent.isCreated()) { - vCurrent._updateBorder(vEdge); - } - } -} - - - - - - - -/* ---------------------------------------------------------------------------- - DISPOSER ---------------------------------------------------------------------------- -*/ - -qx.Proto.dispose = function() -{ - if (this.getDisposed()) { - return; - } - - if (typeof this._dependentObjects === "object") - { - var vAll = this._dependentObjects; - for (vKey in vAll) { - delete vAll[vKey]; - } - - vAll = null; - delete this._dependentObjects; - } - - return qx.renderer.border.Border.prototype.dispose.call(this); -} |