Class CmsContainerPageContainer.ElementPositionInfo

    • Constructor Summary

      Constructors 
      Constructor Description
      ElementPositionInfo​(com.google.gwt.dom.client.Element element)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gwt.dom.client.Element getElement()
      Returns the DOM element.
      CmsPositionBean getElementPosition()
      Returns the element position bean.
      int getRelativeLeft​(int x, int documentScrollLeft)
      Returns the x distance of the cursor to the element left.
      int getRelativeTop​(int y, int documentScrollTop)
      Returns the y distance of the cursor to the element top.
      boolean isAbsolute()
      Returns if the element is positioned absolute.
      boolean isFloating()
      Returns if the element is floated.
      boolean isFloatLeft()
      Returns if the element is floated to the left.
      boolean isFloatRight()
      Returns if the element is floated to the right.
      boolean isVisible()
      Returns if the given element is visible.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElementPositionInfo

        public ElementPositionInfo​(com.google.gwt.dom.client.Element element)
        Constructor.

        Parameters:
        element - the DOM element
    • Method Detail

      • getElement

        public com.google.gwt.dom.client.Element getElement()
        Returns the DOM element.

        Returns:
        the DOM element
      • getRelativeLeft

        public int getRelativeLeft​(int x,
                                   int documentScrollLeft)
        Returns the x distance of the cursor to the element left.

        Parameters:
        x - the cursor x position
        documentScrollLeft - the document scroll left position
        Returns:
        the y distance of the cursor to the element top
      • getRelativeTop

        public int getRelativeTop​(int y,
                                  int documentScrollTop)
        Returns the y distance of the cursor to the element top.

        Parameters:
        y - the cursor y position
        documentScrollTop - the document scroll top position
        Returns:
        the y distance of the cursor to the element top
      • isAbsolute

        public boolean isAbsolute()
        Returns if the element is positioned absolute.

        Returns:
        true if the element is positioned absolute
      • isFloating

        public boolean isFloating()
        Returns if the element is floated.

        Returns:
        true if the element is floated
      • isFloatLeft

        public boolean isFloatLeft()
        Returns if the element is floated to the left.

        Returns:
        true if the element is floated to the left
      • isFloatRight

        public boolean isFloatRight()
        Returns if the element is floated to the right.

        Returns:
        true if the element is floated to the right
      • isVisible

        public boolean isVisible()
        Returns if the given element is visible.

        Returns:
        true if the given element is visible