Class JTabbedPaneOperator.JTabbedPaneByItemFinder

java.lang.Object
org.netbeans.jemmy.operators.JTabbedPaneOperator.JTabbedPaneByItemFinder
All Implemented Interfaces:
ComponentChooser
Enclosing class:
JTabbedPaneOperator

public static class JTabbedPaneOperator.JTabbedPaneByItemFinder extends Object implements ComponentChooser
Allows to find component by page title.
  • Constructor Details

    • JTabbedPaneByItemFinder

      public JTabbedPaneByItemFinder(String lb, int ii, Operator.StringComparator comparator)
      Constructs JTabbedPaneByItemFinder.
      Parameters:
      lb - a text pattern
      ii - page index to check. If equal to -1, selected page is checked.
      comparator - specifies string comparision algorithm.
    • JTabbedPaneByItemFinder

      public JTabbedPaneByItemFinder(String lb, int ii)
      Constructs JTabbedPaneByItemFinder.
      Parameters:
      lb - a text pattern
      ii - page index to check. If equal to -1, selected page is checked.
  • Method Details

    • checkComponent

      public boolean checkComponent(Component comp)
      Description copied from interface: ComponentChooser
      Check if the component argument meets the search criteria.
      Specified by:
      checkComponent in interface ComponentChooser
      Parameters:
      comp - Component to check.
      Returns:
      true when the component conforms to the search criteria; false otherwise.
    • getDescription

      public String getDescription()
      Description copied from interface: ComponentChooser
      Returns searched component description.
      Specified by:
      getDescription in interface ComponentChooser
      Returns:
      a String representing the description value