Examples of scrollIntoView()


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

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

  }
 
  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

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

   
    // highlight text
    el.setInnerHTML(highlight);

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

  /**
   * If some paragraph was highlighted this is undone
   */
 
View Full Code Here

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

            elt.setClassName(style.entry() + " " + style.info());
            break;
        }

        panel.getElement().appendChild(elt);
        elt.scrollIntoView();
      }
    });
  }
}
View Full Code Here

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

            elt.setClassName(style.entry() + " " + style.info());
            break;
        }

        panel.getElement().appendChild(elt);
        elt.scrollIntoView();
      }
    });
  }
}
View Full Code Here

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

         selectedValue_ = table_.getText(row.intValue(), COL_NAME);

         TableRowElement rowEl = ((TableElement)table_.getElement().cast())
               .getRows().getItem(selectedRow_);
         int horizScroll = scrollPanel_.getHorizontalScrollPosition();
         rowEl.scrollIntoView();
         scrollPanel_.setHorizontalScrollPosition(horizScroll);
      }

      SelectionEvent.fire(DirectoryContentsWidget.this,
                          getSelectedItem());
View Full Code Here

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

   {
      int rowNum = addItem(directory, null, null);

      TableElement table = (TableElement) table_.getElement().cast();
      TableRowElement row = table.getRows().getItem(rowNum);
      row.scrollIntoView();
      scrollPanel_.setHorizontalScrollPosition(0);
      setSelectedRow(rowNum);
   }

   public HandlerRegistration addFocusHandler(FocusHandler handler)
View Full Code Here

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

  public void scrollIntoView(M model) {
    TreeNode node = findNode(model);
    if (node != null) {
      Element c = getView().getElementContainer(node);
      if (c != null) {
        c.scrollIntoView();
      }
    }
  }

  /**
 
View Full Code Here

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

  public void scrollIntoView(M model) {
    TreeNode node = findNode(model);
    if (node != null) {
      Element c = getView().getElementContainer(node);
      if (c != null) {
        c.scrollIntoView();
      }
    }
  }

  /**
 
View Full Code Here

Examples of com.google.minijoe.html.uibase.Widget.scrollIntoView()

      return;
    }
    if (w.isFocusable()) {
      w.requestFocus();
    }
    w.scrollIntoView();
  }
 
  public Widget getWidgetForLabel(String label) {
    return (Widget) labels.get(label);
  }
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.