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:
java.io.Serializable,java.lang.Cloneable,org.htmlunit.corejs.javascript.ConstProperties,org.htmlunit.corejs.javascript.debug.DebuggableObject,org.htmlunit.corejs.javascript.Scriptable,org.htmlunit.corejs.javascript.SymbolScriptable
public class Screen extends EventTarget
A JavaScript object forScreen.- See Also:
- MSDN documentation, Mozilla documentation, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAvailHeight()Returns theavailHeightproperty.intgetAvailLeft()Returns theavailLeftproperty.intgetAvailTop()Returns theavailTopproperty.intgetAvailWidth()Returns theavailWidthproperty.intgetColorDepth()Returns thecolorDepthproperty.intgetHeight()Returns theheightproperty.booleangetIsExtended()Returns theorientationproperty.intgetLeft()Returns theleftproperty.java.lang.StringgetMozOrientation()Returns theorientationproperty.org.htmlunit.corejs.javascript.FunctiongetOnchange()Returns theonchangeevent handler for this element.ScreenOrientationgetOrientation()Returns theorientationproperty.intgetPixelDepth()Returns thepixelDepthproperty.intgetTop()Returns thetopproperty.intgetWidth()Returns thewidthproperty.voidjsConstructor()JavaScript constructor.voidsetOnchange(java.lang.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, 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 Detail
-
screen_
private Screen screen_
-
-
Constructor Detail
-
Screen
public Screen()
Creates an instance.
-
Screen
public Screen(Screen screen)
Creates an instance.- Parameters:
screen- the backend
-
-
Method Detail
-
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
public ScreenOrientation getOrientation()
Returns theorientationproperty.- Returns:
- the
orientationproperty
-
getMozOrientation
public java.lang.String 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
public void setOnchange(java.lang.Object change)
Setter for theonchangeevent handler.- Parameters:
change- the handler
-
-