uieventupdatethread.java

来自「全球著名IT公司ILog的APS高级排产优化引擎」· Java 代码 · 共 45 行

JAVA
45
字号
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();  }}

⌨️ 快捷键说明

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