|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.core.AbstractComponentMatcher
public abstract class AbstractComponentMatcher
Understands a base class for implementations of
.
ResettableComponentMatcher
Constructor Summary | |
---|---|
AbstractComponentMatcher()
Creates a new AbstractComponentMatcher . |
|
AbstractComponentMatcher(boolean requireShowing)
Creates a new AbstractComponentMatcher . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.fest.swing.core.ComponentMatcher |
---|
matches |
Constructor Detail |
---|
public AbstractComponentMatcher()
AbstractComponentMatcher
.
public AbstractComponentMatcher(boolean requireShowing)
AbstractComponentMatcher
.
requireShowing
- indicates if the component to match should be showing or not.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |