Class CmsContainerPageContainer.ElementPositionInfo
java.lang.Object
org.opencms.ade.containerpage.client.ui.CmsContainerPageContainer.ElementPositionInfo
- Enclosing class:
- CmsContainerPageContainer
Element position info class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gwt.dom.client.Element
Returns the DOM element.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
Returns if the element is positioned absolute.boolean
Returns if the element is floated.boolean
Returns if the element is floated to the left.boolean
Returns if the element is floated to the right.boolean
Returns if the given element is visible.
-
Constructor Details
-
ElementPositionInfo
Constructor.- Parameters:
element
- the DOM element
-
-
Method Details
-
getElement
Returns the DOM element.- Returns:
- the DOM element
-
getElementPosition
Returns the element position bean.- Returns:
- the element position bean
-
getRelativeLeft
Returns the x distance of the cursor to the element left.- Parameters:
x
- the cursor x positiondocumentScrollLeft
- the document scroll left position- Returns:
- the y distance of the cursor to the element top
-
getRelativeTop
Returns the y distance of the cursor to the element top.- Parameters:
y
- the cursor y positiondocumentScrollTop
- the document scroll top position- Returns:
- the y distance of the cursor to the element top
-
isAbsolute
Returns if the element is positioned absolute.- Returns:
true
if the element is positioned absolute
-
isFloating
Returns if the element is floated.- Returns:
true
if the element is floated
-
isFloatLeft
Returns if the element is floated to the left.- Returns:
true
if the element is floated to the left
-
isFloatRight
Returns if the element is floated to the right.- Returns:
true
if the element is floated to the right
-
isVisible
Returns if the given element is visible.- Returns:
true
if the given element is visible
-