當前位置: 首頁>>代碼示例>>Java>>正文


Java EventDispatcher類代碼示例

本文整理匯總了Java中org.netbeans.jemmy.EventDispatcher的典型用法代碼示例。如果您正苦於以下問題:Java EventDispatcher類的具體用法?Java EventDispatcher怎麽用?Java EventDispatcher使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


EventDispatcher類屬於org.netbeans.jemmy包,在下文中一共展示了EventDispatcher類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: cancelDialog

import org.netbeans.jemmy.EventDispatcher; //導入依賴的package包/類
/** Waits for 3 secs and close the first dialog. */
private void cancelDialog() {
    try {
        EventDispatcher.waitQueueEmpty();
    } catch (Exception e) { /* do nothing */ }
    sleepTest(1000);
    
    new NbDialogOperator("").cancel();
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:10,代碼來源:ActionsTest.java

示例2: ComponentOperator

import org.netbeans.jemmy.EventDispatcher; //導入依賴的package包/類
/**
 * Constructor.
 *
 * @param comp a component
 */
public ComponentOperator(Component comp) {
    super();
    source = comp;
    kDriver = DriverManager.getKeyDriver(getClass());
    mDriver = DriverManager.getMouseDriver(getClass());
    fDriver = DriverManager.getFocusDriver(getClass());
    setEventDispatcher(new EventDispatcher(comp));
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:14,代碼來源:ComponentOperator.java

示例3: setEventDispatcher

import org.netbeans.jemmy.EventDispatcher; //導入依賴的package包/類
private void setEventDispatcher(EventDispatcher dispatcher) {
    dispatcher.setOutput(getOutput().createErrorOutput());
    dispatcher.setTimeouts(getTimeouts());
    this.dispatcher = dispatcher;
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:6,代碼來源:ComponentOperator.java

示例4: getEventDispatcher

import org.netbeans.jemmy.EventDispatcher; //導入依賴的package包/類
/**
 * Returns org.netbeans.jemmy.EventDispatcher instance which is used to
 * dispatch events.
 *
 * @return the dispatcher.
 * @see org.netbeans.jemmy.EventDispatcher
 */
public EventDispatcher getEventDispatcher() {
    return dispatcher;
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:11,代碼來源:ComponentOperator.java


注:本文中的org.netbeans.jemmy.EventDispatcher類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。