123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- var _b0g=new _lcm("_b0g");_b0g._jgn=function(_33m,_5en){this._t3n=_5en;this._hrl=_33m;var _jxm=_frh._c6j((this._t3n=="fillEffects" )?"IDS_PROP_fillEffects":"IDS_PROP_chartColumnColor" );this._4le(null, null, _jxm);};_b0g._src=function(){this._mve=new _jgk(this._2oh("cboDirection"), _frh._53g("Direction"), null, this);this._25i=new _pgk(this._2oh("divPattern"), _frh._53g("Pattern"), this);this._s2n=new _lfn(this._2oh("deckMain"));};_b0g._fdm=function(){if(this._mve){this._mve._fdm();delete this._mve;}if(this._25i){this._25i._fdm();delete this._25i;}if(this._s2n){this._s2n._fdm();delete this._s2n;}};_b0g._5z2=function(){this._ark=this._hrl.selectSingleNode(this._t3n+"/chartColor | " + this._t3n + "/chartGradient | " + this._t3n + "/chartPattern");this._otk="white";this._r5i="black";this._p5i="black";this._65i="white";this._4km="black";this._3rk=new _pgk(this._2oh("lvEffect"), this._53g("RadioChartEffects"), this);this._3rk._hwc("none");this._mve._hwc("down");this._25i._gwc(0);_u0n._2b5(this._2oh("btnFromColor"), this._r5i);_u0n._2b5(this._2oh("btnToColor"), this._otk);_u0n._2b5(this._2oh("btnForeColor"), this._p5i);_u0n._2b5(this._2oh("btnBackColor"), this._65i);_u0n._2b5(this._2oh("btnColor"), this._4km);if(this._ark){this._3rk._hwc(this._ark.nodeName);switch(this._ark.nodeName){case "chartColor":this._4km=this._ark.getAttribute("value");_u0n._2b5(this._2oh("btnColor"), this._4km);break;case "chartGradient":this._mve._hwc(this._ark.getAttribute("direction"));this._r5i=this._ark.getAttribute("fromColor");this._otk=this._ark.getAttribute("toColor");_u0n._2b5(this._2oh("btnFromColor"), this._r5i);_u0n._2b5(this._2oh("btnToColor"), this._otk);break;case "chartPattern":this._25i._hwc(this._ark.getAttribute("patternType"));this._p5i=this._ark.getAttribute("foregroundColor");this._65i=this._ark.getAttribute("backgroundColor");_u0n._2b5(this._2oh("btnForeColor"), this._p5i);_u0n._2b5(this._2oh("btnBackColor"), this._65i);this._3j6();}this._xth(this._ark.nodeName);}else{this._3rk._hwc("none");this._xth("none");}};_b0g._pe4=function(_a6k,_mzj,_zdf){if(_a6k._ezm()=="_b0g_lvEffect"){this._xth(_mzj.getAttribute("value"));}else if(_a6k._ezm()=="_b0g_divPattern"){this._bxh();}};_b0g._g67=function(_ztm,_mzj){if(_ztm==this._mve){this._bxh();}};_b0g._y0g=function(_1wi){var _pvm="";switch(_1wi){case "FORECOLOR":_pvm=this._p5i;break;case "BACKCOLOR":_pvm=this._65i;break;case "TOCOLOR":_pvm=this._otk;break;case "COLOR":_pvm=this._4km;break;case "FROMCOLOR":_pvm=this._r5i;}this._iv7=_1wi;_8fm._jgn( "cchl/dialogs/_1zm", this._xp9(), false, _pvm, _frh._c6j( "IDS_LBL_" + _1wi ), this, false, _1wi != "FORECOLOR" );};_b0g._bgn=function(){_erh._ybb();var _p4l=this._hrl.selectSingleNode(this._t3n);if(_p4l){this._hrl.removeChild(_p4l);}var _uxm=this._3rk._885().getAttribute("value");switch(_uxm){case "chartGradient":var _syj=_erh._u0g(_erh._u0g(this._hrl, this._t3n), "chartGradient");_syj.setAttribute("direction", this._mve._qik());if(this._r5i){_syj.setAttribute("fromColor", this._r5i);}if(this._otk){_syj.setAttribute("toColor", this._otk);}break;case "chartColor":var _42h=_erh._u0g(_erh._u0g(this._hrl, this._t3n), "chartColor");if(this._4km){_42h.setAttribute("value", this._4km);}break;case "chartPattern":var _n6l=_erh._u0g(_erh._u0g(this._hrl, this._t3n), "chartPattern");_n6l.setAttribute("patternType", this._25i._885().getAttribute("value"));if(this._p5i){_n6l.setAttribute("foregroundColor", this._p5i);}if(this._65i){_n6l.setAttribute("backgroundColor", this._65i);}break;}if(_uxm!="none"){var _rlm=[];_rlm[0]=this._hrl;var _amn=_s0n._df8(_rlm[0]);if(_amn._13g( "background-color" ) != "" ){_s0n._0bb( _rlm, "background-color", "" );}}_erh._iee();this._3le();};_b0g._o46=function(){this._3rk._fdm();delete this._3rk;};_b0g._xth=function(_ncn){switch(_ncn){case "chartGradient":this._s2n._ujk(1);break;case "chartPattern":this._s2n._ujk(2);this._3j6();break;case "chartColor":this._s2n._ujk(3);break;default:this._s2n._ujk(0);}this._bxh();};_b0g._io9=function(_e5m){switch(_e5m._b2g()){case "_1zm":switch(this._iv7){case "FORECOLOR":this._p5i=_e5m._6ik();if(!this._p5i){this._p5i="black";}_u0n._2b5(this._2oh("btnForeColor"), this._p5i);this._3j6();break;case "BACKCOLOR":this._65i=_e5m._6ik();if(!this._65i){this._65i="white";}_u0n._2b5(this._2oh("btnBackColor"), this._65i);this._3j6();break;case "TOCOLOR":this._otk=_e5m._6ik();if(!this._otk){this._otk="white";}_u0n._2b5(this._2oh("btnToColor"), this._otk);break;case "COLOR":this._4km=_e5m._6ik();if(!this._4km){this._4km="black";}_u0n._2b5(this._2oh("btnColor"), this._4km);break;case "FROMCOLOR":this._r5i=_e5m._6ik();if(!this._r5i){this._r5i="black";}_u0n._2b5(this._2oh("btnFromColor"), this._r5i);}this._bxh();}};_b0g._3j6=function(){var _m9h=this._25i._tfe();for(var i=0; i<_m9h.length; i++){var _mzj=_m9h.item(i);_mzj.setAttribute( "html", '<div style="height:16px; width:100%; background-image:' + _q0d._ub4( _mzj.getAttribute( "value" ), this._6fg, this._65i ) + '"></div>' );}this._25i._wfn();this._bxh();};_b0g._bxh=function(){var div=this._2oh("divPreview");switch(this._3rk._885().getAttribute("value")){case "chartGradient":_n0n._233(div, this._r5i, this._otk, this._mve._qik());break;default:div.innerHTML="";}};
|