Example usage for com.google.gwt.dom.client SpanElement TAG

List of usage examples for com.google.gwt.dom.client SpanElement TAG

Introduction

In this page you can find the example usage for com.google.gwt.dom.client SpanElement TAG.

Prototype

String TAG

To view the source code for com.google.gwt.dom.client SpanElement TAG.

Click Source Link

Usage

From source file:com.dianaui.universal.core.client.ui.html.Span.java

License:Apache License

public Span() {
    super(SpanElement.TAG, "");
}

From source file:fr.putnami.pwt.core.widget.client.DocumentMeta.java

License:Open Source License

/**
 * Instantiates a new document meta tag.
 *
 * @param name the name attribute/*from   w  ww . jav a 2 s.co  m*/
 */
@UiConstructor
public DocumentMeta(String name) {
    super(SpanElement.TAG);
    assert name != null : "attribute name must not be null";
    this.name = name;
    endContruct();
}

From source file:fr.putnami.pwt.core.widget.client.DocumentTitle.java

License:Open Source License

/**
 * Instantiates a new document title widget.
 */
public DocumentTitle() {
    super(SpanElement.TAG);
    endContruct();
}

From source file:fr.putnami.pwt.core.widget.client.Text.java

License:Open Source License

public Text() {
    super(SpanElement.TAG);
    this.span = SpanElement.as(this.getElement());
}

From source file:org.openremote.app.client.widget.FormInlineLabel.java

License:Open Source License

public FormInlineLabel(String text) {
    setElement(Document.get().createElement(SpanElement.TAG));
    getElement().setClassName("or-FormInlineLabel");

    textElement = (SpanElement) Document.get().createElement(SpanElement.TAG);
    getElement().appendChild(textElement);

    iconElement = (SpanElement) Document.get().createElement(SpanElement.TAG);

    setText(text);/*from   ww w.  j  a v a  2  s  .c  om*/
}

From source file:org.openremote.app.client.widget.FormLabel.java

License:Open Source License

public FormLabel(String text) {
    setElement(Document.get().createElement(DivElement.TAG));
    getElement().addClassName("or-FormLabel layout horizontal center");

    iconElement = (SpanElement) Document.get().createElement(SpanElement.TAG);

    labelElement = (LabelElement) Document.get().createElement(LabelElement.TAG);
    labelElement.setHtmlFor(Document.get().createUniqueId());
    getElement().appendChild(labelElement);

    setText(text);//from   w  w  w .j  a  v  a2s  . c o m
}

From source file:org.openremote.manager.client.widget.FormInlineLabel.java

License:Open Source License

public FormInlineLabel(String text) {
    setElement(Document.get().createElement(SpanElement.TAG));
    getElement().setClassName("or-FormInlineLabel");

    textElement = (SpanElement) Document.get().createElement(SpanElement.TAG);
    getElement().appendChild(textElement);

    iconElement = (SpanElement) Document.get().createElement(SpanElement.TAG);
    iconElement.addClassName("or-FormInlineLabelIcon");
    iconElement.getStyle().setTextAlign(Style.TextAlign.RIGHT);

    setText(text);/* w  w w  .j ava2s  .c  o  m*/
}

From source file:org.openremote.manager.client.widget.FormLabel.java

License:Open Source License

public FormLabel() {
    setElement(Document.get().createElement(DivElement.TAG));
    getElement().addClassName("or-FormLabel layout horizontal center");

    iconElement = (SpanElement) Document.get().createElement(SpanElement.TAG);
    iconElement.addClassName("or-FormLabelIcon");
    iconElement.getStyle().setTextAlign(Style.TextAlign.RIGHT);

    labelElement = (LabelElement) Document.get().createElement(LabelElement.TAG);
    labelElement.setHtmlFor(Document.get().createUniqueId());
    getElement().appendChild(labelElement);

    requiredElement = (SpanElement) Document.get().createElement(SpanElement.TAG);
    requiredElement.addClassName("required");
    requiredElement.setInnerText("*");
    requiredElement.getStyle().setVisibility(Style.Visibility.HIDDEN);
    getElement().appendChild(requiredElement);
}