Examples of SWTBotToolbarToggleButton


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

        for (int i = 0; i < items.length; i++) {
          try {
            if (SWTUtils.hasStyle(items[i], SWT.PUSH))
              l.add(new SWTBotToolbarPushButton(items[i]));
            else if(SWTUtils.hasStyle(items[i], SWT.CHECK))
              l.add(new SWTBotToolbarToggleButton(items[i]));
            else if(SWTUtils.hasStyle(items[i], SWT.RADIO))
              l.add(new SWTBotToolbarRadioButton(items[i]));
            else if(SWTUtils.hasStyle(items[i], SWT.DROP_DOWN))
              l.add(new SWTBotToolbarDropDownButton(items[i]));
          } catch (WidgetNotFoundException e) {
View Full Code Here

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

   * @return a {@link SWTBotToolbarToggleButton} with the specified <code>mnemonicText</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotToolbarToggleButton toolbarToggleButton(String mnemonicText, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotToolbarToggleButton} with the specified <code>tooltip</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltip(String tooltip, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotToolbarToggleButton} with the specified <code>key/value</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String key, String value, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(key, value), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotToolbarToggleButton} with the specified <code>value</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(value), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotToolbarToggleButton} with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotToolbarToggleButton} with the specified <code>none</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotToolbarToggleButton toolbarToggleButton(int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotToolbarToggleButton} with the specified <code>mnemonicText</code> with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String mnemonicText, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotToolbarToggleButton} with the specified <code>tooltip</code> with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltipInGroup(String tooltip, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

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

                for (ToolItem item : toolbar.getItems()) {
                    try {
                        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))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.