Package org.netbeans.jemmy.operators
Class CheckboxOperator.CheckboxByLabelFinder
- java.lang.Object
-
- org.netbeans.jemmy.operators.CheckboxOperator.CheckboxByLabelFinder
-
- All Implemented Interfaces:
ComponentChooser
- Enclosing class:
- CheckboxOperator
public static class CheckboxOperator.CheckboxByLabelFinder extends Object implements ComponentChooser
Allows to find component by label.
-
-
Constructor Summary
Constructors Constructor Description CheckboxByLabelFinder(String lb)Constructs CheckboxByLabelFinder.CheckboxByLabelFinder(String lb, Operator.StringComparator comparator)Constructs CheckboxByLabelFinder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckComponent(Component comp)Check if the component argument meets the search criteria.StringgetDescription()Returns searched component description.
-
-
-
Constructor Detail
-
CheckboxByLabelFinder
public CheckboxByLabelFinder(String lb, Operator.StringComparator comparator)
Constructs CheckboxByLabelFinder.- Parameters:
lb- a label patterncomparator- specifies string comparision algorithm.
-
CheckboxByLabelFinder
public CheckboxByLabelFinder(String lb)
Constructs CheckboxByLabelFinder.- Parameters:
lb- a label pattern
-
-
Method Detail
-
checkComponent
public boolean checkComponent(Component comp)
Description copied from interface:ComponentChooserCheck if the component argument meets the search criteria.- Specified by:
checkComponentin interfaceComponentChooser- Parameters:
comp- Component to check.- Returns:
truewhen the component conforms to the search criteria;falseotherwise.
-
getDescription
public String getDescription()
Description copied from interface:ComponentChooserReturns searched component description.- Specified by:
getDescriptionin interfaceComponentChooser- Returns:
- a String representing the description value
-
-