Package com.google.gwt.dom.client

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


                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

TOP

Related Classes of com.google.gwt.dom.client.LabelElement

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.