![JAR search and dependency download from the Maven repository](/logo.png)
com.objogate.wl.swing.driver.AbstractJTextComponentProbe Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of windowlicker-swing Show documentation
Show all versions of windowlicker-swing Show documentation
This is the Windowlicker Swing library.
The newest version!
package com.objogate.wl.swing.driver;
import javax.swing.text.JTextComponent;
import org.hamcrest.Description;
import com.objogate.wl.Probe;
import com.objogate.wl.swing.ComponentSelector;
public abstract class AbstractJTextComponentProbe implements Probe {
protected final ComponentSelector selector;
public AbstractJTextComponentProbe(ComponentSelector selector) {
this.selector = selector;
}
public void probe() {
selector.probe();
if (selector.isSatisfied()) {
JTextComponent jTextComponent = selector.component();
probe(jTextComponent);
}
}
protected abstract void probe(JTextComponent jTextComponent);
public boolean isSatisfied() {
return selector.isSatisfied();
}
public void describeTo(Description description) {
description.appendText("inner bounds");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy