Class CmsContainerPageContainer.ElementPositionInfo
java.lang.Object
org.opencms.ade.containerpage.client.ui.CmsContainerPageContainer.ElementPositionInfo
- Enclosing class:
CmsContainerPageContainer
Element position info class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gwt.dom.client.ElementReturns the DOM element.Returns the element position bean.intgetRelativeLeft(int x, int documentScrollLeft) Returns the x distance of the cursor to the element left.intgetRelativeTop(int y, int documentScrollTop) Returns the y distance of the cursor to the element top.booleanReturns if the element is positioned absolute.booleanReturns if the element is floated.booleanReturns if the element is floated to the left.booleanReturns if the element is floated to the right.booleanReturns 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:
trueif the element is positioned absolute
-
isFloating
Returns if the element is floated.- Returns:
trueif the element is floated
-
isFloatLeft
Returns if the element is floated to the left.- Returns:
trueif the element is floated to the left
-
isFloatRight
Returns if the element is floated to the right.- Returns:
trueif the element is floated to the right
-
isVisible
Returns if the given element is visible.- Returns:
trueif the given element is visible
-