_tf2.js 5.9 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function _tf2(_ibn, _vdn, _13m){this._03n=_ibn;this._frl=_13m;this._p3n=_vdn;this._44n=this._frl.getAttribute("void");};Object.defineProperties(_tf2.prototype,{"name":{get:function(){return this._p3n;}},"element":{get:function(){if(this._1tn===undefined){this._1tn=this._03n._o56(this._frl);}return this._1tn;}}});_tf2.prototype.toggleDisplay=function(){this.setDisplay(!this.getDisplay());};_tf2.prototype.setDisplay=function(bDisplay){_t02._b5b( null, "setDisplay", arguments, ["boolean"] );var el=this.element;if(el){var _dxb=el.getAttribute("actualDisplay");if(!bDisplay&&!_dxb){el.setAttribute( "actualDisplay", _4qn._sp9( el ).display||"" );}el.style.display=bDisplay?( el.getAttribute( "actualDisplay" )||"" ):"none";}};_tf2.prototype.getDisplay=function(){var el=this.element;return Boolean(el&&(_4qn._sp9(el).display!="none"));};_tf2.prototype.toggleVisibility=function(){this.setVisible(!this.getVisible());};_tf2.prototype.setVisible=function(bVisible){_t02._b5b( null, "setVisible", arguments, ["boolean"] );var el=this.element;if(el){_4qn._sp9(el).visibility=bVisible?"visible":"hidden";}};_tf2.prototype.getVisible=function(){var el=this.element;return Boolean(el&&(el.style.visibility!="hidden"));};_tf2.prototype._avh=function(){if(this._trk===undefined){this._trk=this._03n._g56()._znh(this._44n);}return this._trk;};_tf2.prototype._lkl=function(){return this._44n;};function _hw(_ibn, _vdn, _13m){_hw.baseConstructor.call(this, _ibn, _vdn, _13m);};_olk._vjl(_hw, _tf2);_hw.prototype.setColor=function(sColor){_t02._b5b( null, "setColor", arguments, ["string"] );var el=this.element;if(el){el.style.color=sColor;}};_hw.prototype.setBackgroundColor=function(sColor){_t02._b5b( null, "setBackgroundColor", arguments, ["string"] );var el=this.element;if(el){el.style.backgroundColor=sColor;}};_hw.prototype.setWidth=function(sCssLength,bTransition){_t02._b5b( null, "setWidth", arguments, ["string", "boolean"], [false, true] );var el=this.element;if(el){el.style[_4qn._971]=bTransition?"0.3s" :"0.0s";el.style[_4qn._a71]=bTransition?"width":"";el.style.width=sCssLength;}};_hw.prototype.setHeight=function(sCssLength,bTransition){_t02._b5b( null, "setHeight", arguments, ["string", "boolean"], [false, true] );var el=this.element;if(el){el.style[_4qn._971]=bTransition?"0.3s" :"0.0s";el.style[_4qn._a71]=bTransition?"height":"";el.style.height=sCssLength;}};function _kh(_ibn, _vdn, _13m){_kh.baseConstructor.call(this, _ibn, _vdn, _13m);};_olk._vjl(_kh, _tf2);Object.defineProperties(_kh.prototype,{"text":{get:function(){var el=this.element;return(el?_4qn._ofe(el):null);},set:function(sText){_t02._b5b( null, "text", arguments, ["string"] );var el=this.element;if(el){_4qn._1je(el, sText);}}}});_kh.prototype.setColor=function(sColor){_t02._b5b( null, "setColor", arguments, ["string"] );var el=this.element;if(el){el.style.color=sColor;}};_kh.prototype.setBackgroundColor=function(sColor){_t02._b5b( null, "setBackgroundColor", arguments, ["string"] );var el=this.element;if(el){el.style.backgroundColor=sColor;}};function _iw(_ibn, _vdn, _13m){_iw.baseConstructor.call(this, _ibn, _vdn, _13m);};_olk._vjl(_iw, _tf2);Object.defineProperties(_iw.prototype,{"src":{get:function(){var el=this.element;return(el?el.src:null);},set:function(sSrc){_t02._b5b( null, "src", arguments, ["string"] );var el=this.element;if(el){el.src=sSrc;}}}});function _141(_ibn, _vdn, _13m){_141.baseConstructor.call(this, _ibn, _vdn, _13m);};_olk._vjl(_141, _tf2);_141.prototype.setColumnDisplay=function(iColumnIndex,bDisplay){_t02._b5b( null, "setColumnDisplay", arguments, ["number", "boolean"] );var el=this.element;if(el){var _j9n=_erh._9kl(this._frl.getAttribute("roid"));if(_7hn._ij8( _j9n, "listOverallGroup/*[self::listHeader | self::listFooter] | listGroups/listGroup/*[self::listHeader | self::listFooter] | listColumns/listColumn/listColumnBody/listColumnRowSpan" ) ){throw new _bm9( null, "setColumnDisplay", "Lists with headers, footers, or group spanning are not currently supported." );}var _6dl=bDisplay?"":"none";var _tzl=el.rows.length;for(var i=0;i<_tzl;i++){var _utm=el.rows.item(i).cells;var _rcf=_utm.length;if((_rcf>0)&&(iColumnIndex<_rcf)){_utm.item(iColumnIndex).style.display=_6dl;}}}};function _2r(_ibn, _vdn, _13m){_2r.baseConstructor.call(this, _ibn, _vdn, _13m);};_olk._vjl(_2r, _tf2);Object.defineProperties(_2r.prototype,{"parameter":{get:function(){return this._frl.getAttribute( "parameter" )||"";}}});_2r.prototype.addValues=function(aValues){_t02._b5b( null, "addValues", arguments, ["array"] );this._avh()._95j(aValues);};_2r.prototype.clearValues=function(){this._avh()._21g();};_2r.prototype.getValues=function(bAllOptions){_t02._b5b( null, "getValues", arguments, ["boolean"], [true] );return this._avh()._h6j(bAllOptions);};_2r.prototype.setValues=function(aValues){_t02._b5b( null, "setValues", arguments, ["array"] );this._avh()._z7j(aValues);};_2r.prototype.setValidator=function(fnValidationCallback){_t02._b5b( null, "setValidator", arguments, ["function"] );this._avh()._9je(fnValidationCallback);};function _69(_ibn, _vdn, _13m){_69.baseConstructor.call(this, _ibn, _vdn, _13m);};_olk._vjl(_69, _2r);Object.defineProperties(_69.prototype,{"autoSubmit":{get:function(){return this._avh()._msc();},set:function(bAutoSubmit){_t02._b5b( null, "autoSubmit", arguments, ["boolean"] );this._avh()._mwc(bAutoSubmit);}}});function _1r(_ibn, _vdn, _13m){_1r.baseConstructor.call(this, _ibn, _vdn, _13m);};_olk._vjl(_1r, _tf2);Object.defineProperties(_1r.prototype,{"instance":{get:function(){return this._avh()._797();}},"dataStores":{get:function(){return this._avh()._oh2();}}});_1r.prototype.getDataStore=function(sName){_t02._b5b( null, "getDataStore", arguments, ["string"], [true] );return sName?this._avh()._l03(sName):(this.dataStores[0]||null);};