Codota Logo
Element.getAbsoluteTop
Code IndexAdd Codota 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)

  • Common ways to obtain Element
private void myMethod () {
Element e =
  • Codota IconDOM.createDiv()
  • Codota IconDOM.createTR()
  • Codota IconDOM.createTable()
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • startActivity (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • JCheckBox (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now