本文整理汇总了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;
}