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

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

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

origin: com.google.gwt/gwt-servlet

if (child.getElement().getOffsetParent() == null) {
 return;
if (child.getElement().getOffsetParent() == getElement()) {
 return;
origin: com.allen-sauer.gwt.dnd/gwt-dnd

private void checkGWTIssue1813(Widget child, AbsolutePanel parent) {
 if (!GWT.isScript()) {
  if (child.getElement().getOffsetParent() != parent.getElement()
    && !"HTML".equals(child.getElement().getOffsetParent().getNodeName())) {
   DOMUtil.reportFatalAndThrowRuntimeException("The boundary panel for this drag controller does not appear to have"
     + " 'position: relative' CSS applied to it."
     + " This may be due to custom CSS in your application, although this"
     + " is often caused by using the result of RootPanel.get(\"some-unique-id\") as your boundary"
     + " panel, as described in GWT issue 1813"
     + " (http://code.google.com/p/google-web-toolkit/issues/detail?id=1813)."
     + " You can often remedy this problem by adding one line of code to your application:"
     + " boundaryPanel.getElement().getStyle().setProperty(\"position\", \"relative\");");
  }
 }
}
origin: org.eclipse.che.core/che-core-ide-app

 @Override
 public boolean execute() {
  if (!followOutput) {
   followScheduled = false;
   return false;
  }
  if (scrollPanel.getElement().getOffsetParent() != null) {
   scrollPanel.scrollToBottom();
   scrollPanel.scrollToLeft();
   followScheduled = false;
   return false;
  }
  return true;
 }
},
origin: net.wetheinter/gwt-user

if (child.getElement().getOffsetParent() == null) {
 return;
if (child.getElement().getOffsetParent() == getElement()) {
 return;
origin: org.eclipse.che.core/che-core-ide-app

 @Override
 public boolean execute() {
  if (scrollPanel.getElement().getOffsetParent() != null) {
   scrollPanel
     .getElement()
     .setScrollTop(scrollPanel.getElement().getScrollHeight());
   scrollBottomRequired = false;
   return false;
  }
  return true;
 }
},
origin: com.vaadin.external.gwt/gwt-user

if (child.getElement().getOffsetParent() == null) {
 return;
if (child.getElement().getOffsetParent() == getElement()) {
 return;
origin: org.eclipse.che.core/che-core-ide-app

if (scrollPanel.getElement().getOffsetParent() != null) {
 scrollPanel.scrollToBottom();
 scrollPanel.scrollToLeft();
origin: org.eclipse.che.core/che-core-ide-app

/** {@inheritDoc} */
@Override
public void scrollBottom() {
 /** scroll bottom immediately if view is visible */
 if (scrollPanel.getElement().getOffsetParent() != null) {
  scrollPanel.getElement().setScrollTop(scrollPanel.getElement().getScrollHeight());
  return;
 }
 /** otherwise, check the visibility periodically and scroll the view when it's visible */
 if (!scrollBottomRequired) {
  scrollBottomRequired = true;
  Scheduler.get()
    .scheduleFixedPeriod(
      new Scheduler.RepeatingCommand() {
       @Override
       public boolean execute() {
        if (scrollPanel.getElement().getOffsetParent() != null) {
         scrollPanel
           .getElement()
           .setScrollTop(scrollPanel.getElement().getScrollHeight());
         scrollBottomRequired = false;
         return false;
        }
        return true;
       }
      },
      1000);
 }
}
origin: com.allen-sauer.gwt.dnd/gwt-dnd

setBottom(getTop() + widget.getOffsetHeight());
Element elem = widget.getElement().getOffsetParent();
Element p;
com.google.gwt.user.clientElementgetOffsetParent

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

  • Start an intent from android
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Table (org.hibernate.mapping)
    A relational table
  • CodeWhisperer alternatives
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