org.assertj.swing.text
Class AbstractButtonTextReader

java.lang.Object
  extended by org.assertj.swing.text.TextReader<AbstractButton>
      extended by org.assertj.swing.text.AbstractButtonTextReader

public class AbstractButtonTextReader
extends TextReader<AbstractButton>

Reads the text displayed in a Swing AbstractButton.

Author:
Alex Ruiz

Constructor Summary
AbstractButtonTextReader()
           
 
Method Summary
protected  boolean checkContainsText(AbstractButton button, String text)
          Indicates whether the given Swing AbstractButton displays the given text.
 Class<AbstractButton> supportedComponent()
           
 
Methods inherited from class org.assertj.swing.text.TextReader
containsText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractButtonTextReader

public AbstractButtonTextReader()
Method Detail

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.