windowhandler.java
来自「基于Junit的 功能和单元测试的的测试工具。只支持Swing.」· Java 代码 · 共 40 行
JAVA
40 行
package org.uispec4j.interception;
import org.uispec4j.Trigger;
import org.uispec4j.Window;
/**
* Interface used for defining modal dialog handlers.
*
* @see WindowInterceptor
* @see <a href="http://www.uispec4j.org/interception.html">Intercepting windows</a>
*/
public abstract class WindowHandler {
private String name;
protected WindowHandler() {
}
/**
* Gives a name to the handler, for description purposes only.
* The name is used to clarify the test code, and it will be used by UISpec4J
* when displaying error messages.
*/
protected WindowHandler(String stepName) {
this.name = stepName;
}
/**
* Handles the shown window and returns a trigger that will close it.
*/
public abstract Trigger process(Window window) throws Exception;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?