org.assertj.swing.query
Class AbstractButtonTextQuery

java.lang.Object
  extended by org.assertj.swing.query.AbstractButtonTextQuery

public final class AbstractButtonTextQuery
extends Object

Returns the text of a Swing AbstractButton.

Author:
Alex Ruiz, Yvonne Wang
See Also:
AbstractButton.getText()

Method Summary
static String textOf(AbstractButton button)
          Returns the text of the given Swing AbstractButton.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

textOf

@RunsInEDT
@Nullable
public static String textOf(@Nonnull
                                               AbstractButton button)
Returns the text of the given Swing AbstractButton.

Parameters:
button - the given AbstractButton.
Returns:
the text of the given Swing AbstractButton.


Copyright © 2014–2015 AssertJ. All rights reserved.