Examples of SWTBotDateTime


Examples of net.sf.swtbot.widgets.SWTBotDateTime

   * @param label the label on the date/time widget.
   * @return a wrapper around a DateTime widget with the specified label.
   * @throws WidgetNotFoundException if the widget is not found.
   */
  public SWTBotDateTime dateTimeWithLabel(String label) throws WidgetNotFoundException {
    return new SWTBotDateTime(finder, label);
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotDateTime

   * @param label the label on the date/time widget.
   * @return a wrapper around a DateTime widget with the specified label.
   * @throws WidgetNotFoundException if the widget is not found.
   */
  public SWTBotDateTime dateTimeWithLabel(String label) throws WidgetNotFoundException {
    return new SWTBotDateTime(finder, label);
  }
View Full Code Here

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

    Format format = new SimpleDateFormat(CalendarAction.DATE_FORMAT);
    Calendar date = new GregorianCalendar(2100, Calendar.JANUARY, 1);
    CalendarAction action = CalendarAction.create(manager, shell, date, null,
        null);

    SWTBotDateTime bot = new SWTBotDateTime(action.getDateTime());
    assertEquals(format.format(date.getTime()), format.format(bot.getDate()));

    date = new GregorianCalendar(2012, Calendar.DECEMBER, 21);
    bot.setDate(date.getTime());
    assertEquals(format.format(date.getTime()), action.getText());

    Calendar cal = action.getCalendar();
    assertEquals(format.format(date.getTime()), format.format(cal.getTime()));
  }
View Full Code Here

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

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

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

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

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

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

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

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

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

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

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

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

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

   * @return a {@link SWTBotDateTime} with the specified <code>label</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotDateTime dateTimeWithLabel(String label, int index) {
    Matcher matcher = allOf(widgetOfType(DateTime.class), withLabel(label));
    return new SWTBotDateTime((DateTime) 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.