public abstract class AbstractComponentMatcher extends Object implements ResettableComponentMatcher
ResettableComponentMatcher
.Constructor and Description |
---|
AbstractComponentMatcher()
Creates a new
AbstractComponentMatcher . |
AbstractComponentMatcher(boolean requireShowing)
Creates a new
AbstractComponentMatcher . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
requireShowing()
Indicates whether the component to match has to be showing.
|
protected void |
requireShowing(boolean shouldBeShowing)
Updates the value of the flag that indicates if the component to match should be showing or not.
|
protected boolean |
requireShowingMatches(Component c)
Indicates if the value of the "showing" property of the given component matches the value specified in this
matcher.
|
void |
reset(boolean matchFound)
Resets the internal state of this matcher.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matches
public AbstractComponentMatcher()
AbstractComponentMatcher
.public AbstractComponentMatcher(boolean requireShowing)
AbstractComponentMatcher
.requireShowing
- indicates if the component to match should be showing or not.protected final boolean requireShowing()
true
if the component to find has to be showing, false
otherwise.protected final void requireShowing(boolean shouldBeShowing)
shouldBeShowing
- the new value to set.@RunsInCurrentThread protected final boolean requireShowingMatches(Component c)
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
c
- the component to verify.true
if the value of the "isShowing" property of the given component matches the value
specified in this matcher, false
otherwise.public void reset(boolean matchFound)
reset
in interface ResettableComponentMatcher
matchFound
- indicates whether a match has been found before resetting.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.