public class BoxObject extends SimpleScriptable
Constructor and Description |
---|
BoxObject()
Creates a new instance.
|
BoxObject(HTMLElement element)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
HTMLElement |
getElement()
Returns the element to which this box object corresponds.
|
Object |
getFirstChild()
Returns this box object's element's first child.
|
int |
getHeight()
Returns the height of this box object's element, including padding, excluding margin and border.
|
Object |
getLastChild()
Returns this box object's element's last child.
|
Object |
getNextSibling()
Returns this box object's element's next sibling.
|
Object |
getPreviousSibling()
Returns this box object's element's previous sibling.
|
int |
getScreenX()
Returns the screenX property.
|
int |
getScreenY()
Returns the screenY property.
|
int |
getWidth()
Returns the width of this box object's element, including padding, excluding margin and border.
|
int |
getX()
Returns the X position of this box object's element.
|
int |
getY()
Returns the Y position of this box object's element.
|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setClassName, setDomNode, setDomNode, setHtmlElement, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public BoxObject()
public BoxObject(HTMLElement element)
element
- the element to which this box object correspondspublic HTMLElement getElement()
public Object getFirstChild()
public Object getLastChild()
public Object getNextSibling()
public Object getPreviousSibling()
public int getX()
public int getY()
public int getScreenX()
public int getScreenY()
public int getWidth()
public int getHeight()
Copyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.