Examples of LabelElement


Examples of com.google.gwt.dom.client.LabelElement

                if (item.getNodeName().toLowerCase().equals("input")) {
                    InputElement input = (InputElement) item;
                    id = input.getId();
                }
                if (item.getNodeName().toLowerCase().equals("label")) {
                    LabelElement label = (LabelElement) item;
                    if (breakLink) {
                        label.setHtmlFor("");
                    } else {
                        label.setHtmlFor(id);
                    }
                }
            }
        }
    }
View Full Code Here

Examples of com.google.gwt.dom.client.LabelElement

   }

   @Test
   public void createLabel() {
      // Act
      LabelElement elem = LabelElement.as(DOM.createLabel());

      // Assert
      assertEquals("label", elem.getTagName());
   }
View Full Code Here

Examples of com.google.gwt.dom.client.LabelElement

                if (item.getNodeName().toLowerCase().equals("input")) {
                    InputElement input = (InputElement) item;
                    id = input.getId();
                }
                if (item.getNodeName().toLowerCase().equals("label")) {
                    LabelElement label = (LabelElement) item;
                    if (breakLink) {
                        label.setHtmlFor("");
                    } else {
                        label.setHtmlFor(id);
                    }
                }
            }
        }
    }
View Full Code Here

Examples of com.google.gwt.dom.client.LabelElement

    @UiConstructor
    public Radio(String name) {
        super(DOM.createDiv());
        setStyleName(Styles.RADIO);

        LabelElement label = Document.get().createLabelElement();
        inputElem = Document.get().createRadioInputElement(name);
        labelElem = Document.get().createSpanElement();

        label.appendChild(inputElem);
        label.appendChild(labelElem);

        getElement().appendChild(label);

        directionalTextHelper = new DirectionalTextHelper(labelElem, true);
View Full Code Here

Examples of com.google.gwt.dom.client.LabelElement

        setStyleName(Styles.CHECKBOX);

        inputElem = Document.get().createCheckInputElement();
        labelElem = Document.get().createSpanElement();

        LabelElement label = Document.get().createLabelElement();
        label.appendChild(inputElem);
        label.appendChild(labelElem);

        getElement().appendChild(label);

        directionalTextHelper = new DirectionalTextHelper(labelElem, true);
View Full Code Here

Examples of com.google.gwt.dom.client.LabelElement

   * @see <a
   *      href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-for">W3C
   *      HTML Specification</a>
   */
  public void setLabelFor(String htmlFor) {
    final LabelElement labelElem = getElement().cast();
    labelElem.setHtmlFor(htmlFor);
  }
View Full Code Here

Examples of com.google.gwt.dom.client.LabelElement

                if (item.getNodeName().toLowerCase().equals("input")) {
                    InputElement input = (InputElement) item;
                    id = input.getId();
                }
                if (item.getNodeName().toLowerCase().equals("label")) {
                    LabelElement label = (LabelElement) item;
                    if (breakLink) {
                        label.setHtmlFor("");
                    } else {
                        label.setHtmlFor(id);
                    }
                }
            }
        }
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.LabelElement

        }

        $(ButtonElement.class).caption(link).first().click();
        CssLayoutElement content = wrap(CssLayoutElement.class,
                findElement(By.className("valo-content")));
        LabelElement captionElem = content.$(LabelElement.class).first();
        if (!captionElem.getText().equals(caption)) {
            // IE ... why you fail clicks
            System.err.println("Extra click needed on '" + link
                    + "' on remote " + getDesiredCapabilities() + " "
                    + getRemoteControlName());
View Full Code Here

Examples of com.vaadin.testbench.elements.LabelElement

*/
public class DragAndDropWrapperTooltipsTest extends TooltipTest {
    @Test
    public void testDragAndDropTooltips() throws Exception {
        openTestURL();
        LabelElement element = $(LabelElement.class).get(4);
        LabelElement targetElement = $(LabelElement.class).get(1);
        checkTooltip(element,
                "Tooltip for the wrapper wrapping all the draggable layouts");
        new Actions(getDriver()).clickAndHold(element)
                .moveToElement(targetElement).perform();
        sleep(500);
View Full Code Here

Examples of com.vaadin.testbench.elements.LabelElement

public class CustomDeploymentConfTest extends MultiBrowserTest {
    @Test
    public void testCustomDeploymentConf() {
        openTestURL();

        LabelElement cacheTimeLabel = $$(VerticalLayoutElement.class)
                .$$(VerticalLayoutElement.class).$$(LabelElement.class).first();

        LabelElement customParamLabel = $$(VerticalLayoutElement.class)
                .$$(VerticalLayoutElement.class).$$(LabelElement.class).get(1);

        Assert.assertEquals("Resource cache time: 3599",
                cacheTimeLabel.getText());
        Assert.assertEquals("Custom config param: customValue",
                customParamLabel.getText());
    }
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.