|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.util.NameComponentChooser
public class NameComponentChooser
Specifies criteria for component lookup basing on component name. By default uses new Operator.DefaultStringComparator(true, true) compa
Constructor Summary | |
---|---|
NameComponentChooser(String name)
Creates an instance to search for a component by name using exact comparision. |
|
NameComponentChooser(String name,
Operator.StringComparator comparator)
Creates an instance to search for a component by name. |
Method Summary | |
---|---|
boolean |
checkComponent(Component component)
Check if the component argument meets the search criteria. |
String |
getDescription()
Returns searched component description. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NameComponentChooser(String name, Operator.StringComparator comparator)
name
- Expecten component name pattern.comparator
- Comparator for a comparision of a component name with a pattern.public NameComponentChooser(String name)
name
- Expecten component name pattern.Method Detail |
---|
public boolean checkComponent(Component component)
ComponentChooser
checkComponent
in interface ComponentChooser
component
- Component to check.
true
when the component conforms to
the search criteria; false
otherwise.public String getDescription()
ComponentChooser
getDescription
in interface ComponentChooser
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |