
src.abbot.tester.JLabelTester Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of abbot Show documentation
Show all versions of abbot Show documentation
Java GUI Test Framework.
The newest version!
package abbot.tester;
import java.awt.Component;
import javax.swing.JLabel;
/** Provides action methods and assertions for {@link JLabel}s. */
public class JLabelTester extends JComponentTester {
public String deriveTag(Component comp) {
// If the component class is custom, don't provide a tag
if (isCustom(comp.getClass()))
return null;
String tag = stripHTML(((JLabel)comp).getText());
if (tag == null || "".equals(tag)) { //$NON-NLS-1$
tag = super.deriveTag(comp);
}
return tag;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy