123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: cchl
- // (C) Copyright IBM Corp. 2003, 2016.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function C_PromptInterval(_cZD, _cOI, _cCB1, _cTS){G_HAL.F_VerifyDependencies("G_ResManager");G_HAL.F_VerifyDependencies("U_PromptInputParser");G_HAL.F_VerifyDependencies("C_PromptBaseIntervalTextBox");this.F_ConstructBaseClass(_cZD, _cOI, _cCB1, _cTS);this._c0D();if(!_cTS){this._cO7();}this._c2();if(this._cSQ){this.F_UpdateControlStyle(_cZD);}var _cNG=this._cBT1(true);if(this._cSQ&&!this.F_IsUsedAsPrompt(_cNG)){_cNG.classList.add(C_PromptControl.M_sPromptClass);}this._cAB;if(this._c0P1){G_HAL.F_VerifyDependencies("C_PromptRange");this._cAB=new C_PromptRange(_cNG, _cOI, this, C_PromptRange._cUD1, this.F_GetSimpleDefaultValue());}else{this._cAB=new C_PromptBaseIntervalTextBox(_cNG, _cOI, this, this.F_GetSimpleDefaultValue());}};C_PromptInterval.F_Extends(C_PromptPublicControl);C_PromptInterval.prototype._c0D=function(){C_PromptInterval.superClass._c0D.call(this);this._cWX=(this._cWM.getAttribute("showSeconds")==="true"?true:false);this._c1E=(this._cWM.getAttribute("showMilliseconds")==="true"?true:false);};C_PromptInterval.prototype._c2=function(){var _cEW=( this._cWM.getAttribute( "showSeconds" )=="true" );var _cTC=( this._cWM.getAttribute( "showMilliseconds" )=="true" );for(var i=0;this._c8O&&(i<this._c8O.length);i++){this._c8O[ i ].F_SetDisplayProperties(_cEW, _cTC);}};C_PromptInterval.prototype.F_CreateSimpleValue=function(){return new C_IntervalValue(this._c0P1, null, this._cWX, this._c1E);};
|