Tabnine Logo
Element.scrollIntoView
Code IndexAdd Tabnine to your IDE (free)

How to use
scrollIntoView
method
in
com.google.gwt.user.client.Element

Best Java code snippets using com.google.gwt.user.client.Element.scrollIntoView (Showing top 13 results out of 315)

origin: jqm4gwt/jqm4gwt

public void scrollToFirstError() {
  FormErrorWidgets err = getFirstError();
  if (err == null) return;
  // trying to make both label and widget visible into view
  if (err.label != null) err.label.getElement().scrollIntoView();
  if (err.widget != null) err.widget.getElement().scrollIntoView();
}
origin: bedatadriven/activityinfo

  private void scrollIntoView(LocationDTO location) {
    int index = store.indexOf(location);
    if (index >= 0) {
      Element element = getElement(index);
      if (element != null) {
        element.scrollIntoView();
      }
    }
  }
}
origin: com.google.gwt/gwt-servlet

focusableWidget.setFocus(true);
if (scrollOnSelectEnabled) {
 ((Widget) focusableWidget).getElement().scrollIntoView();
origin: com.allen-sauer.gwt.dnd/gwt-dnd

@Override
public void onMove(DragContext context) {
 super.onMove(context);
 for (Draggable draggable : draggableList) {
  draggable.desiredX = context.desiredDraggableX - dropTargetOffsetX + draggable.relativeX;
  draggable.desiredY = context.desiredDraggableY - dropTargetOffsetY + draggable.relativeY;
  draggable.desiredX = Math.max(0, Math.min(draggable.desiredX, dropTargetClientWidth
    - draggable.offsetWidth));
  draggable.desiredY = Math.max(0, Math.min(draggable.desiredY, dropTargetClientHeight
    - draggable.offsetHeight));
  dropTarget.add(draggable.positioner, draggable.desiredX, draggable.desiredY);
 }
 if (context.dragController.getBehaviorScrollIntoView()) {
  draggableList.get(draggableList.size() - 1).positioner.getElement().scrollIntoView();
 }
 // may have changed due to scrollIntoView() or user driven scrolling
 calcDropTargetOffset();
}
origin: jqm4gwt/jqm4gwt

/**
 * Set a general error on the form.
 */
public void setError(String string) {
  Label errorLabel = new Label(string);
  errorLabel.setStyleName(JQM4GWT_ERROR_LABEL_STYLENAME);
  errorLabel.addStyleName(JQM4GWT_GENERAL_ERROR_LABEL_STYLENAME);
  generalErrors.add(errorLabel);
  generalErrors.getElement().scrollIntoView();
}
origin: com.vaadin.addon/vaadin-touchkit-agpl

  private void scrollToWidget() {
    try {
      com.google.gwt.dom.client.Element e;
      if (element == null) {
        e = w.getElement().getParentElement();
        while (e != null && !isScrollable(e)) {
          e = e.getParentElement();
        }
      } else {
        e = element;
      }
      e.setScrollTop(e.getScrollHeight());
    } catch (Exception e) {
    }
    // Sanity check
    w.getElement().scrollIntoView();
  }
}
origin: org.eagle-i/eagle-i-datatools-sweet-gwt

getElement().scrollIntoView();
center();
origin: org.eagle-i/eagle-i-datatools-sweet-gwt

getElement().scrollIntoView();
origin: org.eagle-i/eagle-i-common-ui-gwt

/**
 * @param header    text to be displayed above the scrollable section
 * @param content   html content of the scrollable section
 * @param buttons   html to contain any buttons (replaces the single "close" button described above); 
 */
public ScrollablePopupPanel(String header, String content, String buttonLabel) {
  super();
  setStyleName("dialogWindow");
  mainPanel = new FlowPanel();
  scrollPanel = new ScrollPanel();
  scrollPanel.setHeight( "400px" );
  contentsPanel = new HTMLPanel( content );
  buttonsPanel = new FlowPanel();
  headingLabel = new Label();
  headingLabel.setStyleName("dataPanelLabel");
  scrollPanel.setStyleName("tributaryInside");
  mainPanel.add(headingLabel);
  mainPanel.add(scrollPanel);
  scrollPanel.add(contentsPanel);
  contentsPanel.setStyleName("dialogWindowContents");
  buttonsPanel.add(makeCancelButton( buttonLabel ));
  buttonsPanel.setStyleName("dialogWindowButtons");
  mainPanel.add(buttonsPanel);
  setWidget(mainPanel);
  getElement().scrollIntoView();
  center();
}

origin: org.eagle-i/eagle-i-search-gwt

getElement().scrollIntoView();
center();
origin: com.vaadin.external.gwt/gwt-user

focusableWidget.setFocus(true);
if (scrollOnSelectEnabled) {
 ((Widget) focusableWidget).getElement().scrollIntoView();
origin: net.wetheinter/gwt-user

focusableWidget.setFocus(true);
if (scrollOnSelectEnabled) {
 ((Widget) focusableWidget).getElement().scrollIntoView();
origin: org.eagle-i/eagle-i-datatools-sweet-gwt

getElement().scrollIntoView();
center();
com.google.gwt.user.clientElementscrollIntoView

Popular methods of Element

  • getStyle
  • setAttribute
  • appendChild
  • setId
  • getParentElement
  • cast
  • setInnerText
  • getId
  • setInnerHTML
  • addClassName
  • getAttribute
  • getInnerHTML
  • getAttribute,
  • getInnerHTML,
  • getFirstChildElement,
  • getInnerText,
  • getClientWidth,
  • removeChild,
  • getChildCount,
  • getOffsetHeight,
  • removeAttribute,
  • removeClassName

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now