public static class JComponentOperator.JComponentByTipFinder extends Object implements ComponentChooser
Constructor and Description |
---|
JComponentOperator.JComponentByTipFinder(String lb)
Constructs JComponentByTipFinder.
|
JComponentOperator.JComponentByTipFinder(String lb,
Operator.StringComparator comparator)
Constructs JComponentByTipFinder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkComponent(Component comp)
Check if the component argument meets the search criteria.
|
String |
getDescription()
Returns searched component description.
|
public JComponentOperator.JComponentByTipFinder(String lb, Operator.StringComparator comparator)
lb
- a text patterncomparator
- specifies string comparision algorithm.public JComponentOperator.JComponentByTipFinder(String lb)
lb
- a text patternpublic boolean checkComponent(Component comp)
ComponentChooser
checkComponent
in interface ComponentChooser
comp
- Component to check.true
when the component conforms to
the search criteria; false
otherwise.public String getDescription()
ComponentChooser
getDescription
in interface ComponentChooser