亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? abstractbasedialog.js

?? 基于eclipse的birt報(bào)表!!! 是個(gè)web項(xiàng)目!
?? JS
字號(hào):
/******************************************************************************
 *	Copyright (c) 2004 Actuate Corporation and others.
 *	All rights reserved. This program and the accompanying materials 
 *	are made available under the terms of the Eclipse Public License v1.0
 *	which accompanies this distribution, and is available at
 *		http://www.eclipse.org/legal/epl-v10.html
 *	
 *	Contributors:
 *		Actuate Corporation - Initial implementation.
 *****************************************************************************/
 
/**
 *	Dialog base class
 */
AbstractBaseDialog = function(){};

AbstractBaseDialog.prototype =
{		
	contentHolderWidth: 500, //TODO - move to display constants? Default width in pixels
	visible: null, //Is the dialog currently visible		
	
	 
	/**
	 Initialize dialog base
	 */
	__initBase: function(htmlId, contentWidth)
	{
		this.__instance = $(htmlId);
		this.htmlId = htmlId;
		this.visible = false;
		
		//references will be set for okay button so it can be enabled/disabled
		this.okButton = null;
		this.okButtonLeft = null;
		this.okButtonRight = null;
		
		//Instance is given a location within screen to avoid
		//extra scroll bar creation
		this.__instance.style.top = '0px';
		this.__instance.style.left = '0px';
		
		//Sizing
		this.contentHolderName = htmlId + "dialogContentContainer";
		if(contentWidth)
		{
			this.contentHolderWidth = parseInt(contentWidth);
		}	
		
		this.__neh_resize_closure = this.__neh_resize.bindAsEventListener( this );
		
		// Initialize event handler closures	
		this.__neh_okay_closure = this.__neh_okay.bind(this);
		this.__neh_cancel_closure = this.__neh_cancel.bind(this);
		this.mousedown_closure = this.__neh_mousedown.bindAsEventListener(this);
		this.mouseup_closure = this.__neh_mouseup.bindAsEventListener(this);
		this.drag_closure = this.__neh_drag.bindAsEventListener(this);
		this.disposeSelection_closure = this.__neh_disposeSelection.bindAsEventListener(this);
		this.enableSelection_closure = this.__neh_enableSelection.bindAsEventListener(this);
		
		// Initialize shared events	
		this.__base_installEventHandlers(htmlId);	
	},
	
	/**
	Install event handlers shared across all dialogs.
	Buttons (close, cancel, ok), move dialog (drag and drop), screen resize.
	*/
	__base_installEventHandlers : function( id )
	{
		//Initialize iframe
		this.__iframe = $(id + "iframe");
		
		// Close button
		var closeBtn = $(id + "dialogCloseBtn");
		Event.observe( closeBtn, 'click', this.__neh_cancel_closure, false );
		Event.observe( closeBtn, 'mousedown', this.__neh_stopEvent.bindAsEventListener(this), false );
		
		// OK and Cancel buttons		
		this.okBtn = $(id + "okButton");
		var cancelBtn = $(id + "cancelButton");
		
		this.okBtnLeft = $(id + "okButtonLeft"); //left part of background image
		this.okBtnRight = $(id + "okButtonRight"); //right part of background image
		
		//set OK button to enabled as default
		this.okBtn.className = "dialogBtnBarButtonEnabled";
		if ( this.okBtnLeft )
		{
			this.okBtnLeft.className = "dialogBtnBarButtonLeftBackgroundEnabled";
		}
		if ( this.okBtnRight )
		{
			this.okBtnRight.className = "dialogBtnBarButtonRightBackgroundEnabled";
		}
		
		Event.observe( this.okBtn, 'click', this.__neh_okay_closure , false );
		//Cancel		
		Event.observe( cancelBtn, 'click', this.__neh_cancel_closure , false );
			
		//Drag and Drop
		this.dragBarName = id + "dialogTitleBar";
		var dragArea = $(this.dragBarName);	
		Event.observe(dragArea, 'mousedown', this.mousedown_closure, false);
		
		//work around for IE, enable selection for dialog text controls
		var oInputs = this.__instance.getElementsByTagName( 'INPUT' );
		for ( var i = 0; i < oInputs.length ; i++ )
		{
			if(oInputs[i].type != 'button')
			{
				this.__enableSelection( oInputs[i] );
			}
		}
		
		var oTextAreas = this.__instance.getElementsByTagName( 'TEXTAREA' );
		for ( var i = 0; i < oTextAreas.length ; i++ )
		{
			this.__enableSelection( oTextAreas[i] );
		}		
	},	
	
	/**
	 *	Binding data to the dialog UI.
	 *
	 *	@data, data DOM tree (schema TBD)
	 *	@return, void
	 */
	__cb_bind : function( data )
	{
		this.__bind( data );
			
		this.__l_show( );
	},
	
	/**
	ABSTRACT - must be implemented by extending class
	Gets xml data before dialog is shown
	*/
	__bind: function(data)
	{
	
	},
	
	/**
	Trigger dialog from client (bypasses bind step)
	*/
	showDialog: function()
	{
		this.__l_show( );
	},
	
	/**
	 *	
	 *
	 *	@event, incoming browser native event
	 *	@return, void
	 */
	__l_show : function( )
	{	
		this.__preShow();
			
				//check if the dialog is already shown
		if(!this.visible)
		{
			var zIndex = Mask.show(); 
			debug("showing at zIndex " + zIndex);
			this.__instance.style.zIndex = zIndex;
					
			Element.show( this.__instance );
			this.visible = true;
			
			//workaround for Mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=167801
			if(BrowserUtility.useIFrame())
			{
				//show iframe under dialog
				Element.show( this.__iframe );
			}
			
			this.__setWidth();
				
			BirtPosition.center( this.__instance );
			
			Event.observe( window, 'resize', this.__neh_resize_closure, false );
			Event.observe( document, 'mouseup', this.disposeSelection_closure, false );			
		}
		
		this.__postShow();	
	},
	

	/**
	Called right before element is shown
	*/
	__preShow: function()
	{
		//implementation is left to extending class
	},
	
	/**
	Called after element is shown
	*/
	__postShow: function()
	{
		//implementation is left to extending class
	},
	
	/**
	 *	Handle native event 'click'.
	 *
	 *	@event, incoming browser native event
	 *	@return, void
	 */
	__l_hide : function( )
	{
		this.__preHide();
		Event.stopObserving( window, 'resize', this.__neh_resize_closure, false );
		Event.stopObserving( document, 'mouseup', this.disposeSelection_closure, false );
		Element.hide( this.__instance, this.__iframe );
		this.visible = false;
		Mask.hide();
	},
		
	/**
	Called before element is hidden
	*/
	__preHide: function()
	{
		//implementation is left to extending class
	},
	
	/**
	Enables/disabled OK button
	@param boolean enabled
	*/
	__setOKButtonState: function(enabled)
	{
		if(enabled)
		{
			if(this.okBtn.className == "dialogBtnBarButtonDisabled")
			{
				this.okBtn.className = "dialogBtnBarButtonEnabled";
				if ( this.okBtnLeft )
				{
					this.okBtnLeft.className = "dialogBtnBarButtonLeftBackgroundEnabled";
				}
				if ( this.okBtnRight )
				{
					this.okBtnRight.className = "dialogBtnBarButtonRightBackgroundEnabled";
				}
				Event.observe( this.okBtn, 'click', this.__neh_okay_closure , false );
			}
		}
		else
		{
			this.okBtn.className = "dialogBtnBarButtonDisabled";
			if ( this.okBtnLeft )
			{
				this.okBtnLeft.className = "dialogBtnBarButtonLeftBackgroundDisabled";
			}
			if ( this.okBtnRight )
			{
				this.okBtnRight.className = "dialogBtnBarButtonRightBackgroundDisabled";
			}
			Event.stopObserving( this.okBtn, 'click', this.__neh_okay_closure , false );
		}
	},
	
	/**
	Stop event
	*/
	__neh_stopEvent: function(event)
	{
		Event.stop(event);
	},
	
	/**
	Handle mouse down
	*/
	__neh_mousedown: function(event)
	{
		debug("AbstractBaseDialog __neh_mousedown");
		
		//Event.stop(event);
		var target = Event.element( event );
		
		Event.observe( target, 'mouseup', this.mouseup_closure , false );
		Event.observe( target, 'mousemove', this.drag_closure , false );
	},
	
	/**
	Handle mouse up
	*/
	__neh_mouseup: function(event)
	{
		var target = Event.element( event );

		Event.stopObserving( target, 'mouseup',  this.mouseup_closure , false );
		Event.stopObserving( target, 'mousemove', this.drag_closure , false );
	},
	
	/**
	Handle mousemove 
	*/
	__neh_drag: function(event)
	{
		debug("Mouse move");
		
		Event.stop( event );

		var target = Event.element( event );
		Event.stopObserving( target, 'mouseup',  this.mouseup_closure , false );
		Event.stopObserving( target, 'mousemove', this.drag_closure , false );
					
		DragDrop.startDrag(this.__instance, event, null);	
	},
	
	/**
	* Handle cancel selection
	*/
	__neh_disposeSelection: function(event)
	{
		if(document.selection)
		{
			document.selection.empty();
		}
		else if(window.getSelection)
		{
			var selection = window.getSelection();
			if(selection)
			{
				selection.removeAllRanges();
			}
		}
	},

	/**
	 *	Handle enable selection for dialog controls.
	 *
	 *	@obj, incoming target object
	 *	@return, void
	 */	
	__enableSelection: function( obj )
	{
		Event.observe( obj, 'select', this.enableSelection_closure , false );
		Event.observe( obj, 'selectstart', this.enableSelection_closure , false );
		Event.observe( obj, 'mouseup', this.enableSelection_closure , false );
	},

	/**
	 *	Handle enable selection event.
	 *
	 *	@event, incoming browser native event
	 *	@return, void
	 */	
	__neh_enableSelection: function( event )
	{
		event.cancelBubble = true;
	},
		
	/**
	 *	Handle native event 'resize'.
	 *
	 *	@event, incoming browser native event
	 *	@return, void
	 */
	__neh_resize : function( event )
	{
		BirtPosition.center( this.__instance );
	},
	
	__neh_cancel: function()
	{
		this.__l_hide( );
	},
	
	__neh_okay: function()
	{
		this.__okPress( );
	},

	/**
	 ABSTRACT - Handle clicking on ok.
	*/
	__okPress: function( )
	{
		//ABSTRACT - needs to be implemented by extending class
	},

	//TODO change so called once
	__setWidth: function()
	{	
		// In Mozilla 1.4 or lower version, if don't set overflow as "auto",then
		// clientWidth/clientHeight always return zero. The display is incorrect.
		// So add the following section.
		if ( this.__instance.clientWidth <= 0)
		{
			this.__instance.style.overflow = "auto";
		}
		
		var contentHolder = $(this.contentHolderName);
		var innerWidth = contentHolder.offsetWidth;
		var outerWidth = this.__instance.clientWidth;
		var difference = outerWidth - innerWidth;			
		contentHolder.style.width = this.contentHolderWidth + 'px';
		var newOuterWidth = contentHolder.offsetWidth + difference;
		this.__instance.style.width = newOuterWidth + 'px';
			
		this.__iframe.style.width = this.__instance.offsetWidth + 'px';
		this.__iframe.style.height = this.__instance.offsetHeight + 'px';
		
		//move iframe to true top, left
		//assumes that top/bottom left/right borders are same width
		if(this.__iframe.clientWidth > 0)
		{
			this.__iframe.style.top = (this.__instance.clientHeight - this.__instance.offsetHeight)/2 + 'px';
			this.__iframe.style.left = (this.__instance.clientWidth - this.__instance.offsetWidth)/2 + 'px';
		}
	},
	
	/**
	@returns html id attribute of associated html element for this dialog
	*/
	getHtmlId: function()
	{
		return this.htmlId;
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲日本在线天堂| 91热门视频在线观看| 91福利资源站| 亚洲一卡二卡三卡四卡五卡| 欧美日韩一区三区四区| 国产精品一区二区在线播放| 久久99国产精品尤物| 精品国产电影一区二区| 日韩亚洲欧美一区二区三区| 亚洲精品一区二区三区福利| 香港成人在线视频| 2023国产精品自拍| 欧美精品一区二区三区蜜桃| 久久精品一区八戒影视| 国产精品久久久久久亚洲毛片| 国产视频一区二区三区在线观看| 国产精品三级av| 最新久久zyz资源站| 亚洲国产cao| 国产成人综合视频| 欧美日韩亚洲不卡| 欧美videossexotv100| 国产精品天美传媒沈樵| 中文字幕色av一区二区三区| 国产精品午夜在线| 久久久精品黄色| 欧美狂野另类xxxxoooo| 欧美日韩在线播放三区四区| 91麻豆123| 91美女蜜桃在线| 91年精品国产| 欧美日本视频在线| 日韩欧美在线影院| 国产午夜精品一区二区三区视频 | 亚洲精选视频免费看| 18涩涩午夜精品.www| 亚洲永久免费视频| 日韩精品一级中文字幕精品视频免费观看 | 亚洲动漫第一页| 日韩精彩视频在线观看| 国产在线精品免费av| 不卡的av在线| 欧美三级日韩在线| 2020国产精品自拍| 亚洲欧美综合色| 五月天激情综合网| 国产成a人亚洲| 日本乱码高清不卡字幕| 日韩欧美色综合| 国产精品久久久久桃色tv| 午夜天堂影视香蕉久久| 国产精品一区2区| 日本高清视频一区二区| 欧美tk—视频vk| 中文字幕在线观看一区| 免费成人在线网站| 91免费小视频| 久久只精品国产| 亚洲一卡二卡三卡四卡| 国产九九视频一区二区三区| 91官网在线观看| 久久久www成人免费无遮挡大片| 亚洲黄网站在线观看| 国产在线国偷精品免费看| 欧美在线观看视频在线| 国产视频一区二区在线| 日韩电影在线看| 91麻豆视频网站| 久久久久久一二三区| 亚洲一区国产视频| 成人福利视频网站| 日韩午夜电影在线观看| 亚洲乱码国产乱码精品精小说| 久久99久国产精品黄毛片色诱| 91同城在线观看| 久久精品在线免费观看| 日韩精品久久久久久| 欧美极品aⅴ影院| 日本一区二区三区在线观看| 日本亚洲一区二区| 色丁香久综合在线久综合在线观看| 久久综合色之久久综合| 午夜免费久久看| 日本黄色一区二区| 国产婷婷色一区二区三区| 久久精品国产色蜜蜜麻豆| 欧美日韩国产一级| 一区二区在线免费| 成人自拍视频在线观看| 久久久久久久久99精品| 老鸭窝一区二区久久精品| 在线观看av不卡| 亚洲精品日韩综合观看成人91| 国产ts人妖一区二区| 久久综合久久久久88| 免费一级片91| 3d动漫精品啪啪1区2区免费| 亚洲国产精品欧美一二99| 一本色道久久综合亚洲aⅴ蜜桃| 亚洲国产精品黑人久久久| 紧缚捆绑精品一区二区| 欧美一区二区三区视频在线| 天堂一区二区在线| 欧美精品精品一区| 日韩精品成人一区二区在线| 欧美精品少妇一区二区三区| 亚洲3atv精品一区二区三区| 91久久久免费一区二区| 亚洲欧美激情插| 色综合天天综合网国产成人综合天| 国产精品美女www爽爽爽| 成人永久aaa| 中文字幕日本乱码精品影院| k8久久久一区二区三区 | 亚洲欧美在线观看| 成人激情午夜影院| 国产精品乱码一区二区三区软件| 成人av电影观看| 国产精品女同一区二区三区| av综合在线播放| 亚洲一区二区在线免费看| 欧美性色黄大片| 亚洲第一搞黄网站| 欧美高清hd18日本| 麻豆精品一区二区三区| 精品sm捆绑视频| 国产91丝袜在线18| 日韩理论片中文av| 欧美亚洲免费在线一区| 免费一级片91| 亚洲国产成人自拍| 色狠狠一区二区| 日本午夜精品视频在线观看 | 亚洲免费在线看| 欧美日韩国产小视频在线观看| 蜜桃av噜噜一区| 久久免费偷拍视频| 99热精品国产| 日精品一区二区三区| 久久久久国产成人精品亚洲午夜| 成人精品国产福利| 亚洲一区自拍偷拍| 日韩欧美一区二区免费| 波波电影院一区二区三区| 亚洲一区二区三区四区在线免费观看 | 日韩一区二区三区四区五区六区| 国产乱国产乱300精品| 亚洲你懂的在线视频| 日韩一区国产二区欧美三区| 成人ar影院免费观看视频| 午夜久久久影院| 中文字幕av不卡| 欧美亚洲综合网| 国产成人综合在线| 午夜免费欧美电影| 中文乱码免费一区二区| 欧美性大战久久久久久久蜜臀| 久久国产麻豆精品| 亚洲精品中文在线| 日韩精品一区二区三区老鸭窝| aaa亚洲精品| 蜜臂av日日欢夜夜爽一区| 国产三级一区二区| 欧美色视频一区| 成人综合激情网| 久久超碰97人人做人人爱| 亚洲欧洲精品一区二区精品久久久 | 亚洲欧美福利一区二区| 欧美va亚洲va在线观看蝴蝶网| 91麻豆精品一区二区三区| 久久99精品久久久久婷婷| 亚洲男帅同性gay1069| 精品久久人人做人人爽| 欧洲av一区二区嗯嗯嗯啊| 国产麻豆精品在线观看| 无码av免费一区二区三区试看 | 国产自产高清不卡| 亚洲一区二区成人在线观看| 国产精品午夜电影| 精品99999| 欧美人与z0zoxxxx视频| 91在线播放网址| 国产成人av电影| 久久精品国产色蜜蜜麻豆| 午夜精品福利在线| 亚洲另类春色国产| 国产亚洲精品aa午夜观看| 欧美va亚洲va香蕉在线| 欧美美女网站色| 欧美体内she精视频| jizzjizzjizz欧美| 国产高清亚洲一区| 国内精品视频一区二区三区八戒| 亚洲v中文字幕| 一区二区在线观看免费视频播放| 国产免费观看久久| 国产亚洲综合性久久久影院| 日韩欧美中文字幕制服| 91精品欧美一区二区三区综合在| 精品视频全国免费看|