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_CONST
Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns theavailHeight
property.int
Returns theavailLeft
property.int
Returns theavailTop
property.int
Returns theavailWidth
property.int
Returns thecolorDepth
property.int
Returns theheight
property.boolean
Returns theorientation
property.int
getLeft()
Returns theleft
property.Returns theorientation
property.org.htmlunit.corejs.javascript.Function
Returns theonchange
event handler for this element.Returns theorientation
property.int
Returns thepixelDepth
property.int
getTop()
Returns thetop
property.int
getWidth()
Returns thewidth
property.void
JavaScript constructor.void
setOnchange
(Object change) Setter for theonchange
event handler.Methods inherited from class org.htmlunit.javascript.host.event.EventTarget
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandler
Methods 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, setupRejectedPromise
Methods 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:
jsConstructor
in classEventTarget
-
getAvailHeight
public int getAvailHeight()Returns theavailHeight
property.- Returns:
- the
availHeight
property
-
getAvailLeft
public int getAvailLeft()Returns theavailLeft
property.- Returns:
- the
availLeft
property
-
getAvailTop
public int getAvailTop()Returns theavailTop
property.- Returns:
- the
availTop
property
-
getAvailWidth
public int getAvailWidth()Returns theavailWidth
property.- Returns:
- the
availWidth
property
-
getColorDepth
public int getColorDepth()Returns thecolorDepth
property.- Returns:
- the
colorDepth
property
-
getHeight
public int getHeight()Returns theheight
property.- Returns:
- the
height
property
-
getLeft
public int getLeft()Returns theleft
property.- Returns:
- the
left
property
-
getPixelDepth
public int getPixelDepth()Returns thepixelDepth
property.- Returns:
- the
pixelDepth
property
-
getTop
public int getTop()Returns thetop
property.- Returns:
- the
top
property
-
getWidth
public int getWidth()Returns thewidth
property.- Returns:
- the
width
property
-
getOrientation
Returns theorientation
property.- Returns:
- the
orientation
property
-
getMozOrientation
Returns theorientation
property.- Returns:
- the
orientation
property
-
getIsExtended
public boolean getIsExtended()Returns theorientation
property.- Returns:
- the
orientation
property
-
getOnchange
public org.htmlunit.corejs.javascript.Function getOnchange()Returns theonchange
event handler for this element.- Returns:
- the
onchange
event handler for this element
-
setOnchange
Setter for theonchange
event handler.- Parameters:
change
- the handler
-