123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: hal
- // (C) Copyright IBM Corp. 2003, 2017.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- var G_TooltipManager={};G_TooltipManager._hFY1=null;G_TooltipManager._h5W=null;G_TooltipManager._hPQ=null;G_TooltipManager._hGA=null;G_TooltipManager._hQQ=false;G_TooltipManager._hO81=null;G_TooltipManager._hV72=1000;G_TooltipManager._h6W=null;G_TooltipManager._hVD2=function(){this._hO81=null;if(!this._hGA||!this._hFY1||!this._hFY1.parentNode){return;}var _h8R=this._hFY1;var _hDZ1=new C_Rectangle(0, 10, 0, 0);if(this._hPQ&&this._hPQ.F_TooltipManager_GetPositioning){var _hP81=this._hPQ.F_TooltipManager_GetPositioning(this._hFY1);_h8R=_hP81._h8R;_hDZ1=_hP81._hDZ1;}if(this._hPQ&&this._hPQ.F_TooltipManager_GetContext){this._h5W=this._hPQ.F_TooltipManager_GetContext(this._hFY1);}this._hGA.F_ShowTooltip(this._h5W, _h8R, _hDZ1);this._hQQ=true;};G_TooltipManager._hWD2=function(){if(!this._hFY1){return;}if(this._hQQ){this._hGA.F_HideTooltip();this._hQQ=false;}this._hFY1=null;this._h5W=null;this._hPQ=null;this._hGA=null;};G_TooltipManager._hBM=function(){if(this._hO81){U_DOM.F_ClearTimeout(this._hO81);this._hO81=null;}};G_TooltipManager._hRQ=function(_hLN1,_hIV1,_h1U1,_h7W,_hV62){if(_hIV1==this._hFY1){return;}this._hWD2();this._hBM();this._hO81=U_DOM.F_CreateClearableTimeout(this._hVD2.bind(this), _hV62);this._hFY1=_hIV1;this._h5W=_h1U1;this._hPQ=_hLN1;this._hGA=_h7W;};G_TooltipManager.F_ActivateTarget=function(_hLN1,_hIV1,_h1U1,_h7W){this._hRQ(_hLN1, _hIV1, _h1U1, _h7W, this._hV72);};G_TooltipManager.F_ShowForTarget=function(_hLN1,_hIV1,_h1U1,_h7W){this._hRQ(_hLN1, _hIV1, _h1U1, _h7W, 0);};G_TooltipManager.F_DeactivateTarget=function(){this._hWD2();this._hBM();};G_TooltipManager.F_ConditionalDeactivateTarget=function(el){if(this._hFY1&&!this._hQ81(el, this._hFY1)){this.F_DeactivateTarget();}};G_TooltipManager.F_GetActiveTarget=function(){return this._hFY1;};G_TooltipManager._hQ81=function(el,_hEW1){el=U_DOM.F_GetElementNotInShadowDom(el);while(el&&el.nodeName!="HTML"&&el.nodeName != "#document"&&el != _hEW1 ){el=el.parentNode;}return(el==_hEW1);};G_TooltipManager.F_GetSimpleTooltip=function(){if(!this._h6W){this._h6W=new D_SimpleTooltip(null, G_HAL.M_sPath+"hal/dialogs/");this._h6W.F_SetDialogOptions(null, false, true, false, false);}return this._h6W;};
|