?? uieventupdatethread.java
字號(hào):
package com.power.pipeengine.EngineUI;import java.util.*;/** * <p>Title: PIPE Engine</p> * <p>Description: Global Planning Optimization Engine</p> * <p>Copyright: Copyright (c) 2002</p> * <p>Company: Paraster, Inc.</p> * @author Wei Tan * @version 1.0 */public class UIEventUpdateThread implements Runnable { private Vector _uiObjects = new Vector(); private static final UIEventUpdateThread INSTANCE = new UIEventUpdateThread(); /** * class constructor */ private UIEventUpdateThread() { } /** * Gets the global instance of the singular class object. * @return the global instance. */ public static UIEventUpdateThread getInstance( ) { return INSTANCE; } public void run() { for( int i=0; i<_uiObjects.size(); i++ ) { ( (UIInterface) _uiObjects.elementAt( i ) ).updateDisplay(); } } public void addUIObject( Object obj ) { _uiObjects.add( obj ); } public void reset() { _uiObjects = new Vector(); }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -