Examples of SWTBotSpinner


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

  @Test
  public void testApply_period() {
    openRabbitPreferences();

    int numDays = 30;
    SWTBotSpinner datePeriod = bot.spinner();
    datePeriod.setSelection(numDays);
    bot.button("Apply").click();
    assertEquals(numDays, RabbitUI.getDefault().getDefaultDisplayDatePeriod());

    numDays = 7;
    datePeriod.setSelection(numDays);
    bot.button("Apply").click();
    assertEquals(numDays, RabbitUI.getDefault().getDefaultDisplayDatePeriod());

    bot.activeShell().close();
  }
View Full Code Here

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

   * @return a {@link SWTBotSpinner} with the specified <code>label</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotSpinner spinnerWithLabel(String label, int index) {
    Matcher matcher = allOf(widgetOfType(Spinner.class), withLabel(label));
    return new SWTBotSpinner((Spinner) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotSpinner} with the specified <code>text</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotSpinner spinner(String text, int index) {
    Matcher matcher = allOf(widgetOfType(Spinner.class), withText(text));
    return new SWTBotSpinner((Spinner) widget(matcher, index), matcher);
  }
View Full Code Here

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

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

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

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

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

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

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

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

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

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

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

   * @return a {@link SWTBotSpinner} with the specified <code>label</code> with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotSpinner spinnerWithLabelInGroup(String label, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Spinner.class), withLabel(label), inGroup(inGroup));
    return new SWTBotSpinner((Spinner) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotSpinner} with the specified <code>text</code> with the specified <code>inGroup</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotSpinner spinnerInGroup(String text, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Spinner.class), withText(text), inGroup(inGroup));
    return new SWTBotSpinner((Spinner) widget(matcher, index), matcher);
  }
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.