org.assertj.swing.text
Class AbstractButtonTextReader
java.lang.Object
org.assertj.swing.text.TextReader<AbstractButton>
org.assertj.swing.text.AbstractButtonTextReader
public class AbstractButtonTextReader
- extends TextReader<AbstractButton>
Reads the text displayed in a Swing AbstractButton
.
- Author:
- Alex Ruiz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractButtonTextReader
public AbstractButtonTextReader()
supportedComponent
@Nonnull
public Class<AbstractButton> supportedComponent()
- Specified by:
supportedComponent
in class TextReader<AbstractButton>
- Returns:
AbstractButton.class
.
checkContainsText
@RunsInCurrentThread
protected boolean checkContainsText(@Nonnull
AbstractButton button,
@Nonnull
String text)
- Indicates whether the given Swing
AbstractButton
displays the given text.
- Specified by:
checkContainsText
in class TextReader<AbstractButton>
- Parameters:
button
- the given AbstractButton
.text
- the given text.
- Returns:
true
if the given AbstractButton
displays the given text; false
otherwise.
Copyright © 2014–2015 AssertJ. All rights reserved.