⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 windowevt.java

📁 linux下建立JAVA虚拟机的源码KAFFE
💻 JAVA
字号:
package java.awt;import java.awt.event.WindowEvent;class WindowEvt  extends WindowEvent{	static WindowEvt cache;WindowEvt ( Window src, int evtId ){	super( src, evtId);}protected void dispatch () {	Window src = (Window)source;	if ( id == WINDOW_ICONIFIED ) {		src.flags &= ~Component.IS_PARENT_SHOWING;		src.propagateParentShowing( false);	}	else if ( id == WINDOW_DEICONIFIED ) {		src.flags |= Component.IS_PARENT_SHOWING;		src.propagateParentShowing( false);	}	src.process( this);	if ( (Defaults.RecycleEvents & AWTEvent.WINDOW_EVENT_MASK) != 0 )	recycle();}static synchronized WindowEvt getEvent ( Window source, int id ) {	if ( cache == null ){		return new WindowEvt( source, id);	}	else {		WindowEvt e = cache;		cache = (WindowEvt) e.next;		e.next = null;				e.id = id;		e.source = source;				return e;	}}static synchronized WindowEvt getEvent ( int srcIdx, int id ) {	WindowEvt e;	Component source = sources[srcIdx];	// this protects us from "normal" window destruction triggered by removeNotify()	if ( source == null ) return null;	if ( cache == null ){		e = new WindowEvt( (Window)source, id);	}	else {		e = cache;		cache = (WindowEvt) e.next;		e.next = null;				e.id = id;		e.source = source;	}	if ( (Toolkit.flags & Toolkit.NATIVE_DISPATCHER_LOOP) != 0 ) {		// this is not used as a direct return value for EventQueue.getNextEvent(), 		// it has to be Java-queued by the native layer		Toolkit.eventQueue.postEvent( e);	}		return e;}protected void recycle () {	synchronized ( WindowEvt.class ) {		source = null;		next = cache;			cache = this;	}}static void sendWindowEvent ( Window src, int id, boolean sync ) {	WindowEvt e = getEvent( src, id);		if ( sync )		e.dispatch();	else		Toolkit.eventQueue.postEvent( e);}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -