http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/editor-min.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/editor-min.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/editor-min.js
index 4f4e199..11232c7 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/editor-min.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/editor-min.js
@@ -1,9 +1,21 @@
 /*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.6.0
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 (function(){var 
B=YAHOO.util.Dom,A=YAHOO.util.Event,C=YAHOO.lang;if(YAHOO.widget.Button){YAHOO.widget.ToolbarButtonAdvanced=YAHOO.widget.Button;YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType="rich";YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue=function(F){var
 
E=this.getMenu().getItems();if(E.length===0){this.getMenu()._onBeforeShow();E=this.getMenu().getItems();}for(var
 
D=0;D<E.length;D++){E[D].cfg.setProperty("checked",false);if(E[D].value==F){E[D].cfg.setProperty("checked",true);}}};}else{YAHOO.widget.ToolbarButtonAdvanced=function(){};}YAHOO.widget.ToolbarButton=function(E,D){if(C.isObject(arguments[0])&&!B.get(E).nodeType){D=E;}var
 G=(D||{});var 
F={element:null,attributes:G};if(!F.attributes.type){F.attributes.type="push";}F.element=document.createElement("span");F.element.setAttribute("unselectable","on");F.element.className="yui-button
 yui-"+F.attributes.type+"-button";F.element.innerHTML='<span 
class="first-child"><a href="#">LABEL</a></span>';F.element.fir
 
stChild.firstChild.tabIndex="-1";F.attributes.id=B.generateId();YAHOO.widget.ToolbarButton.superclass.constructor.call(this,F.element,F.attributes);};YAHOO.extend(YAHOO.widget.ToolbarButton,YAHOO.util.Element,{buttonType:"normal",_handleMouseOver:function(){if(!this.get("disabled")){this.addClass("yui-button-hover");this.addClass("yui-"+this.get("type")+"-button-hover");}},_handleMouseOut:function(){this.removeClass("yui-button-hover");this.removeClass("yui-"+this.get("type")+"-button-hover");},checkValue:function(F){if(this.get("type")=="menu"){var
 E=this._button.options;for(var 
D=0;D<E.length;D++){if(E[D].value==F){E.selectedIndex=D;}}}},init:function(E,D){YAHOO.widget.ToolbarButton.superclass.init.call(this,E,D);this.on("mouseover",this._handleMouseOver,this,true);this.on("mouseout",this._handleMouseOut,this,true);},initAttributes:function(D){YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this,D);this.setAttributeConfig("value",{value:D.value});this.setAttributeConfig(
 
"menu",{value:D.menu||false});this.setAttributeConfig("type",{value:D.type,writeOnce:true,method:function(H){var
 
G,F;if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}switch(H){case"select":case"menu":G=document.createElement("select");var
 I=this.get("menu");for(var 
E=0;E<I.length;E++){F=document.createElement("option");F.innerHTML=I[E].text;F.value=I[E].value;if(I[E].checked){F.selected=true;}G.appendChild(F);}this._button.parentNode.replaceChild(G,this._button);A.on(G,"change",this._handleSelect,this,true);this._button=G;break;}}});this.setAttributeConfig("disabled",{value:D.disabled||false,method:function(E){if(E){this.addClass("yui-button-disabled");this.addClass("yui-"+this.get("type")+"-button-disabled");}else{this.removeClass("yui-button-disabled");this.removeClass("yui-"+this.get("type")+"-button-disabled");}if(this.get("type")=="menu"){this._button.disabled=E;}}});this.setAttributeConfig("label",{value:D.label,method:function(E){if(!this._butt
 
on){this._button=this.get("element").getElementsByTagName("a")[0];}if(this.get("type")=="push"){this._button.innerHTML=E;}}});this.setAttributeConfig("title",{value:D.title});this.setAttributeConfig("container",{value:null,writeOnce:true,method:function(E){this.appendTo(E);}});},_handleSelect:function(E){var
 D=A.getTarget(E);var 
F=D.options[D.selectedIndex].value;this.fireEvent("change",{type:"change",value:F});},getMenu:function(){return
 
this.get("menu");},destroy:function(){A.purgeElement(this.get("element"),true);this.get("element").parentNode.removeChild(this.get("element"));for(var
 D in 
this){if(C.hasOwnProperty(this,D)){this[D]=null;}}},fireEvent:function(E,D){if(this.DOM_EVENTS[E]&&this.get("disabled")){return
 
;}YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this,E,D);},toString:function(){return"ToolbarButton
 ("+this.get("id")+")";}});})();(function(){var 
C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;var B=function(F){var 
E=F;if(D.isString(F)){E=this.getButtonById(F
 );}if(D.isNumber(F)){E=this.getButtonByIndex(F);}if((!(E instanceof 
YAHOO.widget.ToolbarButton))&&(!(E instanceof 
YAHOO.widget.ToolbarButtonAdvanced))){E=this.getButtonByValue(F);}if((E 
instanceof YAHOO.widget.ToolbarButton)||(E instanceof 
YAHOO.widget.ToolbarButtonAdvanced)){return E;}return 
false;};YAHOO.widget.Toolbar=function(I,H){if(D.isObject(arguments[0])&&!C.get(I).nodeType){H=I;}var
 K={};if(H){D.augmentObject(K,H);}var 
J={element:null,attributes:K};if(D.isString(I)&&C.get(I)){J.element=C.get(I);}else{if(D.isObject(I)&&C.get(I)&&C.get(I).nodeType){J.element=C.get(I);}}if(!J.element){J.element=document.createElement("DIV");J.element.id=C.generateId();if(K.container&&C.get(K.container)){C.get(K.container).appendChild(J.element);}}if(!J.element.id){J.element.id=((D.isString(I))?I:C.generateId());}var
 F=document.createElement("fieldset");var 
G=document.createElement("legend");G.innerHTML="Toolbar";F.appendChild(G);var 
E=document.createElement("DIV");J.attributes.cont=E;C.addClas
 
s(E,"yui-toolbar-subcont");F.appendChild(E);J.element.appendChild(F);J.element.tabIndex=-1;J.attributes.element=J.element;J.attributes.id=J.element.id;YAHOO.widget.Toolbar.superclass.constructor.call(this,J.element,J.attributes);};YAHOO.extend(YAHOO.widget.Toolbar,YAHOO.util.Element,{_addMenuClasses:function(H,E,I){C.addClass(this.element,"yui-toolbar-"+I.get("value")+"-menu");if(C.hasClass(I._button.parentNode.parentNode,"yui-toolbar-select")){C.addClass(this.element,"yui-toolbar-select-menu");}var
 F=this.getItems();for(var 
G=0;G<F.length;G++){C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/
 /g,"-").toLowerCase():F[G]._oText.nodeValue.replace(/ 
/g,"-").toLowerCase()));C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/
 /g,"-"):F[G]._oText.nodeValue.replace(/ 
/g,"-")));}},buttonType:YAHOO.widget.ToolbarButton,dd:null,_colorData:{"#111111":"Obsidian","#2D2D2D":"Dark
 Gray","#434343":"Shale","#5B5B5B":
 
"Flint","#737373":"Gray","#8B8B8B":"Concrete","#A2A2A2":"Gray","#B9B9B9":"Titanium","#000000":"Black","#D0D0D0":"Light
 
Gray","#E6E6E6":"Silver","#FFFFFF":"White","#BFBF00":"Pumpkin","#FFFF00":"Yellow","#FFFF40":"Banana","#FFFF80":"Pale
 Yellow","#FFFFBF":"Butter","#525330":"Raw 
Siena","#898A49":"Mildew","#AEA945":"Olive","#7F7F00":"Paprika","#C3BE71":"Earth","#E0DCAA":"Khaki","#FCFAE1":"Cream","#60BF00":"Cactus","#80FF00":"Chartreuse","#A0FF40":"Green","#C0FF80":"Pale
 Lime","#DFFFBF":"Light Mint","#3B5738":"Green","#668F5A":"Lime 
Gray","#7F9757":"Yellow","#407F00":"Clover","#8A9B55":"Pistachio","#B7C296":"Light
 Jade","#E6EBD5":"Breakwater","#00BF00":"Spring Frost","#00FF80":"Pastel 
Green","#40FFA0":"Light Emerald","#80FFC0":"Sea Foam","#BFFFDF":"Sea 
Mist","#033D21":"Dark Forrest","#438059":"Moss","#7FA37C":"Medium 
Green","#007F40":"Pine","#8DAE94":"Yellow Gray Green","#ACC6B5":"Aqua 
Lung","#DDEBE2":"Sea 
Vapor","#00BFBF":"Fog","#00FFFF":"Cyan","#40FFFF":"Turquoise 
Blue","#80FFFF":"Lig
 ht Aqua","#BFFFFF":"Pale Cyan","#033D3D":"Dark Teal","#347D7E":"Gray 
Turquoise","#609A9F":"Green Blue","#007F7F":"Seaweed","#96BDC4":"Green 
Gray","#B5D1D7":"Soapstone","#E2F1F4":"Light Turquoise","#0060BF":"Summer 
Sky","#0080FF":"Sky Blue","#40A0FF":"Electric Blue","#80C0FF":"Light 
Azure","#BFDFFF":"Ice 
Blue","#1B2C48":"Navy","#385376":"Biscay","#57708F":"Dusty Blue","#00407F":"Sea 
Blue","#7792AC":"Sky Blue Gray","#A8BED1":"Morning 
Sky","#DEEBF6":"Vapor","#0000BF":"Deep 
Blue","#0000FF":"Blue","#4040FF":"Cerulean Blue","#8080FF":"Evening 
Blue","#BFBFFF":"Light Blue","#212143":"Deep Indigo","#373E68":"Sea 
Blue","#444F75":"Night Blue","#00007F":"Indigo 
Blue","#585E82":"Dockside","#8687A4":"Blue Gray","#D2D1E1":"Light Blue 
Gray","#6000BF":"Neon Violet","#8000FF":"Blue Violet","#A040FF":"Violet 
Purple","#C080FF":"Violet Dusk","#DFBFFF":"Pale Lavender","#302449":"Cool 
Shale","#54466F":"Dark Indigo","#655A7F":"Dark 
Violet","#40007F":"Violet","#726284":"Smoky Violet","#9E8FA9":"Slate Gray",
 "#DCD1DF":"Violet White","#BF00BF":"Royal 
Violet","#FF00FF":"Fuchsia","#FF40FF":"Magenta","#FF80FF":"Orchid","#FFBFFF":"Pale
 Magenta","#4A234A":"Dark Purple","#794A72":"Medium Purple","#936386":"Cool 
Granite","#7F007F":"Purple","#9D7292":"Purple Moon","#C0A0B6":"Pale 
Purple","#ECDAE5":"Pink Cloud","#BF005F":"Hot Pink","#FF007F":"Deep 
Pink","#FF409F":"Grape","#FF80BF":"Electric 
Pink","#FFBFDF":"Pink","#451528":"Purple Red","#823857":"Purple 
Dino","#A94A76":"Purple Gray","#7F003F":"Rose","#BC6F95":"Antique 
Mauve","#D8A5BB":"Cool Marble","#F7DDE9":"Pink 
Granite","#C00000":"Apple","#FF0000":"Fire Truck","#FF4040":"Pale 
Red","#FF8080":"Salmon","#FFC0C0":"Warm 
Pink","#441415":"Sepia","#82393C":"Rust","#AA4D4E":"Brick","#800000":"Brick 
Red","#BC6E6E":"Mauve","#D8A3A4":"Shrimp Pink","#F8DDDD":"Shell 
Pink","#BF5F00":"Dark 
Orange","#FF7F00":"Orange","#FF9F40":"Grapefruit","#FFBF80":"Canteloupe","#FFDFBF":"Wax","#482C1B":"Dark
 Brick","#855A40":"Dirt","#B27C51":"Tan","#7F3F00":"Nutmeg","#C49B71
 ":"Mustard","#E1C4A8":"Pale 
Tan","#FDEEE0":"Marble"},_colorPicker:null,STR_COLLAPSE:"Collapse 
Toolbar",STR_SPIN_LABEL:"Spin Button with value {VALUE}. Use Control Shift Up 
Arrow and Control Shift Down arrow keys to increase or decrease the 
value.",STR_SPIN_UP:"Click to increase the value of this 
input",STR_SPIN_DOWN:"Click to decrease the value of this 
input",_titlebar:null,browser:YAHOO.env.ua,_buttonList:null,_buttonGroupList:null,_sep:null,_sepCount:null,_dragHandle:null,_toolbarConfigs:{renderer:true},CLASS_CONTAINER:"yui-toolbar-container",CLASS_DRAGHANDLE:"yui-toolbar-draghandle",CLASS_SEPARATOR:"yui-toolbar-separator",CLASS_DISABLED:"yui-toolbar-disabled",CLASS_PREFIX:"yui-toolbar",init:function(F,E){YAHOO.widget.Toolbar.superclass.init.call(this,F,E);
 
},initAttributes:function(E){YAHOO.widget.Toolbar.superclass.initAttributes.call(this,E);this.addClass(this.CLASS_CONTAINER);this.setAttributeConfig("buttonType",{value:E.buttonType||"basic",writeOnce:true,validator:function(F){switch(F){case"advanced":case"basic":return
 true;}return 
false;},method:function(F){if(F=="advanced"){if(YAHOO.widget.Button){this.buttonType=YAHOO.widget.ToolbarButtonAdvanced;}else{this.buttonType=YAHOO.widget.ToolbarButton;}}else{this.buttonType=YAHOO.widget.ToolbarButton;}}});this.setAttributeConfig("buttons",{value:[],writeOnce:true,method:function(G){for(var
 F in 
G){if(D.hasOwnProperty(G,F)){if(G[F].type=="separator"){this.addSeparator();}else{if(G[F].group!==undefined){this.addButtonGroup(G[F]);}else{this.addButton(G[F]);}}}}}});this.setAttributeConfig("disabled",{value:false,method:function(F){if(this.get("disabled")===F){return
 
false;}if(F){this.addClass(this.CLASS_DISABLED);this.set("draggable",false);this.disableAllButtons();}else{this.removeClass(
 
this.CLASS_DISABLED);if(this._configs.draggable._initialConfig.value){this.set("draggable",true);}this.resetAllButtons();}}});this.setAttributeConfig("cont",{value:E.cont,readOnly:true});this.setAttributeConfig("grouplabels",{value:((E.grouplabels===false)?false:true),method:function(F){if(F){C.removeClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}else{C.addClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}}});this.setAttributeConfig("titlebar",{value:false,method:function(G){if(G){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}this._titlebar=document.createElement("DIV");this._titlebar.tabIndex="-1";A.on(this._titlebar,"focus",function(){this._handleFocus();},this,true);C.addClass(this._titlebar,this.CLASS_PREFIX+"-titlebar");if(D.isString(G)){var
 F=document.createElement("h2");F.tabIndex="-1";F.innerHTML='<a href="#" 
tabIndex="0">'+G+"</a>";this._titlebar.appendChild(F);A.on(F.firstChild,"click",functi
 
on(H){A.stopEvent(H);});A.on([F,F.firstChild],"focus",function(){this._handleFocus();},this,true);}if(this.get("firstChild")){this.insertBefore(this._titlebar,this.get("firstChild"));}else{this.appendChild(this._titlebar);}if(this.get("collapse")){this.set("collapse",true);}}else{if(this._titlebar){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}}}}});this.setAttributeConfig("collapse",{value:false,method:function(H){if(this._titlebar){var
 G=null;var 
F=C.getElementsByClassName("collapse","span",this._titlebar);if(H){if(F.length>0){return
 
true;}G=document.createElement("SPAN");G.innerHTML="X";G.title=this.STR_COLLAPSE;C.addClass(G,"collapse");this._titlebar.appendChild(G);A.addListener(G,"click",function(){if(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}else{this.collapse();}},this,true);}else{G=C.getElementsByClassName("collapse","span",this._titlebar);if(G[0]){if(C.hasClass(this
 
.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}G[0].parentNode.removeChild(G[0]);}}}}});this.setAttributeConfig("draggable",{value:(E.draggable||false),method:function(F){if(F&&!this.get("titlebar")){if(!this._dragHandle){this._dragHandle=document.createElement("SPAN");this._dragHandle.innerHTML="|";this._dragHandle.setAttribute("title","Click
 to drag the 
toolbar");this._dragHandle.id=this.get("id")+"_draghandle";C.addClass(this._dragHandle,this.CLASS_DRAGHANDLE);if(this.get("cont").hasChildNodes()){this.get("cont").insertBefore(this._dragHandle,this.get("cont").firstChild);}else{this.get("cont").appendChild(this._dragHandle);}this.dd=new
 
YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._dragHandle.id);}}else{if(this._dragHandle){this._dragHandle.parentNode.removeChild(this._dragHandle);this._dragHandle=null;this.dd=null;}}if(this._titlebar){if(F){this.dd=new
 
YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._titlebar);C.addClass(thi
 
s._titlebar,"draggable");}else{C.removeClass(this._titlebar,"draggable");if(this.dd){this.dd.unreg();this.dd=null;}}}},validator:function(G){var
 F=true;if(!YAHOO.util.DD){F=false;}return 
F;}});},addButtonGroup:function(I){if(!this.get("element")){this._queue[this._queue.length]=["addButtonGroup",arguments];return
 
false;}if(!this.hasClass(this.CLASS_PREFIX+"-grouped")){this.addClass(this.CLASS_PREFIX+"-grouped");}var
 
J=document.createElement("DIV");C.addClass(J,this.CLASS_PREFIX+"-group");C.addClass(J,this.CLASS_PREFIX+"-group-"+I.group);if(I.label){var
 
F=document.createElement("h3");F.innerHTML=I.label;J.appendChild(F);}if(!this.get("grouplabels")){C.addClass(this.get("cont"),this.CLASS_PREFIX,"-nogrouplabels");}this.get("cont").appendChild(J);var
 
H=document.createElement("ul");J.appendChild(H);if(!this._buttonGroupList){this._buttonGroupList={};}this._buttonGroupList[I.group]=H;for(var
 G=0;G<I.buttons.length;G++){var 
E=document.createElement("li");E.className=this.CLASS_PREFIX+"-gr
 
oupitem";H.appendChild(E);if((I.buttons[G].type!==undefined)&&I.buttons[G].type=="separator"){this.addSeparator(E);}else{I.buttons[G].container=E;this.addButton(I.buttons[G]);}}},addButtonToGroup:function(G,H,I){var
 F=this._buttonGroupList[H];var 
E=document.createElement("li");E.className=this.CLASS_PREFIX+"-groupitem";G.container=E;this.addButton(G,I);F.appendChild(E);},addButton:function(J,I){if(!this.get("element")){this._queue[this._queue.length]=["addButton",arguments];return
 
false;}if(!this._buttonList){this._buttonList=[];}if(!J.container){J.container=this.get("cont");}if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){for(var
 P in J.menu){if(D.hasOwnProperty(J.menu,P)){var 
V={fn:function(Y,W,X){if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);},scope:this};J.menu[P].onclick=V;}}}}var
 Q={},N=false;for(var L in 
J){if(D.hasOwnProperty(J,L)){if(!this._toolbarConfigs[L]){Q[L]=J[L];}}}if(J.type=="select"){Q.type="menu"
 ;}if(J.type=="spin"){Q.type="push";
 
}if(Q.type=="color"){if(YAHOO.widget.Overlay){Q=this._makeColorButton(Q);}else{N=true;}}if(Q.menu){if((YAHOO.widget.Overlay)&&(J.menu
 instanceof 
YAHOO.widget.Overlay)){J.menu.showEvent.subscribe(function(){this._button=Q;});}else{for(var
 
O=0;O<Q.menu.length;O++){if(!Q.menu[O].value){Q.menu[O].value=Q.menu[O].text;}}if(this.browser.webkit){Q.focusmenu=false;}}}if(N){J=false;}else{this._configs.buttons.value[this._configs.buttons.value.length]=J;var
 T=new 
this.buttonType(Q);T.get("element").tabIndex="-1";T.get("element").setAttribute("role","button");T._selected=true;if(this.get("disabled")){T.set("disabled",true);}if(!J.id){J.id=T.get("id");}if(I){var
 F=T.get("element");var 
M=null;if(I.get){M=I.get("element").nextSibling;}else{if(I.nextSibling){M=I.nextSibling;}}if(M){M.parentNode.insertBefore(F,M);}}T.addClass(this.CLASS_PREFIX+"-"+T.get("value"));var
 
S=document.createElement("span");S.className=this.CLASS_PREFIX+"-icon";T.get("element").insertBefore(S,T.get("firstChild"));if(T._but
 
ton.tagName.toLowerCase()=="button"){T.get("element").setAttribute("unselectable","on");var
 
U=document.createElement("a");U.innerHTML=T._button.innerHTML;U.href="#";U.tabIndex="-1";A.on(U,"click",function(W){A.stopEvent(W);});T._button.parentNode.replaceChild(U,T._button);T._button=U;}if(J.type=="select"){if(T._button.tagName.toLowerCase()=="select"){S.parentNode.removeChild(S);var
 G=T._button;var 
R=T.get("element");R.parentNode.replaceChild(G,R);}else{T.addClass(this.CLASS_PREFIX+"-select");}}if(J.type=="spin"){if(!D.isArray(J.range)){J.range=[10,100];}this._makeSpinButton(T,J);}T.get("element").setAttribute("title",T.get("label"));if(J.type!="spin"){if((YAHOO.widget.Overlay)&&(Q.menu
 instanceof YAHOO.widget.Overlay)){var H=function(Y){var 
W=true;if(Y.keyCode&&(Y.keyCode==9)){W=false;}if(W){if(this._colorPicker){this._colorPicker._button=J.value;}var
 
X=T.getMenu().element;if(C.getStyle(X,"visibility")=="hidden"){T.getMenu().show();}else{T.getMenu().hide();}}YAHOO.util.Event.stopEve
 
nt(Y);};T.on("mousedown",H,J,this);T.on("keydown",H,J,this);}else{if((J.type!="menu")&&(J.type!="select")){T.on("keypress",this._buttonClick,J,this);T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);this._buttonClick(W,J);},J,this);T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});T.on("change",function(W){if(!J.menucmd){J.menucmd=J.value;}J.value=W.value;this._buttonClick(W,J);},this,true);var
 K=this;T.on("appendTo",function(){var 
W=this;if(W.getMenu()&&W.getMenu().mouseDownEvent){W.getMenu().mouseDownEvent.subscribe(function(Z,Y){var
 
X=Y[1];YAHOO.util.Event.stopEvent(Y[0]);W._onMenuClick(Y[0],W);if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);K._buttonClick.call(K,Y[1],J);W._hideMenu();return
 
false;});W.getMenu().clickEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});W.getMenu().mouseUpEvent.
 
subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});}});}}}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}if(this.browser.ie){}if(this.browser.webkit){T.hasFocus=function(){return
 
true;};}this._buttonList[this._buttonList.length]=T;if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){var
 
E=T.getMenu();if(E&&E.renderEvent){E.renderEvent.subscribe(this._addMenuClasses,T);if(J.renderer){E.renderEvent.subscribe(J.renderer,T);}}}}}return
 
J;},addSeparator:function(E,H){if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return
 false;}var 
F=((E)?E:this.get("cont"));if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return
 
false;}if(this._sepCount===null){this._sepCount=0;}if(!this._sep){this._sep=document.createElement("SPAN");C.addClass(this._sep,this.CLASS_SEPARATOR);this._sep.innerHTML="|";}var
 G=this._sep.cl
 
oneNode(true);this._sepCount++;C.addClass(G,this.CLASS_SEPARATOR+"-"+this._sepCount);if(H){var
 
I=null;if(H.get){I=H.get("element").nextSibling;}else{if(H.nextSibling){I=H.nextSibling;}else{I=H;}}if(I){if(I==H){I.parentNode.appendChild(G);}else{I.parentNode.insertBefore(G,I);}}}else{F.appendChild(G);}return
 
G;},_createColorPicker:function(H){if(C.get(H+"_colors")){C.get(H+"_colors").parentNode.removeChild(C.get(H+"_colors"));}var
 
E=document.createElement("div");E.className="yui-toolbar-colors";E.id=H+"_colors";E.style.display="none";A.on(window,"load",function(){document.body.appendChild(E);},this,true);this._colorPicker=E;var
 G="";for(var F in 
this._colorData){if(D.hasOwnProperty(this._colorData,F)){G+='<a 
style="background-color: '+F+'" 
href="#">'+F.replace("#","")+"</a>";}}G+="<span><em>X</em><strong></strong></span>";window.setTimeout(function(){E.innerHTML=G;},0);A.on(E,"mouseover",function(M){var
 K=this._colorPicker;var L=K.getElementsByTagName("em")[0];var 
J=K.getElementsByTag
 Name("strong")[0];var 
I=A.getTarget(M);if(I.tagName.toLowerCase()=="a"){L.style.backgroundColor=I.style.backgroundColor;J.innerHTML=this._colorData["#"+I.innerHTML]+"<br>"+I.innerHTML;}},this,true);A.on(E,"focus",function(I){A.stopEvent(I);});A.on(E,"click",function(I){A.stopEvent(I);});A.on(E,"mousedown",function(J){A.stopEvent(J);var
 I=A.getTarget(J);if(I.tagName.toLowerCase()=="a"){var 
L=this.fireEvent("colorPickerClicked",{type:"colorPickerClicked",target:this,button:this._colorPicker._button,color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML]});if(L!==false){var
 
K={color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML],value:this._colorPicker._button};this.fireEvent("buttonClick",{type:"buttonClick",target:this.get("element"),button:K});}this.getButtonByValue(this._colorPicker._button).getMenu().hide();}},this,true);},_resetColorPicker:function(){var
 F=this._colorPicker.getElementsByTagName("em")[0];var 
E=this._colorPicker.getElementsByTagName("strong")[0];F.styl
 e.backgroundColor="transparent";

http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/editor.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/editor.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/editor.js
index f16b173..33e2f95 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/editor.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/editor.js
@@ -1,9 +1,21 @@
 /*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.6.0
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 (function() {
     /**
     * @private

http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor-debug.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor-debug.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor-debug.js
index e4257e8..906aa9e 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor-debug.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor-debug.js
@@ -1,9 +1,21 @@
 /*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.6.0
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 (function() {
     /**
     * @private

http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor-min.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor-min.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor-min.js
index 0901e06..ec48671 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor-min.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor-min.js
@@ -1,9 +1,21 @@
 /*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.6.0
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 (function(){var 
B=YAHOO.util.Dom,A=YAHOO.util.Event,C=YAHOO.lang;if(YAHOO.widget.Button){YAHOO.widget.ToolbarButtonAdvanced=YAHOO.widget.Button;YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType="rich";YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue=function(F){var
 
E=this.getMenu().getItems();if(E.length===0){this.getMenu()._onBeforeShow();E=this.getMenu().getItems();}for(var
 
D=0;D<E.length;D++){E[D].cfg.setProperty("checked",false);if(E[D].value==F){E[D].cfg.setProperty("checked",true);}}};}else{YAHOO.widget.ToolbarButtonAdvanced=function(){};}YAHOO.widget.ToolbarButton=function(E,D){if(C.isObject(arguments[0])&&!B.get(E).nodeType){D=E;}var
 G=(D||{});var 
F={element:null,attributes:G};if(!F.attributes.type){F.attributes.type="push";}F.element=document.createElement("span");F.element.setAttribute("unselectable","on");F.element.className="yui-button
 yui-"+F.attributes.type+"-button";F.element.innerHTML='<span 
class="first-child"><a href="javascript:void(0)">LABEL</a></spa
 
n>';F.element.firstChild.firstChild.tabIndex="-1";F.attributes.id=B.generateId();YAHOO.widget.ToolbarButton.superclass.constructor.call(this,F.element,F.attributes);};YAHOO.extend(YAHOO.widget.ToolbarButton,YAHOO.util.Element,{buttonType:"normal",_handleMouseOver:function(){if(!this.get("disabled")){this.addClass("yui-button-hover");this.addClass("yui-"+this.get("type")+"-button-hover");}},_handleMouseOut:function(){this.removeClass("yui-button-hover");this.removeClass("yui-"+this.get("type")+"-button-hover");},checkValue:function(F){if(this.get("type")=="menu"){var
 E=this._button.options;for(var 
D=0;D<E.length;D++){if(E[D].value==F){E.selectedIndex=D;}}}},init:function(E,D){YAHOO.widget.ToolbarButton.superclass.init.call(this,E,D);this.on("mouseover",this._handleMouseOver,this,true);this.on("mouseout",this._handleMouseOut,this,true);},initAttributes:function(D){YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this,D);this.setAttributeConfig("value",{value:D.value});this.se
 
tAttributeConfig("menu",{value:D.menu||false});this.setAttributeConfig("type",{value:D.type,writeOnce:true,method:function(H){var
 
G,F;if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}switch(H){case"select":case"menu":G=document.createElement("select");var
 I=this.get("menu");for(var 
E=0;E<I.length;E++){F=document.createElement("option");F.innerHTML=I[E].text;F.value=I[E].value;if(I[E].checked){F.selected=true;}G.appendChild(F);}this._button.parentNode.replaceChild(G,this._button);A.on(G,"change",this._handleSelect,this,true);this._button=G;break;}}});this.setAttributeConfig("disabled",{value:D.disabled||false,method:function(E){if(E){this.addClass("yui-button-disabled");this.addClass("yui-"+this.get("type")+"-button-disabled");}else{this.removeClass("yui-button-disabled");this.removeClass("yui-"+this.get("type")+"-button-disabled");}if(this.get("type")=="menu"){this._button.disabled=E;}}});this.setAttributeConfig("label",{value:D.label,method:function(
 
E){if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}if(this.get("type")=="push"){this._button.innerHTML=E;}}});this.setAttributeConfig("title",{value:D.title});this.setAttributeConfig("container",{value:null,writeOnce:true,method:function(E){this.appendTo(E);}});},_handleSelect:function(E){var
 D=A.getTarget(E);var 
F=D.options[D.selectedIndex].value;this.fireEvent("change",{type:"change",value:F});},getMenu:function(){return
 
this.get("menu");},destroy:function(){A.purgeElement(this.get("element"),true);this.get("element").parentNode.removeChild(this.get("element"));for(var
 D in 
this){if(C.hasOwnProperty(this,D)){this[D]=null;}}},fireEvent:function(E,D){if(this.DOM_EVENTS[E]&&this.get("disabled")){return
 
;}YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this,E,D);},toString:function(){return"ToolbarButton
 ("+this.get("id")+")";}});})();(function(){var 
C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;var B=function(F){var 
E=F;if(D.isString(F)){E=thi
 s.getButtonById(F);}if(D.isNumber(F)){E=this.getButtonByIndex(F);}if((!(E 
instanceof YAHOO.widget.ToolbarButton))&&(!(E instanceof 
YAHOO.widget.ToolbarButtonAdvanced))){E=this.getButtonByValue(F);}if((E 
instanceof YAHOO.widget.ToolbarButton)||(E instanceof 
YAHOO.widget.ToolbarButtonAdvanced)){return E;}return 
false;};YAHOO.widget.Toolbar=function(I,H){if(D.isObject(arguments[0])&&!C.get(I).nodeType){H=I;}var
 K={};if(H){D.augmentObject(K,H);}var 
J={element:null,attributes:K};if(D.isString(I)&&C.get(I)){J.element=C.get(I);}else{if(D.isObject(I)&&C.get(I)&&C.get(I).nodeType){J.element=C.get(I);}}if(!J.element){J.element=document.createElement("DIV");J.element.id=C.generateId();if(K.container&&C.get(K.container)){C.get(K.container).appendChild(J.element);}}if(!J.element.id){J.element.id=((D.isString(I))?I:C.generateId());}var
 F=document.createElement("fieldset");var 
G=document.createElement("legend");G.innerHTML="Toolbar";F.appendChild(G);var 
E=document.createElement("DIV");J.attributes
 
.cont=E;C.addClass(E,"yui-toolbar-subcont");F.appendChild(E);J.element.appendChild(F);J.element.tabIndex=-1;J.attributes.element=J.element;J.attributes.id=J.element.id;YAHOO.widget.Toolbar.superclass.constructor.call(this,J.element,J.attributes);};YAHOO.extend(YAHOO.widget.Toolbar,YAHOO.util.Element,{_addMenuClasses:function(H,E,I){C.addClass(this.element,"yui-toolbar-"+I.get("value")+"-menu");if(C.hasClass(I._button.parentNode.parentNode,"yui-toolbar-select")){C.addClass(this.element,"yui-toolbar-select-menu");}var
 F=this.getItems();for(var 
G=0;G<F.length;G++){C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/
 /g,"-").toLowerCase():F[G]._oText.nodeValue.replace(/ 
/g,"-").toLowerCase()));C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/
 /g,"-"):F[G]._oText.nodeValue.replace(/ 
/g,"-")));}},buttonType:YAHOO.widget.ToolbarButton,dd:null,_colorData:{"#111111":"Obsidian","#2D2D2D":"Dark
 Gray","#434343":"
 
Shale","#5B5B5B":"Flint","#737373":"Gray","#8B8B8B":"Concrete","#A2A2A2":"Gray","#B9B9B9":"Titanium","#000000":"Black","#D0D0D0":"Light
 
Gray","#E6E6E6":"Silver","#FFFFFF":"White","#BFBF00":"Pumpkin","#FFFF00":"Yellow","#FFFF40":"Banana","#FFFF80":"Pale
 Yellow","#FFFFBF":"Butter","#525330":"Raw 
Siena","#898A49":"Mildew","#AEA945":"Olive","#7F7F00":"Paprika","#C3BE71":"Earth","#E0DCAA":"Khaki","#FCFAE1":"Cream","#60BF00":"Cactus","#80FF00":"Chartreuse","#A0FF40":"Green","#C0FF80":"Pale
 Lime","#DFFFBF":"Light Mint","#3B5738":"Green","#668F5A":"Lime 
Gray","#7F9757":"Yellow","#407F00":"Clover","#8A9B55":"Pistachio","#B7C296":"Light
 Jade","#E6EBD5":"Breakwater","#00BF00":"Spring Frost","#00FF80":"Pastel 
Green","#40FFA0":"Light Emerald","#80FFC0":"Sea Foam","#BFFFDF":"Sea 
Mist","#033D21":"Dark Forrest","#438059":"Moss","#7FA37C":"Medium 
Green","#007F40":"Pine","#8DAE94":"Yellow Gray Green","#ACC6B5":"Aqua 
Lung","#DDEBE2":"Sea 
Vapor","#00BFBF":"Fog","#00FFFF":"Cyan","#40FFFF":"Turquoise Blu
 e","#80FFFF":"Light Aqua","#BFFFFF":"Pale Cyan","#033D3D":"Dark 
Teal","#347D7E":"Gray Turquoise","#609A9F":"Green 
Blue","#007F7F":"Seaweed","#96BDC4":"Green 
Gray","#B5D1D7":"Soapstone","#E2F1F4":"Light Turquoise","#0060BF":"Summer 
Sky","#0080FF":"Sky Blue","#40A0FF":"Electric Blue","#80C0FF":"Light 
Azure","#BFDFFF":"Ice 
Blue","#1B2C48":"Navy","#385376":"Biscay","#57708F":"Dusty Blue","#00407F":"Sea 
Blue","#7792AC":"Sky Blue Gray","#A8BED1":"Morning 
Sky","#DEEBF6":"Vapor","#0000BF":"Deep 
Blue","#0000FF":"Blue","#4040FF":"Cerulean Blue","#8080FF":"Evening 
Blue","#BFBFFF":"Light Blue","#212143":"Deep Indigo","#373E68":"Sea 
Blue","#444F75":"Night Blue","#00007F":"Indigo 
Blue","#585E82":"Dockside","#8687A4":"Blue Gray","#D2D1E1":"Light Blue 
Gray","#6000BF":"Neon Violet","#8000FF":"Blue Violet","#A040FF":"Violet 
Purple","#C080FF":"Violet Dusk","#DFBFFF":"Pale Lavender","#302449":"Cool 
Shale","#54466F":"Dark Indigo","#655A7F":"Dark 
Violet","#40007F":"Violet","#726284":"Smoky Violet","#9E8F
 A9":"Slate Gray","#DCD1DF":"Violet White","#BF00BF":"Royal 
Violet","#FF00FF":"Fuchsia","#FF40FF":"Magenta","#FF80FF":"Orchid","#FFBFFF":"Pale
 Magenta","#4A234A":"Dark Purple","#794A72":"Medium Purple","#936386":"Cool 
Granite","#7F007F":"Purple","#9D7292":"Purple Moon","#C0A0B6":"Pale 
Purple","#ECDAE5":"Pink Cloud","#BF005F":"Hot Pink","#FF007F":"Deep 
Pink","#FF409F":"Grape","#FF80BF":"Electric 
Pink","#FFBFDF":"Pink","#451528":"Purple Red","#823857":"Purple 
Dino","#A94A76":"Purple Gray","#7F003F":"Rose","#BC6F95":"Antique 
Mauve","#D8A5BB":"Cool Marble","#F7DDE9":"Pink 
Granite","#C00000":"Apple","#FF0000":"Fire Truck","#FF4040":"Pale 
Red","#FF8080":"Salmon","#FFC0C0":"Warm 
Pink","#441415":"Sepia","#82393C":"Rust","#AA4D4E":"Brick","#800000":"Brick 
Red","#BC6E6E":"Mauve","#D8A3A4":"Shrimp Pink","#F8DDDD":"Shell 
Pink","#BF5F00":"Dark 
Orange","#FF7F00":"Orange","#FF9F40":"Grapefruit","#FFBF80":"Canteloupe","#FFDFBF":"Wax","#482C1B":"Dark
 Brick","#855A40":"Dirt","#B27C51":"Tan","#7F3F00":
 "Nutmeg","#C49B71":"Mustard","#E1C4A8":"Pale 
Tan","#FDEEE0":"Marble"},_colorPicker:null,STR_COLLAPSE:"Collapse 
Toolbar",STR_SPIN_LABEL:"Spin Button with value {VALUE}. Use Control Shift Up 
Arrow and Control Shift Down arrow keys to increase or decrease the 
value.",STR_SPIN_UP:"Click to increase the value of this 
input",STR_SPIN_DOWN:"Click to decrease the value of this 
input",_titlebar:null,browser:YAHOO.env.ua,_buttonList:null,_buttonGroupList:null,_sep:null,_sepCount:null,_dragHandle:null,_toolbarConfigs:{renderer:true},CLASS_CONTAINER:"yui-toolbar-container",CLASS_DRAGHANDLE:"yui-toolbar-draghandle",CLASS_SEPARATOR:"yui-toolbar-separator",CLASS_DISABLED:"yui-toolbar-disabled",CLASS_PREFIX:"yui-toolbar",init:function(F,E){YAHOO.widget.Toolbar.superclass.init.call(this,F,E);
 
},initAttributes:function(E){YAHOO.widget.Toolbar.superclass.initAttributes.call(this,E);this.addClass(this.CLASS_CONTAINER);this.setAttributeConfig("buttonType",{value:E.buttonType||"basic",writeOnce:true,validator:function(F){switch(F){case"advanced":case"basic":return
 true;}return 
false;},method:function(F){if(F=="advanced"){if(YAHOO.widget.Button){this.buttonType=YAHOO.widget.ToolbarButtonAdvanced;}else{this.buttonType=YAHOO.widget.ToolbarButton;}}else{this.buttonType=YAHOO.widget.ToolbarButton;}}});this.setAttributeConfig("buttons",{value:[],writeOnce:true,method:function(G){for(var
 F in 
G){if(D.hasOwnProperty(G,F)){if(G[F].type=="separator"){this.addSeparator();}else{if(G[F].group!==undefined){this.addButtonGroup(G[F]);}else{this.addButton(G[F]);}}}}}});this.setAttributeConfig("disabled",{value:false,method:function(F){if(this.get("disabled")===F){return
 
false;}if(F){this.addClass(this.CLASS_DISABLED);this.set("draggable",false);this.disableAllButtons();}else{this.removeClass(
 
this.CLASS_DISABLED);if(this._configs.draggable._initialConfig.value){this.set("draggable",true);}this.resetAllButtons();}}});this.setAttributeConfig("cont",{value:E.cont,readOnly:true});this.setAttributeConfig("grouplabels",{value:((E.grouplabels===false)?false:true),method:function(F){if(F){C.removeClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}else{C.addClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}}});this.setAttributeConfig("titlebar",{value:false,method:function(G){if(G){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}this._titlebar=document.createElement("DIV");this._titlebar.tabIndex="-1";A.on(this._titlebar,"focus",function(){this._handleFocus();},this,true);C.addClass(this._titlebar,this.CLASS_PREFIX+"-titlebar");if(D.isString(G)){var
 F=document.createElement("h2");F.tabIndex="-1";F.innerHTML='<a 
href="javascript:void(0)" 
tabIndex="0">'+G+"</a>";this._titlebar.appendChild(F);A.on(F.firstChi
 
ld,"click",function(H){A.stopEvent(H);});A.on([F,F.firstChild],"focus",function(){this._handleFocus();},this,true);}if(this.get("firstChild")){this.insertBefore(this._titlebar,this.get("firstChild"));}else{this.appendChild(this._titlebar);}if(this.get("collapse")){this.set("collapse",true);}}else{if(this._titlebar){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}}}}});this.setAttributeConfig("collapse",{value:false,method:function(H){if(this._titlebar){var
 G=null;var 
F=C.getElementsByClassName("collapse","span",this._titlebar);if(H){if(F.length>0){return
 
true;}G=document.createElement("SPAN");G.innerHTML="X";G.title=this.STR_COLLAPSE;C.addClass(G,"collapse");this._titlebar.appendChild(G);A.addListener(G,"click",function(){if(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}else{this.collapse();}},this,true);}else{G=C.getElementsByClassName("collapse","span",this._titlebar);if(G[0]){i
 
f(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}G[0].parentNode.removeChild(G[0]);}}}}});this.setAttributeConfig("draggable",{value:(E.draggable||false),method:function(F){if(F&&!this.get("titlebar")){if(!this._dragHandle){this._dragHandle=document.createElement("SPAN");this._dragHandle.innerHTML="|";this._dragHandle.setAttribute("title","Click
 to drag the 
toolbar");this._dragHandle.id=this.get("id")+"_draghandle";C.addClass(this._dragHandle,this.CLASS_DRAGHANDLE);if(this.get("cont").hasChildNodes()){this.get("cont").insertBefore(this._dragHandle,this.get("cont").firstChild);}else{this.get("cont").appendChild(this._dragHandle);}this.dd=new
 
YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._dragHandle.id);}}else{if(this._dragHandle){this._dragHandle.parentNode.removeChild(this._dragHandle);this._dragHandle=null;this.dd=null;}}if(this._titlebar){if(F){this.dd=new
 YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._titleba
 
r);C.addClass(this._titlebar,"draggable");}else{C.removeClass(this._titlebar,"draggable");if(this.dd){this.dd.unreg();this.dd=null;}}}},validator:function(G){var
 F=true;if(!YAHOO.util.DD){F=false;}return 
F;}});},addButtonGroup:function(I){if(!this.get("element")){this._queue[this._queue.length]=["addButtonGroup",arguments];return
 
false;}if(!this.hasClass(this.CLASS_PREFIX+"-grouped")){this.addClass(this.CLASS_PREFIX+"-grouped");}var
 
J=document.createElement("DIV");C.addClass(J,this.CLASS_PREFIX+"-group");C.addClass(J,this.CLASS_PREFIX+"-group-"+I.group);if(I.label){var
 
F=document.createElement("h3");F.innerHTML=I.label;J.appendChild(F);}if(!this.get("grouplabels")){C.addClass(this.get("cont"),this.CLASS_PREFIX,"-nogrouplabels");}this.get("cont").appendChild(J);var
 
H=document.createElement("ul");J.appendChild(H);if(!this._buttonGroupList){this._buttonGroupList={};}this._buttonGroupList[I.group]=H;for(var
 G=0;G<I.buttons.length;G++){var 
E=document.createElement("li");E.className=this.
 
CLASS_PREFIX+"-groupitem";H.appendChild(E);if((I.buttons[G].type!==undefined)&&I.buttons[G].type=="separator"){this.addSeparator(E);}else{I.buttons[G].container=E;this.addButton(I.buttons[G]);}}},addButtonToGroup:function(G,H,I){var
 F=this._buttonGroupList[H];var 
E=document.createElement("li");E.className=this.CLASS_PREFIX+"-groupitem";G.container=E;this.addButton(G,I);F.appendChild(E);},addButton:function(J,I){if(!this.get("element")){this._queue[this._queue.length]=["addButton",arguments];return
 
false;}if(!this._buttonList){this._buttonList=[];}if(!J.container){J.container=this.get("cont");}if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){for(var
 P in J.menu){if(D.hasOwnProperty(J.menu,P)){var 
V={fn:function(Y,W,X){if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);},scope:this};J.menu[P].onclick=V;}}}}var
 Q={},N=false;for(var L in 
J){if(D.hasOwnProperty(J,L)){if(!this._toolbarConfigs[L]){Q[L]=J[L];}}}if(J.type=="selec
 t"){Q.type="menu";}if(J.type=="spin"){Q.type="push";
 
}if(Q.type=="color"){if(YAHOO.widget.Overlay){Q=this._makeColorButton(Q);}else{N=true;}}if(Q.menu){if((YAHOO.widget.Overlay)&&(J.menu
 instanceof 
YAHOO.widget.Overlay)){J.menu.showEvent.subscribe(function(){this._button=Q;});}else{for(var
 
O=0;O<Q.menu.length;O++){if(!Q.menu[O].value){Q.menu[O].value=Q.menu[O].text;}}if(this.browser.webkit){Q.focusmenu=false;}}}if(N){J=false;}else{this._configs.buttons.value[this._configs.buttons.value.length]=J;var
 T=new 
this.buttonType(Q);T.get("element").tabIndex="-1";T.get("element").setAttribute("role","button");T._selected=true;if(this.get("disabled")){T.set("disabled",true);}if(!J.id){J.id=T.get("id");}if(I){var
 F=T.get("element");var 
M=null;if(I.get){M=I.get("element").nextSibling;}else{if(I.nextSibling){M=I.nextSibling;}}if(M){M.parentNode.insertBefore(F,M);}}T.addClass(this.CLASS_PREFIX+"-"+T.get("value"));var
 
S=document.createElement("span");S.className=this.CLASS_PREFIX+"-icon";T.get("element").insertBefore(S,T.get("firstChild"));if(T._but
 
ton.tagName.toLowerCase()=="button"){T.get("element").setAttribute("unselectable","on");var
 
U=document.createElement("a");U.innerHTML=T._button.innerHTML;U.href="javascript:void(0)";U.tabIndex="-1";A.on(U,"click",function(W){A.stopEvent(W);});T._button.parentNode.replaceChild(U,T._button);T._button=U;}if(J.type=="select"){if(T._button.tagName.toLowerCase()=="select"){S.parentNode.removeChild(S);var
 G=T._button;var 
R=T.get("element");R.parentNode.replaceChild(G,R);}else{T.addClass(this.CLASS_PREFIX+"-select");}}if(J.type=="spin"){if(!D.isArray(J.range)){J.range=[10,100];}this._makeSpinButton(T,J);}T.get("element").setAttribute("title",T.get("label"));if(J.type!="spin"){if((YAHOO.widget.Overlay)&&(Q.menu
 instanceof YAHOO.widget.Overlay)){var H=function(Y){var 
W=true;if(Y.keyCode&&(Y.keyCode==9)){W=false;}if(W){if(this._colorPicker){this._colorPicker._button=J.value;}var
 
X=T.getMenu().element;if(C.getStyle(X,"visibility")=="hidden"){T.getMenu().show();}else{T.getMenu().hide();}}YAHOO.u
 
til.Event.stopEvent(Y);};T.on("mousedown",H,J,this);T.on("keydown",H,J,this);}else{if((J.type!="menu")&&(J.type!="select")){T.on("keypress",this._buttonClick,J,this);T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);this._buttonClick(W,J);},J,this);T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});T.on("change",function(W){if(!J.menucmd){J.menucmd=J.value;}J.value=W.value;this._buttonClick(W,J);},this,true);var
 K=this;T.on("appendTo",function(){var 
W=this;if(W.getMenu()&&W.getMenu().mouseDownEvent){W.getMenu().mouseDownEvent.subscribe(function(Z,Y){var
 
X=Y[1];YAHOO.util.Event.stopEvent(Y[0]);W._onMenuClick(Y[0],W);if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);K._buttonClick.call(K,Y[1],J);W._hideMenu();return
 
false;});W.getMenu().clickEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});W.getMen
 
u().mouseUpEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});}});}}}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}if(this.browser.ie){}if(this.browser.webkit){T.hasFocus=function(){return
 
true;};}this._buttonList[this._buttonList.length]=T;if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){var
 
E=T.getMenu();if(E&&E.renderEvent){E.renderEvent.subscribe(this._addMenuClasses,T);if(J.renderer){E.renderEvent.subscribe(J.renderer,T);}}}}}return
 
J;},addSeparator:function(E,H){if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return
 false;}var 
F=((E)?E:this.get("cont"));if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return
 
false;}if(this._sepCount===null){this._sepCount=0;}if(!this._sep){this._sep=document.createElement("SPAN");C.addClass(this._sep,this.CLASS_SEPARATOR);this._sep.innerHTML="|";}v
 ar 
G=this._sep.cloneNode(true);this._sepCount++;C.addClass(G,this.CLASS_SEPARATOR+"-"+this._sepCount);if(H){var
 
I=null;if(H.get){I=H.get("element").nextSibling;}else{if(H.nextSibling){I=H.nextSibling;}else{I=H;}}if(I){if(I==H){I.parentNode.appendChild(G);}else{I.parentNode.insertBefore(G,I);}}}else{F.appendChild(G);}return
 
G;},_createColorPicker:function(H){if(C.get(H+"_colors")){C.get(H+"_colors").parentNode.removeChild(C.get(H+"_colors"));}var
 
E=document.createElement("div");E.className="yui-toolbar-colors";E.id=H+"_colors";E.style.display="none";A.on(window,"load",function(){document.body.appendChild(E);},this,true);this._colorPicker=E;var
 G="";for(var F in 
this._colorData){if(D.hasOwnProperty(this._colorData,F)){G+='<a 
style="background-color: '+F+'" 
href="javascript:void(0)">'+F.replace("#","")+"</a>";}}G+="<span><em>X</em><strong></strong></span>";window.setTimeout(function(){E.innerHTML=G;},0);A.on(E,"mouseover",function(M){var
 K=this._colorPicker;var L=K.getElementsByTagName
 ("em")[0];var J=K.getElementsByTagName("strong")[0];var 
I=A.getTarget(M);if(I.tagName.toLowerCase()=="a"){L.style.backgroundColor=I.style.backgroundColor;J.innerHTML=this._colorData["#"+I.innerHTML]+"<br>"+I.innerHTML;}},this,true);A.on(E,"focus",function(I){A.stopEvent(I);});A.on(E,"click",function(I){A.stopEvent(I);});A.on(E,"mousedown",function(J){A.stopEvent(J);var
 I=A.getTarget(J);if(I.tagName.toLowerCase()=="a"){var 
L=this.fireEvent("colorPickerClicked",{type:"colorPickerClicked",target:this,button:this._colorPicker._button,color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML]});if(L!==false){var
 
K={color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML],value:this._colorPicker._button};this.fireEvent("buttonClick",{type:"buttonClick",target:this.get("element"),button:K});}this.getButtonByValue(this._colorPicker._button).getMenu().hide();}},this,true);},_resetColorPicker:function(){var
 F=this._colorPicker.getElementsByTagName("em")[0];var 
E=this._colorPicker.getEle
 mentsByTagName("strong")[0];F.style.backgroundColor="transparent";

http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor.js
index 07e83c6..d279fdb 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/editor/simpleeditor.js
@@ -1,9 +1,21 @@
 /*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.6.0
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 (function() {
     /**
     * @private

http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta-debug.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta-debug.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta-debug.js
index af9423b..2affc4b 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta-debug.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta-debug.js
@@ -1,9 +1,21 @@
 /*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.6.0
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 /**
  * Provides Attribute configurations.
  * @namespace YAHOO.util

http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta-min.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta-min.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta-min.js
index 9877e56..56cdfc6 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta-min.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta-min.js
@@ -1,8 +1,20 @@
 /*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.6.0
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 
YAHOO.util.Attribute=function(B,A){if(A){this.owner=A;this.configure(B,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,validator:null,getValue:function(){return
 this.value;},setValue:function(F,B){var E;var A=this.owner;var C=this.name;var 
D={type:C,prevValue:this.getValue(),newValue:F};if(this.readOnly||(this.writeOnce&&this._written)){return
 false;}if(this.validator&&!this.validator.call(A,F)){return 
false;}if(!B){E=A.fireBeforeChangeEvent(D);if(E===false){return 
false;}}if(this.method){this.method.call(A,F);}this.value=F;this._written=true;D.type=C;if(!B){this.owner.fireChangeEvent(D);}return
 
true;},configure:function(B,C){B=B||{};this._written=false;this._initialConfig=this._initialConfig||{};for(var
 A in 
B){if(B.hasOwnProperty(A)){this[A]=B[A];if(C){this._initialConfig[A]=B[A];}}}},resetValue:function(){return
 this.setValue(this._initialConfig.value);},resetConfig:functio
 
n(){this.configure(this._initialConfig);},refresh:function(A){this.setValue(this.value,A);}};(function(){var
 
A=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(C){this._configs=this._configs||{};var
 B=this._configs[C];if(!B||!this._configs.hasOwnProperty(C)){return 
undefined;}return 
B.value;},set:function(D,E,B){this._configs=this._configs||{};var 
C=this._configs[D];if(!C){return false;}return 
C.setValue(E,B);},getAttributeKeys:function(){this._configs=this._configs;var 
D=[];var B;for(var C in 
this._configs){B=this._configs[C];if(A.hasOwnProperty(this._configs,C)&&!A.isUndefined(B)){D[D.length]=C;}}return
 D;},setAttributes:function(D,B){for(var C in 
D){if(A.hasOwnProperty(D,C)){this.set(C,D[C],B);}}},resetValue:function(C,B){this._configs=this._configs||{};if(this._configs[C]){this.set(C,this._configs[C]._initialConfig.value,B);return
 true;}return false;},refresh:function(E,C){this._configs=this._configs||{}
 ;var 
F=this._configs;E=((A.isString(E))?[E]:E)||this.getAttributeKeys();for(var 
D=0,B=E.length;D<B;++D){if(F.hasOwnProperty(E[D])){this._configs[E[D]].refresh(C);}}},register:function(B,C){this.setAttributeConfig(B,C);},getAttributeConfig:function(C){this._configs=this._configs||{};var
 B=this._configs[C]||{};var D={};for(C in 
B){if(A.hasOwnProperty(B,C)){D[C]=B[C];}}return 
D;},setAttributeConfig:function(B,C,D){this._configs=this._configs||{};C=C||{};if(!this._configs[B]){C.name=B;this._configs[B]=this.createAttribute(C);}else{this._configs[B].configure(C,D);}},configureAttribute:function(B,C,D){this.setAttributeConfig(B,C,D);},resetAttributeConfig:function(B){this._configs=this._configs||{};this._configs[B].resetConfig();},subscribe:function(B,C){this._events=this._events||{};if(!(B
 in 
this._events)){this._events[B]=this.createEvent(B);}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){this.subscribe.apply(this,arguments);},addListener:function(){th
 is.subscribe.apply(this,arguments);},fireBeforeChangeEvent:function(C){var 
B="before";B+=C.type.charAt(0).toUpperCase()+C.type.substr(1)+"Change";C.type=B;return
 this.fireEvent(C.type,C);},fireChangeEvent:function(B){B.type+="Change";return 
this.fireEvent(B.type,B);},createAttribute:function(B){return new 
YAHOO.util.Attribute(B,this);}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider);})();(function(){var
 
D=YAHOO.util.Dom,F=YAHOO.util.AttributeProvider;YAHOO.util.Element=function(G,H){if(arguments.length){this.init(G,H);}};YAHOO.util.Element.prototype={DOM_EVENTS:null,appendChild:function(G){G=G.get?G.get("element"):G;return
 this.get("element").appendChild(G);},getElementsByTagName:function(G){return 
this.get("element").getElementsByTagName(G);},hasChildNodes:function(){return 
this.get("element").hasChildNodes();},insertBefore:function(G,H){G=G.get?G.get("element"):G;H=(H&&H.get)?H.get("element"):H;return
 this.get("element").insertBefore(G,H);},removeChild:functi
 on(G){G=G.get?G.get("element"):G;return 
this.get("element").removeChild(G);},replaceChild:function(G,H){G=G.get?G.get("element"):G;H=H.get?H.get("element"):H;return
 
this.get("element").replaceChild(G,H);},initAttributes:function(G){},addListener:function(K,J,L,I){var
 H=this.get("element")||this.get("id");I=I||this;var 
G=this;if(!this._events[K]){if(H&&this.DOM_EVENTS[K]){YAHOO.util.Event.addListener(H,K,function(M){if(M.srcElement&&!M.target){M.target=M.srcElement;}G.fireEvent(K,M);},L,I);}this.createEvent(K,this);}return
 
YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){return
 this.addListener.apply(this,arguments);},subscribe:function(){return 
this.addListener.apply(this,arguments);},removeListener:function(H,G){return 
this.unsubscribe.apply(this,arguments);},addClass:function(G){D.addClass(this.get("element"),G);},getElementsByClassName:function(H,G){return
 
D.getElementsByClassName(H,G,this.get("element"));},hasClass:function(G){return 
D.hasClass(
 this.get("element"),G);},removeClass:function(G){return 
D.removeClass(this.get("element"),G);},replaceClass:function(H,G){return 
D.replaceClass(this.get("element"),H,G);},setStyle:function(I,H){var 
G=this.get("element");if(!G){return 
this._queue[this._queue.length]=["setStyle",arguments];}return 
D.setStyle(G,I,H);},getStyle:function(G){return 
D.getStyle(this.get("element"),G);},fireQueue:function(){var 
H=this._queue;for(var 
I=0,G=H.length;I<G;++I){this[H[I][0]].apply(this,H[I][1]);}},appendTo:function(H,I){H=(H.get)?H.get("element"):D.get(H);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:H});I=(I&&I.get)?I.get("element"):D.get(I);var
 G=this.get("element");if(!G){return false;}if(!H){return 
false;}if(G.parent!=H){if(I){H.insertBefore(G,I);}else{H.appendChild(G);}}this.fireEvent("appendTo",{type:"appendTo",target:H});return
 G;},get:function(G){var I=this._configs||{};var 
H=I.element;if(H&&!I[G]&&!YAHOO.lang.isUndefined(H.value[G])){return 
H.value[G];}return F.prototype.
 get.call(this,G);},setAttributes:function(L,H){var K=this.get("element");
 for(var J in 
L){if(!this._configs[J]&&!YAHOO.lang.isUndefined(K[J])){this.setAttributeConfig(J);}}for(var
 
I=0,G=this._configOrder.length;I<G;++I){if(L[this._configOrder[I]]!==undefined){this.set(this._configOrder[I],L[this._configOrder[I]],H);}}},set:function(H,J,G){var
 
I=this.get("element");if(!I){this._queue[this._queue.length]=["set",arguments];if(this._configs[H]){this._configs[H].value=J;}return
 ;}if(!this._configs[H]&&!YAHOO.lang.isUndefined(I[H])){C.call(this,H);}return 
F.prototype.set.apply(this,arguments);},setAttributeConfig:function(G,I,J){var 
H=this.get("element");if(H&&!this._configs[G]&&!YAHOO.lang.isUndefined(H[G])){C.call(this,G,I);}else{F.prototype.setAttributeConfig.apply(this,arguments);}this._configOrder.push(G);},getAttributeKeys:function(){var
 H=this.get("element");var I=F.prototype.getAttributeKeys.call(this);for(var G 
in H){if(!this._configs[G]){I[G]=I[G]||H[G];}}return 
I;},createEvent:function(H,G){this._events[H]=true;F.prototype.createEvent.apply(this,argu
 ments);},init:function(H,G){A.apply(this,arguments);}};var 
A=function(H,G){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];G=G||{};G.element=G.element||H||null;this.DOM_EVENTS={"click":true,"dblclick":true,"keydown":true,"keypress":true,"keyup":true,"mousedown":true,"mousemove":true,"mouseout":true,"mouseover":true,"mouseup":true,"focus":true,"blur":true,"submit":true};var
 I=false;if(typeof 
G.element==="string"){C.call(this,"id",{value:G.element});}if(D.get(G.element)){I=true;E.call(this,G);B.call(this,G);}YAHOO.util.Event.onAvailable(G.element,function(){if(!I){E.call(this,G);}this.fireEvent("available",{type:"available",target:D.get(G.element)});},this,true);YAHOO.util.Event.onContentReady(G.element,function(){if(!I){B.call(this,G);}this.fireEvent("contentReady",{type:"contentReady",target:D.get(G.element)});},this,true);};var
 
E=function(G){this.setAttributeConfig("element",{value:D.get(G.element),readOnly:true});};var
  
B=function(G){this.initAttributes(G);this.setAttributes(G,true);this.fireQueue();};var
 C=function(G,I){var 
H=this.get("element");I=I||{};I.name=G;I.method=I.method||function(J){if(H){H[G]=J;}};I.value=I.value||H[G];this._configs[G]=new
 
YAHOO.util.Attribute(I,this);};YAHOO.augment(YAHOO.util.Element,F);})();YAHOO.register("element",YAHOO.util.Element,{version:"2.6.0",build:"1321"});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta.js
index 51a121d..dc6eec8 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-beta.js
@@ -1,9 +1,21 @@
 /*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.6.0
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 /**
  * Provides Attribute configurations.
  * @namespace YAHOO.util

http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-min.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-min.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-min.js
index 85ac6b5..2a365dc 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-min.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/element/element-min.js
@@ -1,8 +1,20 @@
 /*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 
YAHOO.util.Attribute=function(B,A){if(A){this.owner=A;this.configure(B,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,setter:null,getter:null,validator:null,getValue:function(){var
 
A=this.value;if(this.getter){A=this.getter.call(this.owner,this.name,A);}return 
A;},setValue:function(F,B){var E,A=this.owner,C=this.name;var 
D={type:C,prevValue:this.getValue(),newValue:F};if(this.readOnly||(this.writeOnce&&this._written)){return
 false;}if(this.validator&&!this.validator.call(A,F)){return 
false;}if(!B){E=A.fireBeforeChangeEvent(D);if(E===false){return 
false;}}if(this.setter){F=this.setter.call(A,F,this.name);if(F===undefined){}}if(this.method){this.method.call(A,F,this.name);}this.value=F;this._written=true;D.type=C;if(!B){this.owner.fireChangeEvent(D);}return
 
true;},configure:function(B,C){B=B||{};if(C){this._written=false;}this._initialConfig=this._initialConfig||{};for(var
 A in
  
B){if(B.hasOwnProperty(A)){this[A]=B[A];if(C){this._initialConfig[A]=B[A];}}}},resetValue:function(){return
 
this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig,true);},refresh:function(A){this.setValue(this.value,A);}};(function(){var
 
A=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(C){this._configs=this._configs||{};var
 B=this._configs[C];if(!B||!this._configs.hasOwnProperty(C)){return 
null;}return 
B.getValue();},set:function(D,E,B){this._configs=this._configs||{};var 
C=this._configs[D];if(!C){return false;}return 
C.setValue(E,B);},getAttributeKeys:function(){this._configs=this._configs;var 
C=[],B;for(B in 
this._configs){if(A.hasOwnProperty(this._configs,B)&&!A.isUndefined(this._configs[B])){C[C.length]=B;}}return
 C;},setAttributes:function(D,B){for(var C in 
D){if(A.hasOwnProperty(D,C)){this.set(C,D[C],B);}}},resetValue:function(C,B){this._configs=this._co
 
nfigs||{};if(this._configs[C]){this.set(C,this._configs[C]._initialConfig.value,B);return
 true;}return false;},refresh:function(E,C){this._configs=this._configs||{};var 
F=this._configs;E=((A.isString(E))?[E]:E)||this.getAttributeKeys();for(var 
D=0,B=E.length;D<B;++D){if(F.hasOwnProperty(E[D])){this._configs[E[D]].refresh(C);}}},register:function(B,C){this.setAttributeConfig(B,C);},getAttributeConfig:function(C){this._configs=this._configs||{};var
 B=this._configs[C]||{};var D={};for(C in 
B){if(A.hasOwnProperty(B,C)){D[C]=B[C];}}return 
D;},setAttributeConfig:function(B,C,D){this._configs=this._configs||{};C=C||{};if(!this._configs[B]){C.name=B;this._configs[B]=this.createAttribute(C);}else{this._configs[B].configure(C,D);}},configureAttribute:function(B,C,D){this.setAttributeConfig(B,C,D);},resetAttributeConfig:function(B){this._configs=this._configs||{};this._configs[B].resetConfig();},subscribe:function(B,C){this._events=this._events||{};if(!(B
 in this._events)){this._events[B]=this
 
.createEvent(B);}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){this.subscribe.apply(this,arguments);},addListener:function(){this.subscribe.apply(this,arguments);},fireBeforeChangeEvent:function(C){var
 
B="before";B+=C.type.charAt(0).toUpperCase()+C.type.substr(1)+"Change";C.type=B;return
 this.fireEvent(C.type,C);},fireChangeEvent:function(B){B.type+="Change";return 
this.fireEvent(B.type,B);},createAttribute:function(B){return new 
YAHOO.util.Attribute(B,this);}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider);})();(function(){var
 
B=YAHOO.util.Dom,D=YAHOO.util.AttributeProvider,C={mouseenter:true,mouseleave:true};var
 
A=function(E,F){this.init.apply(this,arguments);};A.DOM_EVENTS={"click":true,"dblclick":true,"keydown":true,"keypress":true,"keyup":true,"mousedown":true,"mousemove":true,"mouseout":true,"mouseover":true,"mouseup":true,"mouseenter":true,"mouseleave":true,"focus":true,"blur":true,"submit":true,"change":true};A.proto
 type={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(G,E){var 
F=this.get("element");if(F){F[E]=G;}return 
G;},DEFAULT_HTML_GETTER:function(E){var 
F=this.get("element"),G;if(F){G=F[E];}return 
G;},appendChild:function(E){E=E.get?E.get("element"):E;return 
this.get("element").appendChild(E);},getElementsByTagName:function(E){return 
this.get("element").getElementsByTagName(E);},hasChildNodes:function(){return 
this.get("element").hasChildNodes();},insertBefore:function(E,F){E=E.get?E.get("element"):E;F=(F&&F.get)?F.get("element"):F;return
 
this.get("element").insertBefore(E,F);},removeChild:function(E){E=E.get?E.get("element"):E;return
 
this.get("element").removeChild(E);},replaceChild:function(E,F){E=E.get?E.get("element"):E;F=F.get?F.get("element"):F;return
 
this.get("element").replaceChild(E,F);},initAttributes:function(E){},addListener:function(J,I,K,H){H=H||this;var
 
E=YAHOO.util.Event,G=this.get("element")||this.get("id"),F=this;if(C[J]&&!E._createMouseDelegate){return
 false;}if(!this._eve
 
nts[J]){if(G&&this.DOM_EVENTS[J]){E.on(G,J,function(M,L){if(M.srcElement&&!M.target){M.target=M.srcElement;}if((M.toElement&&!M.relatedTarget)||(M.fromElement&&!M.relatedTarget)){M.relatedTarget=E.getRelatedTarget(M);}if(!M.currentTarget){M.currentTarget=G;}F.fireEvent(J,M,L);},K,H);}this.createEvent(J,{scope:this});}return
 
YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){return
 this.addListener.apply(this,arguments);},subscribe:function(){return 
this.addListener.apply(this,arguments);},removeListener:function(F,E){return 
this.unsubscribe.apply(this,arguments);},addClass:function(E){B.addClass(this.get("element"),E);},getElementsByClassName:function(F,E){return
 
B.getElementsByClassName(F,E,this.get("element"));},hasClass:function(E){return 
B.hasClass(this.get("element"),E);},removeClass:function(E){return 
B.removeClass(this.get("element"),E);},replaceClass:function(F,E){return 
B.replaceClass(this.get("element"),F,E);},setStyle:function(F,E){return B
 .setStyle(this.get("element"),F,E);
 },getStyle:function(E){return 
B.getStyle(this.get("element"),E);},fireQueue:function(){var 
F=this._queue;for(var 
G=0,E=F.length;G<E;++G){this[F[G][0]].apply(this,F[G][1]);}},appendTo:function(F,G){F=(F.get)?F.get("element"):B.get(F);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:F});G=(G&&G.get)?G.get("element"):B.get(G);var
 E=this.get("element");if(!E){return false;}if(!F){return 
false;}if(E.parent!=F){if(G){F.insertBefore(E,G);}else{F.appendChild(E);}}this.fireEvent("appendTo",{type:"appendTo",target:F});return
 E;},get:function(E){var 
G=this._configs||{},F=G.element;if(F&&!G[E]&&!YAHOO.lang.isUndefined(F.value[E])){this._setHTMLAttrConfig(E);}return
 D.prototype.get.call(this,E);},setAttributes:function(K,H){var 
F={},I=this._configOrder;for(var 
J=0,E=I.length;J<E;++J){if(K[I[J]]!==undefined){F[I[J]]=true;this.set(I[J],K[I[J]],H);}}for(var
 G in 
K){if(K.hasOwnProperty(G)&&!F[G]){this.set(G,K[G],H);}}},set:function(F,H,E){var
 G=this.get("element");if(!G){this._queue[thi
 
s._queue.length]=["set",arguments];if(this._configs[F]){this._configs[F].value=H;}return;}if(!this._configs[F]&&!YAHOO.lang.isUndefined(G[F])){this._setHTMLAttrConfig(F);}return
 
D.prototype.set.apply(this,arguments);},setAttributeConfig:function(E,F,G){this._configOrder.push(E);D.prototype.setAttributeConfig.apply(this,arguments);},createEvent:function(F,E){this._events[F]=true;return
 
D.prototype.createEvent.apply(this,arguments);},init:function(F,E){this._initElement(F,E);},destroy:function(){var
 
E=this.get("element");YAHOO.util.Event.purgeElement(E,true);this.unsubscribeAll();if(E&&E.parentNode){E.parentNode.removeChild(E);}this._queue=[];this._events={};this._configs={};this._configOrder=[];},_initElement:function(G,F){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];F=F||{};F.element=F.element||G||null;var
 I=false;var E=A.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var H in 
E){if(E.hasOwnProperty(H)){this.DOM_E
 VENTS[H]=E[H];}}if(typeof 
F.element==="string"){this._setHTMLAttrConfig("id",{value:F.element});}if(B.get(F.element)){I=true;this._initHTMLElement(F);this._initContent(F);}YAHOO.util.Event.onAvailable(F.element,function(){if(!I){this._initHTMLElement(F);}this.fireEvent("available",{type:"available",target:B.get(F.element)});},this,true);YAHOO.util.Event.onContentReady(F.element,function(){if(!I){this._initContent(F);}this.fireEvent("contentReady",{type:"contentReady",target:B.get(F.element)});},this,true);},_initHTMLElement:function(E){this.setAttributeConfig("element",{value:B.get(E.element),readOnly:true});},_initContent:function(E){this.initAttributes(E);this.setAttributes(E,true);this.fireQueue();},_setHTMLAttrConfig:function(E,G){var
 
F=this.get("element");G=G||{};G.name=E;G.setter=G.setter||this.DEFAULT_HTML_SETTER;G.getter=G.getter||this.DEFAULT_HTML_GETTER;G.value=G.value||F[E];this._configs[E]=new
 YAHOO.util.Attribute(G,this);}};YAHOO.augment(A,D);YAHOO.util.Element=A;})();Y
 AHOO.register("element",YAHOO.util.Element,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/event-delegate/event-delegate-min.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/event-delegate/event-delegate-min.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/event-delegate/event-delegate-min.js
index c20abeb..a31f27f 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/event-delegate/event-delegate-min.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/event-delegate/event-delegate-min.js
@@ -1,7 +1,19 @@
 /*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.8.0r4
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 (function(){var A=YAHOO.util.Event,C=YAHOO.lang,B=[],D=function(H,E,F){var 
G;if(!H||H===F){G=false;}else{G=YAHOO.util.Selector.test(H,E)?H:D(H.parentNode,E,F);}return
 G;};C.augmentObject(A,{_createDelegate:function(F,E,G,H){return 
function(I){var 
J=this,N=A.getTarget(I),L=E,P=(J.nodeType===9),Q,K,O,M;if(C.isFunction(E)){Q=E(N);}else{if(C.isString(E)){if(!P){O=J.id;if(!O){O=A.generateId(J);}M=("#"+O+"
 
");L=(M+E).replace(/,/gi,(","+M));}if(YAHOO.util.Selector.test(N,L)){Q=N;}else{if(YAHOO.util.Selector.test(N,((L.replace(/,/gi,"
 *,"))+" 
*"))){Q=D(N,L,J);}}}}if(Q){K=Q;if(H){if(H===true){K=G;}else{K=H;}}return 
F.call(K,I,Q,J,G);}};},delegate:function(F,J,L,G,H,I){var 
E=J,K,M;if(C.isString(G)&&!YAHOO.util.Selector){return 
false;}if(J=="mouseenter"||J=="mouseleave"){if(!A._createMouseDelegate){return 
false;}E=A._getType(J);K=A._createMouseDelegate(L,H,I);M=A._createDelegate(function(P,O,N){return
 
K.call(O,P,N);},G,H,I);}else{M=A._createDelegate(L,G,H,I);}B.push([F,E,L,M]);return
 A.on(F,E,
 M);},removeDelegate:function(F,J,I){var 
K=J,H=false,G,E;if(J=="mouseenter"||J=="mouseleave"){K=A._getType(J);}G=A._getCacheIndex(B,F,K,I);if(G>=0){E=B[G];}if(F&&E){H=A.removeListener(E[0],E[1],E[3]);if(H){delete
 B[G][2];delete B[G][3];B.splice(G,1);}}return 
H;}});}());YAHOO.register("event-delegate",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/8598f49e/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/event/event-debug.js
----------------------------------------------------------------------
diff --git 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/event/event-debug.js
 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/event/event-debug.js
index 7d1e528..39d7184 100644
--- 
a/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/event/event-debug.js
+++ 
b/dependencies/org.wso2.carbon.ui/src/main/resources/web/yui/build/event/event-debug.js
@@ -1,9 +1,21 @@
 /*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.6.0
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 
 /**
  * The CustomEvent class lets you define events for your application

Reply via email to