congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Element.getAbsoluteTop
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.google.gwt/gwt-servlet

/**
 * Gets the popup's top position relative to the browser's client area.
 *
 * @return the popup's top position
 */
public int getPopupTop() {
 return getElement().getAbsoluteTop();
}
origin: com.google.gwt/gwt-servlet

/**
 * Gets the object's absolute top position in pixels, as measured from the
 * browser window's client area.
 * 
 * @return the object's absolute top position
 */
public int getAbsoluteTop() {
 return getElement().getAbsoluteTop();
}
origin: com.google.gwt/gwt-servlet

/**
 * Gets the position of the top outer border edge of the widget relative to
 * the top outer border edge of the panel.
 * 
 * @param w the widget whose position is to be retrieved
 * @return the widget's top position
 */
public int getWidgetTop(Widget w) {
 checkWidgetParent(w);
 return w.getElement().getAbsoluteTop()
   - getElement().getAbsoluteTop();
}
origin: com.extjs/gxt

/**
 * Gets the current Y position of the element based on page coordinates.
 * 
 * @return the y position of the element
 */
public int getY() {
 return dom.getAbsoluteTop();
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets the popup's top position relative to the browser's client area.
 *
 * @return the popup's top position
 */
public int getPopupTop() {
 return getElement().getAbsoluteTop();
}
origin: net.wetheinter/gwt-user

/**
 * Gets the object's absolute top position in pixels, as measured from the
 * browser window's client area.
 * 
 * @return the object's absolute top position
 */
public int getAbsoluteTop() {
 return getElement().getAbsoluteTop();
}
origin: net.wetheinter/gwt-user

/**
 * Gets the popup's top position relative to the browser's client area.
 *
 * @return the popup's top position
 */
public int getPopupTop() {
 return getElement().getAbsoluteTop();
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets the object's absolute top position in pixels, as measured from the
 * browser window's client area.
 * 
 * @return the object's absolute top position
 */
public int getAbsoluteTop() {
 return getElement().getAbsoluteTop();
}
origin: com.ebmwebsourcing.geasytools/geasy-ui

public float getAbsoluteY() {
  return this.getElement().getAbsoluteTop();
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Gets the position of the top outer border edge of the widget relative to
 * the top outer border edge of the panel.
 * 
 * @param w the widget whose position is to be retrieved
 * @return the widget's top position
 */
public int getWidgetTop(Widget w) {
 checkWidgetParent(w);
 return w.getElement().getAbsoluteTop()
   - getElement().getAbsoluteTop();
}
origin: net.wetheinter/gwt-user

/**
 * Gets the position of the top outer border edge of the widget relative to
 * the top outer border edge of the panel.
 * 
 * @param w the widget whose position is to be retrieved
 * @return the widget's top position
 */
public int getWidgetTop(Widget w) {
 checkWidgetParent(w);
 return w.getElement().getAbsoluteTop()
   - getElement().getAbsoluteTop();
}
origin: de.esoco/gewt

/***************************************
 * Get the offset for the vertical scroll
 *
 * @return The offset
 */
private int getPageScrollTop()
{
  Element rBodyElement = RootPanel.getBodyElement();
  return DOM.getParent(rBodyElement).getAbsoluteTop();
}
origin: oVirt/ovirt-engine

public int getTableAbsoluteTop() {
  return this.table.getElement().getAbsoluteTop() + this.table.getGridHeaderHeight();
}
origin: com.googlecode.mgwt/mgwt

protected void calculateSelection(int y) {
  int absoluteTop = getElement().getAbsoluteTop();
  int absoluteBottom = getElement().getAbsoluteBottom();
  int normalized_y = y - absoluteTop;
  int height = absoluteBottom - absoluteTop;
  int index = (normalized_y * renderedEntries) / height;
  if (index != selectedIndex) {
    SelectionEvent.fire(this, mapping.get(index));
  }
  selectedIndex = index;
}
origin: dankurka/mgwt

protected void calculateSelection(int y) {
  int absoluteTop = getElement().getAbsoluteTop();
  int absoluteBottom = getElement().getAbsoluteBottom();
  int normalized_y = y - absoluteTop;
  int height = absoluteBottom - absoluteTop;
  int index = (normalized_y * renderedEntries) / height;
  if (index != selectedIndex) {
    SelectionEvent.fire(this, mapping.get(index));
  }
  selectedIndex = index;
}
origin: stackoverflow.com

 public static boolean isVisible(Element e)
{
  //vp = viewPort, b = bottom, l = left, t = top, r = right
  int vpWidth   = Window.getClientWidth();
  int vpHeight = Window.getClientHeight();


  boolean tViz = ( e.getAbsoluteTop() >= 0 && e.getAbsoluteTop()<  vpHeight);
  boolean bViz = (e.getAbsoluteBottom() >  0 && e.getAbsoluteBottom() <= vpHeight);
  boolean lViz = (e.getAbsoluteLeft() >= 0 && e.getAbsoluteLeft() < vpWidth);
  boolean rViz = (e.getAbsoluteRight()  >  0 && e.getAbsoluteRight()  <= vpWidth);

  boolean vVisible   = tViz && bViz;
  boolean hVisible   = lViz && rViz;

  return hVisible && vVisible;
}
origin: bedatadriven/activityinfo

private void showOptionsMenu(MapLayer mapLayer, int index) {
  if (layerMenu == null) {
    createLayerMenu();
  }
  int x = this.getAbsoluteLeft() - CONTEXT_MENU_WIDTH;
  int y = view.getElement(index).getAbsoluteTop();
  clusterMenuItem.setVisible(mapLayer instanceof PointMapLayer);
  layerMenu.showAt(x, y);
}
origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common

/**
 * Gets the mouse y-position relative to the canvas element.
 * @param clientY The event's clienty value.
 * @return the relative y-position
 */
private double getRelativeY(final double clientY) {
  return clientY - getCanvasElement().getAbsoluteTop() + getCanvasElement().getScrollTop() +
      getCanvasElement().getOwnerDocument().getScrollTop();
}
origin: ManfredTremmel/gwt-bean-validators

 private boolean isInViewPort() {
  final int pageTop = Window.getScrollTop();
  final int pageBottom = pageTop + Window.getClientHeight();
  final int elementTop = asWidget().getElement().getAbsoluteTop();
  final int elementBottom = elementTop + asWidget().getElement().getClientHeight();
  return elementTop <= pageBottom && elementBottom >= pageTop;
 }
}
origin: com.haulmont.cuba/cuba-web-toolkit

private void beginMovingWindow(Event event) {
  if (draggable) {
    showDraggingCurtain();
    dragging = true;
    startX = WidgetUtil.getTouchOrMouseClientX(event);
    startY = WidgetUtil.getTouchOrMouseClientY(event);
    origX = getElement().getAbsoluteLeft();
    origY = getElement().getAbsoluteTop();
    DOM.setCapture(getElement());
    event.preventDefault();
  }
}
com.google.gwt.user.clientElementgetAbsoluteTop

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
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top plugins for Android Studio
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