Class CmsContainerPageContainer.ElementPositionInfo

java.lang.Object
org.opencms.ade.containerpage.client.ui.CmsContainerPageContainer.ElementPositionInfo
Enclosing class:
CmsContainerPageContainer

Element position info class.

  • Constructor Details

    • ElementPositionInfo

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

      Parameters:
      element - the DOM element
  • Method Details

    • getElement

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

      Returns:
      the DOM element
    • getElementPosition

      Returns the element position bean.

      Returns:
      the element position bean
    • 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