Package com.google.gwt.dom.client

Examples of com.google.gwt.dom.client.Element.scrollIntoView()


                public void run() {
                    Element el = (Element) contentElement.getLastChild();
                    if (el != null) {
                        el = el.getFirstChildElement();
                        if (el != null) {
                            el.scrollIntoView();
                        }
                    }
                }
            };
View Full Code Here


  }
 
  public void scrollToPart(String partId){
    Element el = elementLookup.get(partId);
    if(null != el)
      el.scrollIntoView();
  }

  public void markPart(String partID, String className) {
    Element el = elementLookup.get(partID);
    if(null != el && !el.getClassName().equals(MARKUP_PART_SELECTED))
View Full Code Here

   
    // highlight text
    el.setInnerHTML(highlight);

    // scroll to part
    el.scrollIntoView();
  }

  /**
   * If some paragraph was highlighted this is undone
   */
 
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.