Package org.netbeans.jemmy.operators
Class Operator.Finder
- java.lang.Object
-
- org.netbeans.jemmy.operators.Operator.Finder
-
- All Implemented Interfaces:
ComponentChooser
- Direct Known Subclasses:
AbstractButtonOperator.AbstractButtonFinder,ButtonOperator.ButtonFinder,CheckboxOperator.CheckboxFinder,ChoiceOperator.ChoiceFinder,ContainerOperator.ContainerFinder,DialogOperator.DialogFinder,FrameOperator.FrameFinder,JButtonOperator.JButtonFinder,JCheckBoxMenuItemOperator.JCheckBoxMenuItemFinder,JCheckBoxOperator.JCheckBoxFinder,JColorChooserOperator.JColorChooserFinder,JComboBoxOperator.JComboBoxFinder,JComponentOperator.JComponentFinder,JDialogOperator.JDialogFinder,JEditorPaneOperator.JEditorPaneFinder,JFileChooserOperator.JFileChooserFinder,JFrameOperator.JFrameFinder,JLabelOperator.JLabelFinder,JListOperator.JListFinder,JMenuBarOperator.JMenuBarFinder,JMenuItemOperator.JMenuItemFinder,JMenuOperator.JMenuFinder,JPasswordFieldOperator.JPasswordFieldFinder,JPopupMenuOperator.JPopupMenuFinder,JProgressBarOperator.JProgressBarFinder,JRadioButtonMenuItemOperator.JRadioButtonMenuItemFinder,JRadioButtonOperator.JRadioButtonFinder,JScrollBarOperator.JScrollBarFinder,JScrollPaneOperator.JScrollPaneFinder,JSliderOperator.JSliderFinder,JSpinnerOperator.JSpinnerFinder,JSplitPaneOperator.JSplitPaneFinder,JTabbedPaneOperator.JTabbedPaneFinder,JTableOperator.JTableFinder,JTextAreaOperator.JTextAreaFinder,JTextComponentOperator.JTextComponentFinder,JTextFieldOperator.JTextFieldFinder,JTextPaneOperator.JTextPaneFinder,JToggleButtonOperator.JToggleButtonFinder,JTreeOperator.JTreeFinder,LabelOperator.LabelFinder,ListOperator.ListFinder,ScrollbarOperator.ScrollbarFinder,ScrollPaneOperator.ScrollPaneFinder,TextAreaOperator.TextAreaFinder,TextComponentOperator.TextComponentFinder,TextFieldOperator.TextFieldFinder
- Enclosing class:
- Operator
public static class Operator.Finder extends java.lang.Object implements ComponentChooser
Allows to bind a compponent by a component type.
-
-
Constructor Summary
Constructors Constructor Description Finder(java.lang.Class clz)Constructs Finder.Finder(java.lang.Class clz, ComponentChooser subchooser)Constructs Finder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckComponent(java.awt.Component comp)Check if the component argument meets the search criteria.java.lang.StringgetDescription()Returns searched component description.
-
-
-
Constructor Detail
-
Finder
public Finder(java.lang.Class clz, ComponentChooser subchooser)Constructs Finder.- Parameters:
clz- a component class.subchooser- other searching criteria.
-
Finder
public Finder(java.lang.Class clz)
Constructs Finder.- Parameters:
clz- a component class.
-
-
Method Detail
-
checkComponent
public boolean checkComponent(java.awt.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 java.lang.String getDescription()
Description copied from interface:ComponentChooserReturns searched component description.- Specified by:
getDescriptionin interfaceComponentChooser- Returns:
- a String representing the description value
-
-