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

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


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


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

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

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

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

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

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

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

    {
        List<String> messages = new ArrayList<String>();

        for ( int i = 1;; i++ )
        {
            SWTBotLabel label = bot.label( i );
            if ( label.getText().startsWith( "-" ) )
            {
                messages.add( label.getText() );
            }
            else
            {
                break;
            }
View Full Code Here

                assertEquals(null, button.widget.getBackgroundImage());
            }
        });

        // Rule 1 applies
        final SWTBotLabel label = bot.label("Label A:");
        assertEquals(0, label.backgroundColor().getBlue());
        assertEquals(255, label.foregroundColor().getBlue());
        Display.getDefault().syncExec(new Runnable() {
            public void run() {
                assertEquals(null, label.widget.getBackgroundImage());
            }
        });
View Full Code Here

TOP

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

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.