Class CmsContainerPageContainer.ElementPositionInfo
- java.lang.Object
-
- org.opencms.ade.containerpage.client.ui.CmsContainerPageContainer.ElementPositionInfo
-
- Enclosing class:
- CmsContainerPageContainer
protected class CmsContainerPageContainer.ElementPositionInfo extends java.lang.Object
Element position info class.
-
-
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.
-
-
-
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
-
getElementPosition
public CmsPositionBean 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 positiondocumentScrollLeft
- 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 positiondocumentScrollTop
- 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
-
-