protected class CmsContainerPageContainer.ElementPositionInfo
extends java.lang.Object
构造器和说明 |
---|
CmsContainerPageContainer.ElementPositionInfo(com.google.gwt.dom.client.Element element)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
public CmsContainerPageContainer.ElementPositionInfo(com.google.gwt.dom.client.Element element)
element
- the DOM elementpublic com.google.gwt.dom.client.Element getElement()
public CmsPositionBean getElementPosition()
public int getRelativeLeft(int x, int documentScrollLeft)
x
- the cursor x positiondocumentScrollLeft
- the document scroll left positionpublic int getRelativeTop(int y, int documentScrollTop)
y
- the cursor y positiondocumentScrollTop
- the document scroll top positionpublic boolean isAbsolute()
true
if the element is positioned absolutepublic boolean isFloating()
true
if the element is floatedpublic boolean isFloatLeft()
true
if the element is floated to the leftpublic boolean isFloatRight()
true
if the element is floated to the right