< prev index next >
SWT/JemmySWT/src/org/jemmy/swt/lookup/ByStringQueueLookup.java
Print this page
*** 25,73 ****
package org.jemmy.swt.lookup;
import org.jemmy.resources.StringComparePolicy;
/**
- *
- * @param <T>
* @author klara
*/
public abstract class ByStringQueueLookup<T> extends QueueLookup<T> {
private final StringComparePolicy policy;
private final String text;
- /**
- *
- * @param text
- */
protected ByStringQueueLookup(String text) {
this(text, StringComparePolicy.SUBSTRING);
}
- /**
- *
- * @param text
- * @param policy
- */
protected ByStringQueueLookup(String text, StringComparePolicy policy) {
this.policy = policy;
this.text = text;
}
- /**
- *
- * @param control
- * @return
- */
public abstract String getText(T control);
- /**
- *
- * @param control
- * @return
- */
public boolean doCheck(T control) {
return policy.compare(text, getText(control));
}
@Override
--- 25,52 ----
< prev index next >