Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarRadioButton


                        if (SWTUtils.hasStyle(item, SWT.PUSH))
                            l.add(new SWTBotToolbarPushButton(item));
                        else if (SWTUtils.hasStyle(item, SWT.CHECK))
                            l.add(new SWTBotToolbarToggleButton(item));
                        else if (SWTUtils.hasStyle(item, SWT.RADIO))
                            l.add(new SWTBotToolbarRadioButton(item));
                        else if (SWTUtils.hasStyle(item, SWT.DROP_DOWN))
                            l.add(new SWTBotToolbarDropDownButton(item));
                        else if (SWTUtils.hasStyle(item, SWT.SEPARATOR))
                            l.add(new SWTBotToolbarSeparatorButton(item));
                    } catch (WidgetNotFoundException e) {
View Full Code Here


   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarRadioButton toolbarRadioButton(String mnemonicText, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), withStyle(SWT.RADIO, "SWT.RADIO"));
    return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarRadioButton toolbarRadioButtonWithTooltip(String tooltip, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), withStyle(SWT.RADIO, "SWT.RADIO"));
    return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarRadioButton toolbarRadioButtonWithId(String key, String value, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(key, value), withStyle(SWT.RADIO, "SWT.RADIO"));
    return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarRadioButton toolbarRadioButtonWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(value), withStyle(SWT.RADIO, "SWT.RADIO"));
    return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarRadioButton toolbarRadioButtonInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), inGroup(inGroup), withStyle(SWT.RADIO, "SWT.RADIO"));
    return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarRadioButton toolbarRadioButton(int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withStyle(SWT.RADIO, "SWT.RADIO"));
    return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarRadioButton toolbarRadioButtonInGroup(String mnemonicText, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.RADIO, "SWT.RADIO"));
    return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarRadioButton toolbarRadioButtonWithTooltipInGroup(String tooltip, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.RADIO, "SWT.RADIO"));
    return new SWTBotToolbarRadioButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

  @Test
  public void toolbarRadioButton() throws Exception {
    SWTBotView view = bot.viewByTitle("SWTBot Test View");

    SWTBotToolbarRadioButton button = view.toolbarRadioButton("This represents a radio IAction command.");
    assertNotNull(button);

    button.click();
    bot.button("OK").click();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarRadioButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.