From commits-return-3748-apmail-ode-commits-archive=ode.apache.org@ode.apache.org Tue Feb 17 22:07:13 2009 Return-Path: Delivered-To: apmail-ode-commits-archive@www.apache.org Received: (qmail 38883 invoked from network); 17 Feb 2009 22:07:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2009 22:07:13 -0000 Received: (qmail 67388 invoked by uid 500); 17 Feb 2009 22:07:13 -0000 Delivered-To: apmail-ode-commits-archive@ode.apache.org Received: (qmail 67337 invoked by uid 500); 17 Feb 2009 22:07:13 -0000 Mailing-List: contact commits-help@ode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ode.apache.org Delivered-To: mailing list commits@ode.apache.org Received: (qmail 67328 invoked by uid 99); 17 Feb 2009 22:07:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 14:07:13 -0800 X-ASF-Spam-Status: No, hits=-1994.7 required=10.0 tests=ALL_TRUSTED,TVD_STOCK1,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2009 22:06:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3DD162388B72; Tue, 17 Feb 2009 22:06:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r745271 [4/19] - in /ode/branches/APACHE_ODE_1.X: ./ axis2-war/src/main/webapp/ axis2-war/src/main/webapp/WEB-INF/ axis2-war/src/main/webapp/WEB-INF/classes/ axis2-war/src/main/webapp/WEB-INF/conf.hib-derby/ axis2-war/src/main/webapp/WEB-IN... Date: Tue, 17 Feb 2009 22:06:26 -0000 To: commits@ode.apache.org From: midon@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090217220637.3DD162388B72@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/accordion.js URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/accordion.js?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/accordion.js (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/accordion.js Tue Feb 17 22:06:18 2009 @@ -8,29 +8,29 @@ (function() { var $B = YAHOO.Bubbling, - $L = YAHOO.lang, + $L = YAHOO.lang, $E = YAHOO.util.Event, - $D = YAHOO.util.Dom; + $D = YAHOO.util.Dom; - /** - * @singleton Accordion Manager - Creating accordion controls based on the markup. - * Apply visual enhanced to an area - * @constructor - */ - YAHOO.widget.AccordionManager = function() { - var obj = {}, - _selector = 'selected', - _sliding = 'sliding', - _anims = {}; + /** + * @singleton Accordion Manager - Creating accordion controls based on the markup. + * Apply visual enhanced to an area + * @constructor + */ + YAHOO.widget.AccordionManager = function() { + var obj = {}, + _selector = 'selected', + _sliding = 'sliding', + _anims = {}; - // on click action behaviors... - $B.addDefaultAction('accordionToggleItem', function (layer, args) { + // on click action behaviors... + $B.addDefaultAction('accordionToggleItem', function (layer, args) { if (!args[1].decrepitate) { // switching the slidable area and reclaiming the behavior return obj.toggle(args[1].target); } }); - $B.addDefaultAction('accordionRemoveItem', function (layer, args) { + $B.addDefaultAction('accordionRemoveItem', function (layer, args) { if (!args[1].decrepitate) { // removing an item from the accordion and reclaiming the behavior return obj.remove(args[1].target); @@ -58,42 +58,42 @@ // on keyboad action behavior... $B.on('key', function (layer, args) { - var o = args[1], item = null, result = false; - if (!o.decrepitate && (o.type == 'keyup')) { - if (((o.keyCode === 39) && obj.open (o.target)) || - ((o.keyCode === 37) && obj.close (o.target))) { // Shortcut: cursor -> or cursor <- - // reclaiming the event & stoping the event propagation - o.decrepitate = true; - o.stop = true; - } - } + var o = args[1], item = null, result = false; + if (!o.decrepitate && (o.type == 'keyup')) { + if (((o.keyCode === 39) && obj.open (o.target)) || + ((o.keyCode === 37) && obj.close (o.target))) { // Shortcut: cursor -> or cursor <- + // reclaiming the event & stoping the event propagation + o.decrepitate = true; + o.stop = true; + } + } }); // on rollover action behavior... - $B.on('rollover', function (layer, args) { - var list, item, onWayOut; - if (item = _getItem(args[1].target)) { - if ((list = _getList(item)) && list.rollover) { - if (!list.selected) { - $D.addClass(list.el, _selector); - onWayOut = function (e) { - var l = _getList ({el:$E.getTarget(e)}); - if (l && !$B.virtualTarget(e, l.el) && !l.persistent) { - _reset(l, {force:true}); - } - }; - if (!list.persistent) { - $E.removeListener ( list.el, 'mouseout', onWayOut ); - $E.addListener ( list.el, 'mouseout', onWayOut, obj, true ); - } - } - if (!item.selected) { - // is over a new item... - _openItem(item, list); - } - } - } - }); + $B.on('rollover', function (layer, args) { + var list, item, onWayOut; + if (item = _getItem(args[1].target)) { + if ((list = _getList(item)) && list.rollover) { + if (!list.selected) { + $D.addClass(list.el, _selector); + onWayOut = function (e) { + var l = _getList ({el:$E.getTarget(e)}); + if (l && !$B.virtualTarget(e, l.el) && !l.persistent) { + _reset(l, {force:true}); + } + }; + if (!list.persistent) { + $E.removeListener ( list.el, 'mouseout', onWayOut ); + $E.addListener ( list.el, 'mouseout', onWayOut, obj, true ); + } + } + if (!item.selected) { + // is over a new item... + _openItem(item, list); + } + } + } + }); // creating the most common message (behavior layer) $B.addLayer (['accordionOpenItem', 'accordionCloseItem', 'accordionRemoveItem'], obj); @@ -176,23 +176,23 @@ item = params.item || null; if (list) { if (!list.multiple || force) { - // closing all the selected items - for (i=0; i=conf[list.orientation].to;i--){ - $D.setStyle (item.slide, list.orientation, i+'px'); - } - onFinish(); - } - _anims[$E.generateId(item.slide)] = anim; - return true; - } - return false; + $D.removeClass(item.el, _selector); + // broadcasting the corresponding event... + $B.fire ('accordionOpenItem', item); + }; + anim.onComplete.subscribe(onFinish); + if ($L.isArray(grouping)) { + grouping.push(anim); + } else { + anim.animate(); + } + if (list.manually) { + // animation manually + fs = item.size[list.orientation]; + for (i=fs;i>=conf[list.orientation].to;i--){ + $D.setStyle (item.slide, list.orientation, i+'px'); + } + onFinish(); + } + _anims[$E.generateId(item.slide)] = anim; + return true; + } + return false; } function _removeItem ( item, list ) { if (item && (list || (list = _getList (item)))) { // closing element _closeItem (item, list); // removing listeners... - $E.purgeElement ( item.el, true ); - // hack, removing the element after close it... - window.setTimeout (function(){ - item.el.parentNode.removeChild(item.el); - $B.fire ('accordionRemoveItem', item); - }, list.timer+0.1); - return true; - } - return false; + $E.purgeElement ( item.el, true ); + // hack, removing the element after close it... + window.setTimeout (function(){ + item.el.parentNode.removeChild(item.el); + $B.fire ('accordionRemoveItem', item); + }, list.timer+0.1); + return true; + } + return false; } - // public vars - // public methods - /** - * * Expanding all the elements in the accordion... - * @public - * @param {object} el DOM reference - * @return boolean - */ - obj.expand = function ( el ) { - var list; - if (list = _getList ({el:el})) { - return _reset (list, {force:true, expand:true}); - } - }; - /** - * * Collapsing all the elements in the accordion... - * @public - * @param {object} el DOM reference - * @return boolean - */ - obj.collapse = function ( el ) { - var list; - if (list = _getList ({el:el})) { - return _reset (list, {force:true}); - } - }; - /** - * * Open a certain item inside an area... - * @public - * @param {object} el DOM reference - * @return boolean - */ - obj.open = function ( el ) { - var item; - if (item = _getItem(el)) { - return _openItem (item); - } - }; - /** - * * Close a certain item inside an area... - * @public - * @param {object} el DOM reference - * @return boolean - */ - obj.close = function ( el ) { - var item, list; - if (item = _getItem(el)) { - if (list = _getList (item)) { - // if the item is already opened, and is multiple and not persistent - return ((item.selected && (list.multiple || !list.persistent))?_closeItem (item, list):false); - } - } - }; - /** - * * toggle a certain item inside an area... - * @public - * @param {object} el DOM reference - * @return boolean - */ - obj.toggle = function ( el ) { - var item, list; - if (item = _getItem(el)) { - if (list = _getList (item)) { - // if the item is already opened, and is multiple and not persistent - return ((item.selected && (list.multiple || !list.persistent))?_closeItem (item, list):_openItem (item, list)); - } - } - }; - /** - * * remove a certain item from the area... - * @public - * @param {object} el DOM reference - * @return boolean - */ - obj.remove = function ( el ) { - var item, list; - if (item = _getItem(el)) { - if (list = _getList (item)) { - return _removeItem (item, list); - } - } - }; - return obj; - }(); + // public vars + // public methods + /** + * * Expanding all the elements in the accordion... + * @public + * @param {object} el DOM reference + * @return boolean + */ + obj.expand = function ( el ) { + var list; + if (list = _getList ({el:el})) { + return _reset (list, {force:true, expand:true}); + } + }; + /** + * * Collapsing all the elements in the accordion... + * @public + * @param {object} el DOM reference + * @return boolean + */ + obj.collapse = function ( el ) { + var list; + if (list = _getList ({el:el})) { + return _reset (list, {force:true}); + } + }; + /** + * * Open a certain item inside an area... + * @public + * @param {object} el DOM reference + * @return boolean + */ + obj.open = function ( el ) { + var item; + if (item = _getItem(el)) { + return _openItem (item); + } + }; + /** + * * Close a certain item inside an area... + * @public + * @param {object} el DOM reference + * @return boolean + */ + obj.close = function ( el ) { + var item, list; + if (item = _getItem(el)) { + if (list = _getList (item)) { + // if the item is already opened, and is multiple and not persistent + return ((item.selected && (list.multiple || !list.persistent))?_closeItem (item, list):false); + } + } + }; + /** + * * toggle a certain item inside an area... + * @public + * @param {object} el DOM reference + * @return boolean + */ + obj.toggle = function ( el ) { + var item, list; + if (item = _getItem(el)) { + if (list = _getList (item)) { + // if the item is already opened, and is multiple and not persistent + return ((item.selected && (list.multiple || !list.persistent))?_closeItem (item, list):_openItem (item, list)); + } + } + }; + /** + * * remove a certain item from the area... + * @public + * @param {object} el DOM reference + * @return boolean + */ + obj.remove = function ( el ) { + var item, list; + if (item = _getItem(el)) { + if (list = _getList (item)) { + return _removeItem (item, list); + } + } + }; + return obj; + }(); })(); YAHOO.register("accordion", YAHOO.widget.AccordionManager, {version: "1.5.0", build: "203"}); \ No newline at end of file Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/assets/accordion.css URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/assets/accordion.css?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/assets/accordion.css (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/assets/accordion.css Tue Feb 17 22:06:18 2009 @@ -1,29 +1,29 @@ -/* -Copyright (c) 2007, Caridy Pati�o. All rights reserved. -Portions Copyright (c) 2007, Yahoo!, Inc. All rights reserved. -Code licensed under the BSD License: -http://www.bubbling-library.com/eng/licence -version: 1.3.3 -*/ -.yui-skin-sam .yui-cms-accordion .yui-cms-item .bd { - height: 0; - padding: 0; - overflow: hidden; -} -.yui-skin-sam .yui-cms-accordion.vertical .yui-cms-item .bd { - height: auto; - width: 1px; -} - .yui-skin-sam .yui-cms-accordion .yui-cms-item .bd .fixed { - padding: 5px; - } - -.yui-skin-sam .yui-cms-accordion .yui-cms-item .actions { - position: absolute; - top: 5px; - right: 2px; - text-align: right; -} +/* +Copyright (c) 2007, Caridy Pati�o. All rights reserved. +Portions Copyright (c) 2007, Yahoo!, Inc. All rights reserved. +Code licensed under the BSD License: +http://www.bubbling-library.com/eng/licence +version: 1.3.3 +*/ +.yui-skin-sam .yui-cms-accordion .yui-cms-item .bd { + height: 0; + padding: 0; + overflow: hidden; +} +.yui-skin-sam .yui-cms-accordion.vertical .yui-cms-item .bd { + height: auto; + width: 1px; +} + .yui-skin-sam .yui-cms-accordion .yui-cms-item .bd .fixed { + padding: 5px; + } + +.yui-skin-sam .yui-cms-accordion .yui-cms-item .actions { + position: absolute; + top: 5px; + right: 2px; + text-align: right; +} .yui-skin-sam .yui-cms-accordion .yui-cms-item .actions a { margin-right: 4px; text-decoration: none; @@ -60,20 +60,20 @@ width: 25px; height: 15px; background: url(http://yui.yahooapis.com/2.3.1/build/assets/skins/sam/sprite.png) no-repeat 0 -300px; -} -.yui-skin-sam .yui-cms-accordion .yui-cms-item .ajax .fixed { - background: url(loading.gif) no-repeat 50% 50%; -} - -.yui-skin-sam .yui-cms-accordion .yui-cms-item .bd { - height: 0px; -} -.yui-skin-sam .yui-cms-accordion.fixIE .yui-cms-item .bd { - *height: 1px; /* IE Hack */ -} -.yui-skin-sam .yui-cms-accordion .yui-cms-item.selected .bd { - height: auto; +} +.yui-skin-sam .yui-cms-accordion .yui-cms-item .ajax .fixed { + background: url(loading.gif) no-repeat 50% 50%; +} + +.yui-skin-sam .yui-cms-accordion .yui-cms-item .bd { + height: 0px; +} +.yui-skin-sam .yui-cms-accordion.fixIE .yui-cms-item .bd { + *height: 1px; /* IE Hack */ +} +.yui-skin-sam .yui-cms-accordion .yui-cms-item.selected .bd { + height: auto; background: -#fff; +#fff; } \ No newline at end of file Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/bubbling.js URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/bubbling.js?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/bubbling.js (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/bubbling/bubbling.js Tue Feb 17 22:06:18 2009 @@ -8,315 +8,315 @@ YAHOO.namespace("plugin","behavior"); (function() { var $Y = YAHOO.util, - $E = YAHOO.util.Event, - $D = YAHOO.util.Dom, - $L = YAHOO.lang, - $ = YAHOO.util.Dom.get; + $E = YAHOO.util.Event, + $D = YAHOO.util.Dom, + $L = YAHOO.lang, + $ = YAHOO.util.Dom.get; /** * @class Bubbling */ YAHOO.Bubbling = function () { - var obj = {}, - ua = navigator.userAgent.toLowerCase(), + var obj = {}, + ua = navigator.userAgent.toLowerCase(), isOpera = (ua.indexOf('opera') > -1); - // private stuff - var navRelExternal = function (layer, args) { - var el = args[1].anchor; - if (!(args[1].flagged || args[1].decrepitate) && el) { - var r = el.getAttribute("rel"), - t = el.getAttribute("target"); - if ((!t || (t === '')) && (r == 'external')) { - el.setAttribute("target", "blank"); - } - } - }; + // private stuff + var navRelExternal = function (layer, args) { + var el = args[1].anchor; + if (!(args[1].flagged || args[1].decrepitate) && el) { + var r = el.getAttribute("rel"), + t = el.getAttribute("target"); + if ((!t || (t === '')) && (r == 'external')) { + el.setAttribute("target", "blank"); + } + } + }; var defaultActionsControl = function (layer, args) { - obj.processingAction (layer, args, obj.defaultActions); + obj.processingAction (layer, args, obj.defaultActions); }; - var _searchYUIButton = function (t) { - var el = obj.getOwnerByClassName( t, 'yui-button' ), bt = null, id = null; - if ($L.isObject(el) && YAHOO.widget.Button) { - bt = YAHOO.widget.Button.getButton(el.id); - } - return bt; - }; - - // public vars - obj.ready = false; - obj.force2alfa = false; - obj.bubble = {}; // CustomEvent Handles + var _searchYUIButton = function (t) { + var el = obj.getOwnerByClassName( t, 'yui-button' ), bt = null, id = null; + if ($L.isObject(el) && YAHOO.widget.Button) { + bt = YAHOO.widget.Button.getButton(el.id); + } + return bt; + }; + + // public vars + obj.ready = false; + obj.force2alfa = false; + obj.bubble = {}; // CustomEvent Handles obj.onReady = new $Y.CustomEvent('bubblingOnReady', obj, true); - // mapping external methods... - obj.getOwnerByClassName = function(node, className) { - return ($D.hasClass(node, className)?node:$D.getAncestorByClassName (node, className)); + // mapping external methods... + obj.getOwnerByClassName = function(node, className) { + return ($D.hasClass(node, className)?node:$D.getAncestorByClassName (node, className)); }; obj.getOwnerByTagName = function(node, tagName) { - node = $D.get(node); - if (!node) { - return null; - } - return (node.tagName && node.tagName.toUpperCase() == tagName.toUpperCase()?node:$D.getAncestorByTagName (node, tagName)); - }; - // Deprecated in favor of getOwnerByClassName and getOwnerByTagName - obj.getAncestorByClassName = obj.getOwnerByClassName; + node = $D.get(node); + if (!node) { + return null; + } + return (node.tagName && node.tagName.toUpperCase() == tagName.toUpperCase()?node:$D.getAncestorByTagName (node, tagName)); + }; + // Deprecated in favor of getOwnerByClassName and getOwnerByTagName + obj.getAncestorByClassName = obj.getOwnerByClassName; obj.getAncestorByTagName = obj.getOwnerByTagName; - // public methods - obj.onKeyPressedTrigger = function(args, e, m){ - var b = 'key'; - e = e || $E.getEvent(); - m = m || {}; - m.action = b; - m.target = args.target || (e?$E.getTarget(e):null); - m.flagged = false; m.decrepitate = false; - m.event = e; - m.stop = false; - m.type = args.type; - m.keyCode = args.keyCode; - m.charCode = args.charCode; - m.ctrlKey = args.ctrlKey; - m.shiftKey = args.shiftKey; - m.altKey = args.altKey; - this.bubble.key.fire(e, m); - if (m.stop) { - $E.stopEvent(e); - } - return m.stop; - }; - obj.onEventTrigger = function(b, e, m){ - e = e || $E.getEvent(); - m = m || {}; - m.action = b; - m.target = (e?$E.getTarget(e):null); - m.flagged = false; m.decrepitate = false; - m.event = e; - m.stop = false; - this.bubble[b].fire(e, m); - if (m.stop) { - $E.stopEvent(e); - } - return m.stop; - }; - obj.onNavigate = function(e){ - var conf = { - anchor: this.getOwnerByTagName( $E.getTarget(e), 'A' ), - button: _searchYUIButton($E.getTarget(e)) - }; - if (!conf.anchor && !conf.button) { - conf.input = this.getOwnerByTagName( $E.getTarget(e), 'INPUT' ); - } - if (conf.button) { + // public methods + obj.onKeyPressedTrigger = function(args, e, m){ + var b = 'key'; + e = e || $E.getEvent(); + m = m || {}; + m.action = b; + m.target = args.target || (e?$E.getTarget(e):null); + m.flagged = false; m.decrepitate = false; + m.event = e; + m.stop = false; + m.type = args.type; + m.keyCode = args.keyCode; + m.charCode = args.charCode; + m.ctrlKey = args.ctrlKey; + m.shiftKey = args.shiftKey; + m.altKey = args.altKey; + this.bubble.key.fire(e, m); + if (m.stop) { + $E.stopEvent(e); + } + return m.stop; + }; + obj.onEventTrigger = function(b, e, m){ + e = e || $E.getEvent(); + m = m || {}; + m.action = b; + m.target = (e?$E.getTarget(e):null); + m.flagged = false; m.decrepitate = false; + m.event = e; + m.stop = false; + this.bubble[b].fire(e, m); + if (m.stop) { + $E.stopEvent(e); + } + return m.stop; + }; + obj.onNavigate = function(e){ + var conf = { + anchor: this.getOwnerByTagName( $E.getTarget(e), 'A' ), + button: _searchYUIButton($E.getTarget(e)) + }; + if (!conf.anchor && !conf.button) { + conf.input = this.getOwnerByTagName( $E.getTarget(e), 'INPUT' ); + } + if (conf.button) { conf.value = conf.button.get('value'); - } else if (conf.input) { - conf.value = conf.input.getAttribute('value'); - } - if (!this.onEventTrigger ('navigate', e, conf)) { - this.onEventTrigger ('god', e, conf); // if nobody claim the event, god can handle it... - } - }; - obj.onProperty = function(e){ - this.onEventTrigger ('property', e, { - anchor: this.getOwnerByTagName( $E.getTarget(e), 'A' ), - button: _searchYUIButton($E.getTarget(e)) - }); - }; - obj._timeoutId = 0; - obj.onRepaint = function(e){ - // Downshift Your Code (can’t let something happen multiple times in a second) - // http://yuiblog.com/blog/2007/07/09/downshift-your-code/ + } else if (conf.input) { + conf.value = conf.input.getAttribute('value'); + } + if (!this.onEventTrigger ('navigate', e, conf)) { + this.onEventTrigger ('god', e, conf); // if nobody claim the event, god can handle it... + } + }; + obj.onProperty = function(e){ + this.onEventTrigger ('property', e, { + anchor: this.getOwnerByTagName( $E.getTarget(e), 'A' ), + button: _searchYUIButton($E.getTarget(e)) + }); + }; + obj._timeoutId = 0; + obj.onRepaint = function(e){ + // Downshift Your Code (can’t let something happen multiple times in a second) + // http://yuiblog.com/blog/2007/07/09/downshift-your-code/ clearTimeout(obj._timeoutId); obj._timeoutId = setTimeout(function(){ var b = 'repaint', e = {target:document.body}, m = { - action: b, - target: null, - event: e, - flagged: false, - decrepitate: false, - stop: false - }; - obj.bubble[b].fire(e, m); - if (m.stop) { - $E.stopEvent(e); - } + action: b, + target: null, + event: e, + flagged: false, + decrepitate: false, + stop: false + }; + obj.bubble[b].fire(e, m); + if (m.stop) { + $E.stopEvent(e); + } }, 150 ); - }; - obj.onRollOver = function(e){ - this.onEventTrigger ('rollover', e, { - anchor: this.getOwnerByTagName( $E.getTarget(e), 'A' ) - }); - }; - obj.onRollOut = function(e){ - this.onEventTrigger ('rollout', e, { - anchor: this.getOwnerByTagName( $E.getTarget(e), 'A' ) - }); - }; - obj.onKeyPressed = function(args){ - this.onKeyPressedTrigger(args); - }; - /** - * * Este método determina la acción por defecto para un elemento - * @public - * @param {object} el element reference - * @param {object} actions object with the list of posibles actions - * @return void - */ - obj.getActionName = function (el, depot) { - depot = depot || {}; - var b = null, r = null, - f = ($D.inDocument(el)?function(b){return $D.hasClass(el, b)}:function(b){return el.hasClass(b);}); // f: check is certain object has a classname - if (el && ($L.isObject(el) || (el = $( el )))) { - try{ - r = el.getAttribute("rel"); // if rel is available... - }catch(e){}; - for (b in depot) { // behaviors in the depot... - if ((depot.hasOwnProperty(b)) && (f(b) || (b === r))) { - return b; - } - } - } - return null; - }; - /** - * * Este método determina el primer tab hijo basado en el tabName - * @public - * @param {object} el Child element reference - * @param {object} c ClassName of the Ancestor - * @return void - */ - obj.getFirstChildByTagName = function (el, t) { - if (el && ($L.isObject(el) || (el = $( el ))) && t) { - var l = el.getElementsByTagName(t); - if (l.length > 0) { - return l[0]; - } - } - return null; - }; - /** - * * Este método determina si un evento es interno o no a un contenedor... - * @public - * @param {object} e Referencia al evento - * @param {object} el Referencia al contendor - * @return void - */ - obj.virtualTarget = function (e, el) { - if (el && ($L.isObject(el) || (el = $( el ))) && $L.isObject(e)) { - var t = $E.getRelatedTarget ( e ); // target element - if ($L.isObject(t)) { - while((t.parentNode) && $L.isObject(t.parentNode) && (t.parentNode.tagName !== "BODY")) { - if (t.parentNode === el) { - return true; - } - t = t.parentNode; - } - } - } - return false; - }; - - /** - * * Creating a new behaviors layer... - * @public - * @param {string||array} layers Behaviors layers GUID - * @param {object} scope Custom Event default execution scope - * @return boolean if not exists... - */ + }; + obj.onRollOver = function(e){ + this.onEventTrigger ('rollover', e, { + anchor: this.getOwnerByTagName( $E.getTarget(e), 'A' ) + }); + }; + obj.onRollOut = function(e){ + this.onEventTrigger ('rollout', e, { + anchor: this.getOwnerByTagName( $E.getTarget(e), 'A' ) + }); + }; + obj.onKeyPressed = function(args){ + this.onKeyPressedTrigger(args); + }; + /** + * * Este método determina la acción por defecto para un elemento + * @public + * @param {object} el element reference + * @param {object} actions object with the list of posibles actions + * @return void + */ + obj.getActionName = function (el, depot) { + depot = depot || {}; + var b = null, r = null, + f = ($D.inDocument(el)?function(b){return $D.hasClass(el, b)}:function(b){return el.hasClass(b);}); // f: check is certain object has a classname + if (el && ($L.isObject(el) || (el = $( el )))) { + try{ + r = el.getAttribute("rel"); // if rel is available... + }catch(e){}; + for (b in depot) { // behaviors in the depot... + if ((depot.hasOwnProperty(b)) && (f(b) || (b === r))) { + return b; + } + } + } + return null; + }; + /** + * * Este método determina el primer tab hijo basado en el tabName + * @public + * @param {object} el Child element reference + * @param {object} c ClassName of the Ancestor + * @return void + */ + obj.getFirstChildByTagName = function (el, t) { + if (el && ($L.isObject(el) || (el = $( el ))) && t) { + var l = el.getElementsByTagName(t); + if (l.length > 0) { + return l[0]; + } + } + return null; + }; + /** + * * Este método determina si un evento es interno o no a un contenedor... + * @public + * @param {object} e Referencia al evento + * @param {object} el Referencia al contendor + * @return void + */ + obj.virtualTarget = function (e, el) { + if (el && ($L.isObject(el) || (el = $( el ))) && $L.isObject(e)) { + var t = $E.getRelatedTarget ( e ); // target element + if ($L.isObject(t)) { + while((t.parentNode) && $L.isObject(t.parentNode) && (t.parentNode.tagName !== "BODY")) { + if (t.parentNode === el) { + return true; + } + t = t.parentNode; + } + } + } + return false; + }; + + /** + * * Creating a new behaviors layer... + * @public + * @param {string||array} layers Behaviors layers GUID + * @param {object} scope Custom Event default execution scope + * @return boolean if not exists... + */ obj.addLayer = function (layers, scope) { - var result = false; - layers = ($L.isArray(layers)?layers:[layers]); + var result = false; + layers = ($L.isArray(layers)?layers:[layers]); scope = scope || window; - for (var i = 0; i < layers.length; ++i) { + for (var i = 0; i < layers.length; ++i) { if (layers[i] && !this.bubble.hasOwnProperty(layers[i])) { this.bubble[layers[i]] = new $Y.CustomEvent(layers[i], scope, true); result = true; } } - return result; + return result; }; - /** - * * Subcribing an bahavior to certain bahaviors layer... - * @public - * @param {string} layer Behavior layer GUID - * @param {object} bh The function that represent the behavior - * @return boolean if it is the first listener - */ + /** + * * Subcribing an bahavior to certain bahaviors layer... + * @public + * @param {string} layer Behavior layer GUID + * @param {object} bh The function that represent the behavior + * @return boolean if it is the first listener + */ obj.subscribe = function (layer, bh, scope) { var first = this.addLayer(layer); // return true if it's the first listener if (layer) { - if ($L.isObject(scope)) { - this.bubble[layer].subscribe(bh, scope, true); // correcting the default scope - } else { - this.bubble[layer].subscribe(bh); // use the default scope - } + if ($L.isObject(scope)) { + this.bubble[layer].subscribe(bh, scope, true); // correcting the default scope + } else { + this.bubble[layer].subscribe(bh); // use the default scope + } } return first; }; obj.on = obj.subscribe; // defining an alias... - /** - * * Broadcasting the message in the corresponding behavior layer... - * @public - * @param {string} layer Behavior layer GUID - * @param {object} obj The function that represent the behavior - * @return boolean if someone has claim the event - */ + /** + * * Broadcasting the message in the corresponding behavior layer... + * @public + * @param {string} layer Behavior layer GUID + * @param {object} obj The function that represent the behavior + * @return boolean if someone has claim the event + */ obj.fire = function (layer, obj) { - obj = obj || {}; - obj.action = layer; - obj.flagged = false; obj.decrepitate = false; - obj.stop = false; - if (this.bubble.hasOwnProperty(layer)) { - this.bubble[layer].fire(null, obj); - } - return obj.stop; - }; - /** - * * Processing an action based on the classname of the target element... - * @public - * @param {string} layer Behavior layer GUID - * @param {object} args Event object (extended) - * @param {object} actions List of availables behaviors... - * @param {boolean} force Proccess the actions without worry about the flagged value... - * @return void - */ - obj.processingAction = function (layer, args, actions, force) { + obj = obj || {}; + obj.action = layer; + obj.flagged = false; obj.decrepitate = false; + obj.stop = false; + if (this.bubble.hasOwnProperty(layer)) { + this.bubble[layer].fire(null, obj); + } + return obj.stop; + }; + /** + * * Processing an action based on the classname of the target element... + * @public + * @param {string} layer Behavior layer GUID + * @param {object} args Event object (extended) + * @param {object} actions List of availables behaviors... + * @param {boolean} force Proccess the actions without worry about the flagged value... + * @return void + */ + obj.processingAction = function (layer, args, actions, force) { var behavior = null, t; - if (!(args[1].flagged || args[1].decrepitate) || force) { - // checking for anchor, input or button - t = args[1].anchor || args[1].input || args[1].button; - if (t) { - behavior = this.getActionName ( t, actions ); - args[1].el = t; - } - if (behavior && (actions[behavior].apply(args[1], [layer, args]))) { - $E.stopEvent(args[0]); - args[1].flagged = true; - args[1].decrepitate = true; - args[1].stop = true; - } - } - }; - obj.defaultActions = {}; + if (!(args[1].flagged || args[1].decrepitate) || force) { + // checking for anchor, input or button + t = args[1].anchor || args[1].input || args[1].button; + if (t) { + behavior = this.getActionName ( t, actions ); + args[1].el = t; + } + if (behavior && (actions[behavior].apply(args[1], [layer, args]))) { + $E.stopEvent(args[0]); + args[1].flagged = true; + args[1].decrepitate = true; + args[1].stop = true; + } + } + }; + obj.defaultActions = {}; obj.addDefaultAction = function (n, f, force) { - if (n && f && (!this.defaultActions.hasOwnProperty(n) || force)) { - this.defaultActions[n] = f; - } + if (n && f && (!this.defaultActions.hasOwnProperty(n) || force)) { + this.defaultActions[n] = f; + } }; - // default behaviors - $E.addListener(window, "resize", obj.onRepaint, obj, true); - - // default Suscriptions - obj.on('navigate', navRelExternal); - obj.on('navigate', defaultActionsControl); + // default behaviors + $E.addListener(window, "resize", obj.onRepaint, obj, true); - // initialization of the font and scroll monitors - obj.initMonitors = function ( config ) { - var fMonitors = function () { + // default Suscriptions + obj.on('navigate', navRelExternal); + obj.on('navigate', defaultActionsControl); + + // initialization of the font and scroll monitors + obj.initMonitors = function ( config ) { + var fMonitors = function () { var oMonitors = new YAHOO.widget.Module('yui-cms-font-monitor', { monitorresize:true, visible:false @@ -326,62 +326,62 @@ YAHOO.widget.Module.textResizeEvent.subscribe(obj.onRepaint, obj, true); // monitoring scroll actions... YAHOO.widget.Overlay.windowScrollEvent.subscribe(obj.onRepaint, obj, true); - }; - if ($L.isFunction(YAHOO.widget.Module)) { - $E.onDOMReady (fMonitors, obj, true); - } - }; - // initialization inside the selfconstructor - obj.init = function () { - if (!this.ready) { - var el = document.body; - $E.addListener(el, - "click", - obj.onNavigate, - obj, - true - ); - /* - Listen for the "mousedown" event in Opera b/c it does not - support the "contextmenu" event - */ - $E.addListener( - el, - (isOpera ? "mousedown" : "contextmenu"), - obj.onProperty, - obj, - true - ); - /* - Assign a "click" event handler to the trigger element(s) for - Opera to prevent default browser behaviors. - */ - if(isOpera) { - $E.addListener( - el, - "click", - obj.onProperty, - obj, - true - ); - } - $E.addListener(el, "mouseover", obj.onRollOver, obj, true); - $E.addListener(el, "mouseout", obj.onRollOut, obj, true); + }; + if ($L.isFunction(YAHOO.widget.Module)) { + $E.onDOMReady (fMonitors, obj, true); + } + }; + // initialization inside the selfconstructor + obj.init = function () { + if (!this.ready) { + var el = document.body; + $E.addListener(el, + "click", + obj.onNavigate, + obj, + true + ); + /* + Listen for the "mousedown" event in Opera b/c it does not + support the "contextmenu" event + */ + $E.addListener( + el, + (isOpera ? "mousedown" : "contextmenu"), + obj.onProperty, + obj, + true + ); + /* + Assign a "click" event handler to the trigger element(s) for + Opera to prevent default browser behaviors. + */ + if(isOpera) { + $E.addListener( + el, + "click", + obj.onProperty, + obj, + true + ); + } + $E.addListener(el, "mouseover", obj.onRollOver, obj, true); + $E.addListener(el, "mouseout", obj.onRollOut, obj, true); - // keys... + // keys... $E.addListener(document, "keyup", obj.onKeyPressed, obj, true); - $E.addListener(document, "keydown", obj.onKeyPressed, obj, true); + $E.addListener(document, "keydown", obj.onKeyPressed, obj, true); - this.ready = true; - obj.onReady.fire(); - } - }; - $E.onDOMReady(obj.init, obj, true); + this.ready = true; + obj.onReady.fire(); + } + }; + $E.onDOMReady(obj.init, obj, true); - // creating the default layers... - obj.addLayer (['navigate','god','property','key','repaint','rollover', 'rollout']); // god layer - hack: the layer after the common navigate layer... + // creating the default layers... + obj.addLayer (['navigate','god','property','key','repaint','rollover', 'rollout']); // god layer - hack: the layer after the common navigate layer... - return obj; + return obj; }(); })(); YAHOO.register("bubbling", YAHOO.Bubbling, {version: "1.5.0", build: "222"}); \ No newline at end of file Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/animation.js URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/animation.js?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/animation.js (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/animation.js Tue Feb 17 22:06:18 2009 @@ -550,7 +550,7 @@ /** * Starts the animation thread. - * Only one thread can run at a time. + * Only one thread can run at a time. * @method start */ this.start = function() { @@ -843,7 +843,7 @@ * @return {Number} The computed value for the current animation frame */ easeNone: function (t, b, c, d) { - return c*t/d + b; + return c*t/d + b; }, /** @@ -856,7 +856,7 @@ * @return {Number} The computed value for the current animation frame */ easeIn: function (t, b, c, d) { - return c*(t/=d)*t + b; + return c*(t/=d)*t + b; }, /** @@ -869,7 +869,7 @@ * @return {Number} The computed value for the current animation frame */ easeOut: function (t, b, c, d) { - return -c *(t/=d)*(t-2) + b; + return -c *(t/=d)*(t-2) + b; }, /** @@ -882,11 +882,11 @@ * @return {Number} The computed value for the current animation frame */ easeBoth: function (t, b, c, d) { - if ((t/=d/2) < 1) { + if ((t/=d/2) < 1) { return c/2*t*t + b; } - return -c/2 * ((--t)*(t-2) - 1) + b; + return -c/2 * ((--t)*(t-2) - 1) + b; }, /** @@ -899,7 +899,7 @@ * @return {Number} The computed value for the current animation frame */ easeInStrong: function (t, b, c, d) { - return c*(t/=d)*t*t*t + b; + return c*(t/=d)*t*t*t + b; }, /** @@ -912,7 +912,7 @@ * @return {Number} The computed value for the current animation frame */ easeOutStrong: function (t, b, c, d) { - return -c * ((t=t/d-1)*t*t*t - 1) + b; + return -c * ((t=t/d-1)*t*t*t - 1) + b; }, /** @@ -925,11 +925,11 @@ * @return {Number} The computed value for the current animation frame */ easeBothStrong: function (t, b, c, d) { - if ((t/=d/2) < 1) { + if ((t/=d/2) < 1) { return c/2*t*t*t*t + b; } - return -c/2 * ((t-=2)*t*t*t - 2) + b; + return -c/2 * ((t-=2)*t*t*t - 2) + b; }, /** @@ -945,7 +945,7 @@ */ elasticIn: function (t, b, c, d, a, p) { - if (t == 0) { + if (t == 0) { return b; } if ( (t /= d) == 1 ) { @@ -955,15 +955,15 @@ p=d*.3; } - if (!a || a < Math.abs(c)) { + if (!a || a < Math.abs(c)) { a = c; var s = p/4; } - else { + else { var s = p/(2*Math.PI) * Math.asin (c/a); } - return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; }, /** @@ -978,7 +978,7 @@ * @return {Number} The computed value for the current animation frame */ elasticOut: function (t, b, c, d, a, p) { - if (t == 0) { + if (t == 0) { return b; } if ( (t /= d) == 1 ) { @@ -988,15 +988,15 @@ p=d*.3; } - if (!a || a < Math.abs(c)) { + if (!a || a < Math.abs(c)) { a = c; var s = p / 4; } - else { + else { var s = p/(2*Math.PI) * Math.asin (c/a); } - return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; }, /** @@ -1011,7 +1011,7 @@ * @return {Number} The computed value for the current animation frame */ elasticBoth: function (t, b, c, d, a, p) { - if (t == 0) { + if (t == 0) { return b; } @@ -1023,19 +1023,19 @@ p = d*(.3*1.5); } - if ( !a || a < Math.abs(c) ) { + if ( !a || a < Math.abs(c) ) { a = c; var s = p/4; } - else { + else { var s = p/(2*Math.PI) * Math.asin (c/a); } - if (t < 1) { + if (t < 1) { return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; } - return a*Math.pow(2,-10*(t-=1)) * + return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; }, @@ -1051,10 +1051,10 @@ * @return {Number} The computed value for the current animation frame */ backIn: function (t, b, c, d, s) { - if (typeof s == 'undefined') { + if (typeof s == 'undefined') { s = 1.70158; } - return c*(t/=d)*t*((s+1)*t - s) + b; + return c*(t/=d)*t*((s+1)*t - s) + b; }, /** @@ -1068,10 +1068,10 @@ * @return {Number} The computed value for the current animation frame */ backOut: function (t, b, c, d, s) { - if (typeof s == 'undefined') { + if (typeof s == 'undefined') { s = 1.70158; } - return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; }, /** @@ -1086,14 +1086,14 @@ * @return {Number} The computed value for the current animation frame */ backBoth: function (t, b, c, d, s) { - if (typeof s == 'undefined') { + if (typeof s == 'undefined') { s = 1.70158; } - if ((t /= d/2 ) < 1) { + if ((t /= d/2 ) < 1) { return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; } - return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; }, /** @@ -1106,7 +1106,7 @@ * @return {Number} The computed value for the current animation frame */ bounceIn: function (t, b, c, d) { - return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b; + return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b; }, /** @@ -1119,13 +1119,13 @@ * @return {Number} The computed value for the current animation frame */ bounceOut: function (t, b, c, d) { - if ((t/=d) < (1/2.75)) { - return c*(7.5625*t*t) + b; - } else if (t < (2/2.75)) { - return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; - } else if (t < (2.5/2.75)) { - return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; - } + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; }, @@ -1139,10 +1139,10 @@ * @return {Number} The computed value for the current animation frame */ bounceBoth: function (t, b, c, d) { - if (t < d/2) { + if (t < d/2) { return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b; } - return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b; + return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b; } }; @@ -1215,7 +1215,7 @@ var val = null; if ( this.patterns.points.test(attr) ) { - var t = this.method(this.currentFrame, 0, 100, this.totalFrames) / 100; + var t = this.method(this.currentFrame, 0, 100, this.totalFrames) / 100; val = Y.Bezier.getPosition(this.runtimeAttributes[attr], t); } else { val = superclass.doMethod.call(this, attr, start, end); Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/button.js URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/button.js?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/button.js (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/button.js Tue Feb 17 22:06:18 2009 @@ -397,18 +397,18 @@ YAHOO.widget.Button = function (p_oElement, p_oAttributes) { - if (!Overlay && YAHOO.widget.Overlay) { - - Overlay = YAHOO.widget.Overlay; - - } + if (!Overlay && YAHOO.widget.Overlay) { + + Overlay = YAHOO.widget.Overlay; + + } - if (!Menu && YAHOO.widget.Menu) { - - Menu = YAHOO.widget.Menu; - - } + if (!Menu && YAHOO.widget.Menu) { + + Menu = YAHOO.widget.Menu; + + } var fnSuperClass = YAHOO.widget.Button.superclass.constructor, @@ -824,7 +824,7 @@ var sClass, nGeckoVersion = UA.gecko; - + if (nGeckoVersion && nGeckoVersion < 1.9 && Dom.inDocument(this.get("element"))) { @@ -1409,29 +1409,29 @@ */ _isSplitButtonOptionKey: function (p_oEvent) { - var bShowMenu = (p_oEvent.ctrlKey && p_oEvent.shiftKey && - Event.getCharCode(p_oEvent) == 77); + var bShowMenu = (p_oEvent.ctrlKey && p_oEvent.shiftKey && + Event.getCharCode(p_oEvent) == 77); - function onKeyPress(p_oEvent) { + function onKeyPress(p_oEvent) { - Event.preventDefault(p_oEvent); + Event.preventDefault(p_oEvent); - this.removeListener("keypress", onKeyPress); - - } + this.removeListener("keypress", onKeyPress); + + } - /* - It is necessary to add a "keypress" event listener to prevent Opera's default - browser context menu from appearing when the user presses Ctrl + Shift + M. - */ + /* + It is necessary to add a "keypress" event listener to prevent Opera's default + browser context menu from appearing when the user presses Ctrl + Shift + M. + */ - if (bShowMenu && UA.opera) { + if (bShowMenu && UA.opera) { - this.on("keypress", onKeyPress); + this.on("keypress", onKeyPress); - } + } return bShowMenu; @@ -1606,11 +1606,11 @@ oMenu.align("bl", "tl"); } - else { + else { - oMenu.align("tl", "bl"); + oMenu.align("tl", "bl"); - } + } } @@ -3574,17 +3574,17 @@ fireEvent: function (p_sType , p_aArgs) { - var sType = arguments[0]; - - // Disabled buttons should not respond to DOM events - - if (this.DOM_EVENTS[sType] && this.get("disabled")) { - - return; - - } - - return YAHOO.widget.Button.superclass.fireEvent.apply(this, arguments); + var sType = arguments[0]; + + // Disabled buttons should not respond to DOM events + + if (this.DOM_EVENTS[sType] && this.get("disabled")) { + + return; + + } + + return YAHOO.widget.Button.superclass.fireEvent.apply(this, arguments); }, Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/container.js URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/container.js?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/container.js (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/container.js Tue Feb 17 22:06:18 2009 @@ -1663,7 +1663,7 @@ } if (this.body && ! Dom.inDocument(this.body)) { - // There is a body, but it's not in the DOM yet. Need to add it. + // There is a body, but it's not in the DOM yet. Need to add it. if (this.footer && Dom.isAncestor(this.moduleElement, this.footer)) { moduleElement.insertBefore(this.body, this.footer); } else { @@ -5155,9 +5155,9 @@ oClose = this.close; function doHide(e, obj) { - obj.body.removeChild(obj.body.firstChild); - //obj.element.removeChild(obj); - obj.element.parentNode.removeChild(obj.element); + obj.body.removeChild(obj.body.firstChild); + //obj.element.removeChild(obj); + obj.element.parentNode.removeChild(obj.element); obj.hide(); } Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/element-beta.js URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/element-beta.js?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/element-beta.js (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/element-beta.js Tue Feb 17 22:06:18 2009 @@ -21,71 +21,71 @@ }; YAHOO.util.Attribute.prototype = { - /** + /** * The name of the attribute. - * @property name - * @type String - */ + * @property name + * @type String + */ name: undefined, - /** + /** * The value of the attribute. - * @property value - * @type String - */ + * @property value + * @type String + */ value: null, - /** + /** * The owner of the attribute. - * @property owner - * @type YAHOO.util.AttributeProvider - */ + * @property owner + * @type YAHOO.util.AttributeProvider + */ owner: null, - /** + /** * Whether or not the attribute is read only. - * @property readOnly - * @type Boolean - */ + * @property readOnly + * @type Boolean + */ readOnly: false, - /** + /** * Whether or not the attribute can only be written once. - * @property writeOnce - * @type Boolean - */ + * @property writeOnce + * @type Boolean + */ writeOnce: false, - /** + /** * The attribute's initial configuration. * @private - * @property _initialConfig - * @type Object - */ + * @property _initialConfig + * @type Object + */ _initialConfig: null, - /** + /** * Whether or not the attribute's value has been set. * @private - * @property _written - * @type Boolean - */ + * @property _written + * @type Boolean + */ _written: false, - /** + /** * The method to use when setting the attribute's value. * The method recieves the new value as the only argument. - * @property method - * @type Function - */ + * @property method + * @type Function + */ method: null, - /** + /** * The validator to use when setting the attribute's value. - * @property validator - * @type Function + * @property validator + * @type Function * @return Boolean - */ + */ validator: null, /** Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/tabview.js URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/tabview.js?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/tabview.js (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/js/yui/tabview.js Tue Feb 17 22:06:18 2009 @@ -34,7 +34,7 @@ if (!el && !attr.element) { // create if we dont have one el = _createTabViewElement.call(this, attr); } - YAHOO.widget.TabView.superclass.constructor.call(this, el, attr); + YAHOO.widget.TabView.superclass.constructor.call(this, el, attr); }; YAHOO.extend(YAHOO.widget.TabView, YAHOO.util.Element); @@ -183,7 +183,7 @@ * @return YAHOO.widget.Tab */ proto.getTab = function(index) { - return this.get('tabs')[index]; + return this.get('tabs')[index]; }; /** @@ -195,7 +195,7 @@ proto.getTabIndex = function(tab) { var index = null; var tabs = this.get('tabs'); - for (var i = 0, len = tabs.length; i < len; ++i) { + for (var i = 0, len = tabs.length; i < len; ++i) { if (tab == tabs[i]) { index = i; break; @@ -229,7 +229,7 @@ this._tabParent.removeChild( tab.get('element') ); this._contentParent.removeChild( tab.get('contentEl') ); this._configs.tabs.value.splice(index, 1); - + }; /** @@ -797,7 +797,7 @@ } else { this.get('contentEl').style.display = 'none'; } - + }, validator: YAHOO.lang.isBoolean }); Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/processes.html URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/processes.html?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/processes.html (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/main/webapp/processes.html Tue Feb 17 22:06:18 2009 @@ -4,52 +4,52 @@ Apache ODE | Processes - - - - + + + + - - - - - + + - - - + @@ -82,12 +82,12 @@
- +
- + Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/Axis2TestBase.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/Axis2TestBase.java?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/Axis2TestBase.java (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/Axis2TestBase.java Tue Feb 17 22:06:18 2009 @@ -47,64 +47,64 @@ protected ODEAxis2Server server; - protected String config; - - protected static final String DO_NOT_OVERRIDE_CONFIG = ""; - - private static String originalOdePersistence = System.getProperty("ode.persistence"); - private static String originalOdeConfigDir = System.getProperty("org.apache.ode.configDir"); - - @DataProvider(name = "configs") - protected Iterator createConfigData() { - List configDirList = new ArrayList(); - if( !(this instanceof ODEConfigDirAware) || ((ODEConfigDirAware)this).getODEConfigDir().contains("hib")) { - addToConfigDirList(configDirList, "org.apache.ode.hibdbs"); - } - if( !(this instanceof ODEConfigDirAware) || !((ODEConfigDirAware)this).getODEConfigDir().contains("hib")) { - addToConfigDirList(configDirList, "org.apache.ode.jpadbs"); - } - - if( configDirList.isEmpty() ) { - // if no system property is set, fall back to default - if( this instanceof ODEConfigDirAware ) { - configDirList.add(((ODEConfigDirAware)this).getODEConfigDir()); - } else { - configDirList.add(DO_NOT_OVERRIDE_CONFIG); - } - } else { - System.out.println("Java system properties have been set to override ode configuration: " + configDirList); - } - - final Iterator itr = configDirList.iterator(); - return new Iterator() { - public boolean hasNext() { - return itr.hasNext(); - } - - public Object[] next() { - config = itr.next(); - return new Object[] {}; - } - - public void remove() { - } - }; - } - - private void addToConfigDirList(List configDirList, String propertyKey) { - String dbs = System.getProperty(propertyKey); - if( dbs != null ) { - String[] configDirs = dbs.split(","); - for( String configDir : configDirs ) { - String trimmed = configDir.trim(); - if( trimmed.length() > 0 ) { - configDirList.add(trimmed); - } - } - } - } - - public void startServer() throws Exception { + protected String config; + + protected static final String DO_NOT_OVERRIDE_CONFIG = ""; + + private static String originalOdePersistence = System.getProperty("ode.persistence"); + private static String originalOdeConfigDir = System.getProperty("org.apache.ode.configDir"); + + @DataProvider(name = "configs") + protected Iterator createConfigData() { + List configDirList = new ArrayList(); + if( !(this instanceof ODEConfigDirAware) || ((ODEConfigDirAware)this).getODEConfigDir().contains("hib")) { + addToConfigDirList(configDirList, "org.apache.ode.hibdbs"); + } + if( !(this instanceof ODEConfigDirAware) || !((ODEConfigDirAware)this).getODEConfigDir().contains("hib")) { + addToConfigDirList(configDirList, "org.apache.ode.jpadbs"); + } + + if( configDirList.isEmpty() ) { + // if no system property is set, fall back to default + if( this instanceof ODEConfigDirAware ) { + configDirList.add(((ODEConfigDirAware)this).getODEConfigDir()); + } else { + configDirList.add(DO_NOT_OVERRIDE_CONFIG); + } + } else { + System.out.println("Java system properties have been set to override ode configuration: " + configDirList); + } + + final Iterator itr = configDirList.iterator(); + return new Iterator() { + public boolean hasNext() { + return itr.hasNext(); + } + + public Object[] next() { + config = itr.next(); + return new Object[] {}; + } + + public void remove() { + } + }; + } + + private void addToConfigDirList(List configDirList, String propertyKey) { + String dbs = System.getProperty(propertyKey); + if( dbs != null ) { + String[] configDirs = dbs.split(","); + for( String configDir : configDirs ) { + String trimmed = configDir.trim(); + if( trimmed.length() > 0 ) { + configDirList.add(trimmed); + } + } + } + } + + public void startServer() throws Exception { startServer("webapp/WEB-INF", "webapp/WEB-INF/conf/axis2.xml"); } @@ -122,43 +122,43 @@ @BeforeMethod protected void setUp() throws Exception { - /** - * 1. If no settings are given from buildr, the test runs with the default config directory. - * 2. If no settings are given from buildr and if the test implements ODEConfigDirAware, the test runs with - * the config directory from the interface. - * 3. If settings are given from buildr and if it's derby and openJPA, test falls back to the above 1 or 2. - * 4. If settings are given from buildr and if it's derby and hibernate, test falls back to the above 2 or - * uses -Dode.persistence=hibernate. - */ - if( config == null || DO_NOT_OVERRIDE_CONFIG.equals(config) ) { - System.out.println("Test config: default."); - } else if("".equals(config)) { - if( this instanceof ODEConfigDirAware ) { - config = ((ODEConfigDirAware)this).getODEConfigDir(); - System.out.println("Test config: " + config + "."); - System.setProperty("org.apache.ode.configDir", config); - } else { - System.out.println("Test config: default."); - } - } else if("".equals(config)) { - if( this instanceof ODEConfigDirAware ) { - config = ((ODEConfigDirAware)this).getODEConfigDir(); - System.out.println("Test config: " + config + "."); - System.setProperty("org.apache.ode.configDir", config); - } else { - // why does this not work? -// System.out.println("Test config: -Dode.persistence=hibernate"); -// System.setProperty("ode.persistence", "hibernate"); - config = getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.hib-derby"; - System.out.println("Test config: " + config + "."); - System.setProperty("org.apache.ode.configDir", config); - } - } else { - System.out.println("Test config: " + config + "."); - System.setProperty("org.apache.ode.configDir", config); - } + /** + * 1. If no settings are given from buildr, the test runs with the default config directory. + * 2. If no settings are given from buildr and if the test implements ODEConfigDirAware, the test runs with + * the config directory from the interface. + * 3. If settings are given from buildr and if it's derby and openJPA, test falls back to the above 1 or 2. + * 4. If settings are given from buildr and if it's derby and hibernate, test falls back to the above 2 or + * uses -Dode.persistence=hibernate. + */ + if( config == null || DO_NOT_OVERRIDE_CONFIG.equals(config) ) { + System.out.println("Test config: default."); + } else if("".equals(config)) { + if( this instanceof ODEConfigDirAware ) { + config = ((ODEConfigDirAware)this).getODEConfigDir(); + System.out.println("Test config: " + config + "."); + System.setProperty("org.apache.ode.configDir", config); + } else { + System.out.println("Test config: default."); + } + } else if("".equals(config)) { + if( this instanceof ODEConfigDirAware ) { + config = ((ODEConfigDirAware)this).getODEConfigDir(); + System.out.println("Test config: " + config + "."); + System.setProperty("org.apache.ode.configDir", config); + } else { + // why does this not work? +// System.out.println("Test config: -Dode.persistence=hibernate"); +// System.setProperty("ode.persistence", "hibernate"); + config = getClass().getClassLoader().getResource("webapp").getFile() + "/WEB-INF/conf.hib-derby"; + System.out.println("Test config: " + config + "."); + System.setProperty("org.apache.ode.configDir", config); + } + } else { + System.out.println("Test config: " + config + "."); + System.setProperty("org.apache.ode.configDir", config); + } - startServer(); + startServer(); } @AfterMethod @@ -166,14 +166,14 @@ stopServer(); if( originalOdeConfigDir != null ) { - System.setProperty("org.apache.ode.configDir", originalOdeConfigDir); + System.setProperty("org.apache.ode.configDir", originalOdeConfigDir); } else { - System.clearProperty("org.apache.ode.configDir"); + System.clearProperty("org.apache.ode.configDir"); } if( originalOdeConfigDir != null ) { - System.setProperty("ode.persistence", originalOdePersistence); + System.setProperty("ode.persistence", originalOdePersistence); } else { - System.clearProperty("ode.persistence"); + System.clearProperty("ode.persistence"); } } Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/BpelActivityTest.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/BpelActivityTest.java?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/BpelActivityTest.java (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/BpelActivityTest.java Tue Feb 17 22:06:18 2009 @@ -6,38 +6,38 @@ import org.testng.annotations.Test; public class BpelActivityTest extends Axis2TestBase { - @Test(dataProvider="configs") + @Test(dataProvider="configs") public void testThrowOnEvent() throws Exception { - final String bundleName = "TestThrowOnEvent"; + final String bundleName = "TestThrowOnEvent"; // deploy the required service server.deployService(DummyService.class.getCanonicalName()); if (server.isDeployed(bundleName)) server.undeployProcess(bundleName); server.deployProcess(bundleName); new Thread() { - public void run() { - try { - Thread.sleep(2000); - String response = server.sendRequestFile("http://localhost:8888/ode/processes/OnEventCorrelation/", + public void run() { + try { + Thread.sleep(2000); + String response = server.sendRequestFile("http://localhost:8888/ode/processes/OnEventCorrelation/", bundleName, "testRequest.soap"); - Logger.getLogger(BpelActivityTest.class).debug("!!! : " + response); - } catch( Exception e ) { - fail(e.getMessage()); - } - } + Logger.getLogger(BpelActivityTest.class).debug("!!! : " + response); + } catch( Exception e ) { + fail(e.getMessage()); + } + } }.start(); // new Thread() { -// public void run() { -// try { -// Thread.sleep(6000); -// String response = server.sendRequestFile("http://localhost:8888/ode/processes/OnEventCorrelation/", +// public void run() { +// try { +// Thread.sleep(6000); +// String response = server.sendRequestFile("http://localhost:8888/ode/processes/OnEventCorrelation/", // bundleName, "testRequest.soap"); -// Logger.getLogger(BpelActivityTest.class).debug("!!!SEAN : " + response); -// } catch( Exception e ) { -// fail(e.getMessage()); -// } -// } +// Logger.getLogger(BpelActivityTest.class).debug("!!!SEAN : " + response); +// } catch( Exception e ) { +// fail(e.getMessage()); +// } +// } // }.start(); try { Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/EndpointConfigurationTest.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/EndpointConfigurationTest.java?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/EndpointConfigurationTest.java (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/EndpointConfigurationTest.java Tue Feb 17 22:06:18 2009 @@ -33,7 +33,7 @@ * */ public class EndpointConfigurationTest extends Axis2TestBase { - @Test + @Test public void testEndpointProperties() throws Exception { executeProcess(); } Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/EndpointTimeoutsTest.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/EndpointTimeoutsTest.java?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/EndpointTimeoutsTest.java (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/EndpointTimeoutsTest.java Tue Feb 17 22:06:18 2009 @@ -13,7 +13,7 @@ * */ public class EndpointTimeoutsTest extends Axis2TestBase { - @Test(dataProvider="configs") + @Test(dataProvider="configs") public void testTimeouts() throws Exception { String bundleName = "TestEndpointTimeouts"; // deploy the required service Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/MessageStructureTest.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/MessageStructureTest.java?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/MessageStructureTest.java (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/MessageStructureTest.java Tue Feb 17 22:06:18 2009 @@ -6,8 +6,8 @@ import org.w3c.dom.Element; public class MessageStructureTest extends Axis2TestBase { - @Test(dataProvider="configs") - public void testAttrWithNsValue() throws Exception { + @Test(dataProvider="configs") + public void testAttrWithNsValue() throws Exception { String bundleName = "TestAttributeNamespaces"; // deploy the required service server.deployService(DummyService.class.getCanonicalName()); Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/ODEConfigDirAware.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/ODEConfigDirAware.java?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/ODEConfigDirAware.java (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/ODEConfigDirAware.java Tue Feb 17 22:06:18 2009 @@ -1,5 +1,5 @@ package org.apache.ode.axis2; public interface ODEConfigDirAware { - String getODEConfigDir(); + String getODEConfigDir(); } \ No newline at end of file Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/ServiceFaultCatchTest.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/ServiceFaultCatchTest.java?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/ServiceFaultCatchTest.java (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/ServiceFaultCatchTest.java Tue Feb 17 22:06:18 2009 @@ -10,7 +10,7 @@ * @author Matthieu Riou */ public class ServiceFaultCatchTest extends Axis2TestBase { - @Test(dataProvider="configs") + @Test(dataProvider="configs") public void testSimpleFaultCatch() throws Exception { String bundleName = "TestStructuredFault"; // deploy the required service Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/SoapHeaderTest.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/SoapHeaderTest.java?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/SoapHeaderTest.java (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/SoapHeaderTest.java Tue Feb 17 22:06:18 2009 @@ -25,13 +25,13 @@ * @author Matthieu Riou */ public class SoapHeaderTest extends Axis2TestBase { - @Test(dataProvider="configs") + @Test(dataProvider="configs") public void testSimplePassing() throws Exception { server.deployService("TestSoapHeader", "dummy-service.wsdl", new QName("http://axis2.ode.apache.org", "DummyService"), "DummyServiceSOAP11port_http", new MessageReceiver() { @SuppressWarnings("deprecation") - public void receive(MessageContext messageCtx) throws AxisFault { + public void receive(MessageContext messageCtx) throws AxisFault { OMElement cidElmt = messageCtx.getEnvelope().getHeader().getFirstElement(); assertEquals("ConversationId", cidElmt.getLocalName()); assertEquals("ZZZXYZ", cidElmt.getText()); Modified: ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/XSDReferencesDeployTest.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/XSDReferencesDeployTest.java?rev=745271&r1=745270&r2=745271&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/XSDReferencesDeployTest.java (original) +++ ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/XSDReferencesDeployTest.java Tue Feb 17 22:06:18 2009 @@ -6,7 +6,7 @@ * @author Matthieu Riou */ public class XSDReferencesDeployTest extends Axis2TestBase { - @Test(dataProvider="configs") + @Test(dataProvider="configs") public void testSimpleFaultCatch() throws Exception { server.deployService(DummyService.class.getCanonicalName()); // If we have a bug, this will throw an exception, no need to assert