Package org.htmlunit.javascript.host
Class Screen
java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.event.EventTarget
org.htmlunit.javascript.host.Screen
- All Implemented Interfaces:
Serializable,Cloneable,org.htmlunit.corejs.javascript.ConstProperties,org.htmlunit.corejs.javascript.debug.DebuggableObject,org.htmlunit.corejs.javascript.Scriptable,org.htmlunit.corejs.javascript.SymbolScriptable
A JavaScript object for
Screen.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator -
Field Summary
FieldsFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns theavailHeightproperty.intReturns theavailLeftproperty.intReturns theavailTopproperty.intReturns theavailWidthproperty.intReturns thecolorDepthproperty.intReturns theheightproperty.booleanReturns theorientationproperty.intgetLeft()Returns theleftproperty.Returns theorientationproperty.org.htmlunit.corejs.javascript.FunctionReturns theonchangeevent handler for this element.Returns theorientationproperty.intReturns thepixelDepthproperty.intgetTop()Returns thetopproperty.intgetWidth()Returns thewidthproperty.voidJavaScript constructor.voidsetOnchange(Object change) Setter for theonchangeevent handler.Methods inherited from class org.htmlunit.javascript.host.event.EventTarget
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandlerMethods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromiseMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
-
Field Details
-
screen_
-
-
Constructor Details
-
Screen
public Screen()Creates an instance. -
Screen
Creates an instance.- Parameters:
screen- the backend
-
-
Method Details
-
jsConstructor
public void jsConstructor()JavaScript constructor.- Overrides:
jsConstructorin classEventTarget
-
getAvailHeight
public int getAvailHeight()Returns theavailHeightproperty.- Returns:
- the
availHeightproperty
-
getAvailLeft
public int getAvailLeft()Returns theavailLeftproperty.- Returns:
- the
availLeftproperty
-
getAvailTop
public int getAvailTop()Returns theavailTopproperty.- Returns:
- the
availTopproperty
-
getAvailWidth
public int getAvailWidth()Returns theavailWidthproperty.- Returns:
- the
availWidthproperty
-
getColorDepth
public int getColorDepth()Returns thecolorDepthproperty.- Returns:
- the
colorDepthproperty
-
getHeight
public int getHeight()Returns theheightproperty.- Returns:
- the
heightproperty
-
getLeft
public int getLeft()Returns theleftproperty.- Returns:
- the
leftproperty
-
getPixelDepth
public int getPixelDepth()Returns thepixelDepthproperty.- Returns:
- the
pixelDepthproperty
-
getTop
public int getTop()Returns thetopproperty.- Returns:
- the
topproperty
-
getWidth
public int getWidth()Returns thewidthproperty.- Returns:
- the
widthproperty
-
getOrientation
Returns theorientationproperty.- Returns:
- the
orientationproperty
-
getMozOrientation
Returns theorientationproperty.- Returns:
- the
orientationproperty
-
getIsExtended
public boolean getIsExtended()Returns theorientationproperty.- Returns:
- the
orientationproperty
-
getOnchange
public org.htmlunit.corejs.javascript.Function getOnchange()Returns theonchangeevent handler for this element.- Returns:
- the
onchangeevent handler for this element
-
setOnchange
Setter for theonchangeevent handler.- Parameters:
change- the handler
-