本文整理匯總了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();
}
示例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));
}
示例3: setEventDispatcher
import org.netbeans.jemmy.EventDispatcher; //導入依賴的package包/類
private void setEventDispatcher(EventDispatcher dispatcher) {
dispatcher.setOutput(getOutput().createErrorOutput());
dispatcher.setTimeouts(getTimeouts());
this.dispatcher = dispatcher;
}
示例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;
}