Class JRadioButtonOperator

All Implemented Interfaces:
Outputable, Timeoutable

public class JRadioButtonOperator extends JToggleButtonOperator


Timeouts used:
AbstractButtonOperator.PushButtonTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
.
Author:
Alexandre Iline (alexandre.iline@sun.com)
See Also:
  • Constructor Details

    • JRadioButtonOperator

      public JRadioButtonOperator(JRadioButton b)
      Constructor.
      Parameters:
      b - a component
    • JRadioButtonOperator

      public JRadioButtonOperator(ContainerOperator cont, ComponentChooser chooser, int index)
      Constructs a JRadioButtonOperator object.
      Parameters:
      cont - a container
      chooser - a component chooser specifying searching criteria.
      index - an index between appropriate ones.
    • JRadioButtonOperator

      public JRadioButtonOperator(ContainerOperator cont, ComponentChooser chooser)
      Constructs a JRadioButtonOperator object.
      Parameters:
      cont - a container
      chooser - a component chooser specifying searching criteria.
    • JRadioButtonOperator

      public JRadioButtonOperator(ContainerOperator cont, String text, int index)
      Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.
      Parameters:
      cont - a container
      text - Button text.
      index - Ordinal component index.
      Throws:
      TimeoutExpiredException
      See Also:
    • JRadioButtonOperator

      public JRadioButtonOperator(ContainerOperator cont, String text)
      Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.
      Parameters:
      cont - a container
      text - Button text.
      Throws:
      TimeoutExpiredException
      See Also:
    • JRadioButtonOperator

      public JRadioButtonOperator(ContainerOperator cont, int index)
      Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.
      Parameters:
      cont - a container
      index - Ordinal component index.
      Throws:
      TimeoutExpiredException
    • JRadioButtonOperator

      public JRadioButtonOperator(ContainerOperator cont)
      Constructor. Waits component in container first. Uses cont's timeout and output for waiting and to init operator.
      Parameters:
      cont - a container
      Throws:
      TimeoutExpiredException
  • Method Details

    • findJRadioButton

      public static JRadioButton findJRadioButton(Container cont, ComponentChooser chooser, int index)
      Searches JRadioButton in container.
      Parameters:
      cont - Container to search component in.
      chooser - org.netbeans.jemmy.ComponentChooser implementation.
      index - Ordinal component index.
      Returns:
      JRadioButton instance or null if component was not found.
    • findJRadioButton

      public static JRadioButton findJRadioButton(Container cont, ComponentChooser chooser)
      Searches 0'th JRadioButton in container.
      Parameters:
      cont - Container to search component in.
      chooser - org.netbeans.jemmy.ComponentChooser implementation.
      Returns:
      JRadioButton instance or null if component was not found.
    • findJRadioButton

      public static JRadioButton findJRadioButton(Container cont, String text, boolean ce, boolean ccs, int index)
      Searches JRadioButton by text.
      Parameters:
      cont - Container to search component in.
      text - Button text. If null, contents is not checked.
      ce - Compare text exactly.
      ccs - Compare text case sensitively.
      index - Ordinal component index.
      Returns:
      JRadioButton instance or null if component was not found.
      See Also:
    • findJRadioButton

      public static JRadioButton findJRadioButton(Container cont, String text, boolean ce, boolean ccs)
      Searches JRadioButton by text.
      Parameters:
      cont - Container to search component in.
      text - Button text. If null, contents is not checked.
      ce - Compare text exactly.
      ccs - Compare text case sensitively.
      Returns:
      JRadioButton instance or null if component was not found.
      See Also:
    • waitJRadioButton

      public static JRadioButton waitJRadioButton(Container cont, ComponentChooser chooser, int index)
      Waits JRadioButton in container.
      Parameters:
      cont - Container to search component in.
      chooser - org.netbeans.jemmy.ComponentChooser implementation.
      index - Ordinal component index.
      Returns:
      JRadioButton instance.
      Throws:
      TimeoutExpiredException
    • waitJRadioButton

      public static JRadioButton waitJRadioButton(Container cont, ComponentChooser chooser)
      Waits 0'th JRadioButton in container.
      Parameters:
      cont - Container to search component in.
      chooser - org.netbeans.jemmy.ComponentChooser implementation.
      Returns:
      JRadioButton instance.
      Throws:
      TimeoutExpiredException
    • waitJRadioButton

      public static JRadioButton waitJRadioButton(Container cont, String text, boolean ce, boolean ccs, int index)
      Waits JRadioButton by text.
      Parameters:
      cont - Container to search component in.
      text - Button text. If null, contents is not checked.
      ce - Compare text exactly.
      ccs - Compare text case sensitively.
      index - Ordinal component index.
      Returns:
      JRadioButton instance.
      Throws:
      TimeoutExpiredException
      See Also:
    • waitJRadioButton

      public static JRadioButton waitJRadioButton(Container cont, String text, boolean ce, boolean ccs)
      Waits JRadioButton by text.
      Parameters:
      cont - Container to search component in.
      text - Button text. If null, contents is not checked.
      ce - Compare text exactly.
      ccs - Compare text case sensitively.
      Returns:
      JRadioButton instance.
      Throws:
      TimeoutExpiredException
      See Also: