java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
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.Scriptable>,org.htmlunit.corejs.javascript.debug.DebuggableObject,org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>,org.htmlunit.corejs.javascript.Scriptable,org.htmlunit.corejs.javascript.SymbolScriptable
A JavaScript object for
Screen.- Author:
- Mike Bowler, Daniel Gredler, Chris Erskine, Ronald Brill, Ahmed Ashour, cd alexndr
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunction -
Field Summary
Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
isSealedFields 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.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.booleanReturns theorientationproperty.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, getWindow, getWindow, getWindowOrWorkerGlobalScope, getWithPreemption, has, hasInstance, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setupPromise, setupRejectedPromiseMethods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, getAllIds, getAncestor, getArrayPrototype, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getThis, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasProperty, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isTrue, preventExtensions, put, put, putConst, putConstProperty, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, redefineProperty, sameValue, sealObject, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizeMethods inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
associateValue, checkNotSealed, copyAssociatedValue, createSlotMap, defineProperty, defineProperty, get, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getIds, has, has, isSealed, readMaps, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, writeMapsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.Scriptable
get, getIds, has, hasMethods inherited from interface org.htmlunit.corejs.javascript.SymbolScriptable
get, has
-
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
-
isIsExtended
public boolean isIsExtended()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
-