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

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Notification (javax.management)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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