Package elemental.ranges

Examples of elemental.ranges.Range.selectNode()


  /**
   * Selects all text in the specified element.
   */
  public static void selectAllText(Element e) {
    Range range = Browser.getDocument().createRange();
    range.selectNode(e);
    Browser.getWindow().getSelection().addRange(range);
  }

  public static void addClassesToElement(Element e, String... classNames) {
    for (String className : classNames) {
View Full Code Here


  /**
   * Selects all text in the specified element.
   */
  public static void selectAllText(Element e) {
    Range range = Browser.getDocument().createRange();
    range.selectNode(e);
    Browser.getWindow().getSelection().addRange(range);
  }

  public static void addClassesToElement(Element e, String... classNames) {
    for (String className : classNames) {
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.