Module org.htmlunit

Class Screen

java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
org.htmlunit.corejs.javascript.ScriptableObject
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

public class Screen extends EventTarget
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_CONST

    Fields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner

    isSealed

    Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance.
    Screen(Screen screen)
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the availHeight property.
    int
    Returns the availLeft property.
    int
    Returns the availTop property.
    int
    Returns the availWidth property.
    int
    Returns the colorDepth property.
    int
    Returns the height property.
    int
    Returns the left property.
    Returns the orientation property.
    org.htmlunit.corejs.javascript.Function
    Returns the onchange event handler for this element.
    Returns the orientation property.
    int
    Returns the pixelDepth property.
    int
    Returns the top property.
    int
    Returns the width property.
    boolean
    Returns the orientation property.
    void
    JavaScript constructor.
    void
    Setter for the onchange event handler.

    Methods 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, size

    Methods 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, writeMaps

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.htmlunit.corejs.javascript.Scriptable

    get, getIds, has, has

    Methods inherited from interface org.htmlunit.corejs.javascript.SymbolScriptable

    get, has
  • Constructor Details

    • Screen

      public Screen()
      Creates an instance.
    • Screen

      public Screen(Screen screen)
      Creates an instance.
      Parameters:
      screen - the backend
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class EventTarget
    • getAvailHeight

      public int getAvailHeight()
      Returns the availHeight property.
      Returns:
      the availHeight property
    • getAvailLeft

      public int getAvailLeft()
      Returns the availLeft property.
      Returns:
      the availLeft property
    • getAvailTop

      public int getAvailTop()
      Returns the availTop property.
      Returns:
      the availTop property
    • getAvailWidth

      public int getAvailWidth()
      Returns the availWidth property.
      Returns:
      the availWidth property
    • getColorDepth

      public int getColorDepth()
      Returns the colorDepth property.
      Returns:
      the colorDepth property
    • getHeight

      public int getHeight()
      Returns the height property.
      Returns:
      the height property
    • getLeft

      public int getLeft()
      Returns the left property.
      Returns:
      the left property
    • getPixelDepth

      public int getPixelDepth()
      Returns the pixelDepth property.
      Returns:
      the pixelDepth property
    • getTop

      public int getTop()
      Returns the top property.
      Returns:
      the top property
    • getWidth

      public int getWidth()
      Returns the width property.
      Returns:
      the width property
    • getOrientation

      public ScreenOrientation getOrientation()
      Returns the orientation property.
      Returns:
      the orientation property
    • getMozOrientation

      public String getMozOrientation()
      Returns the orientation property.
      Returns:
      the orientation property
    • isIsExtended

      public boolean isIsExtended()
      Returns the orientation property.
      Returns:
      the orientation property
    • getOnchange

      public org.htmlunit.corejs.javascript.Function getOnchange()
      Returns the onchange event handler for this element.
      Returns:
      the onchange event handler for this element
    • setOnchange

      public void setOnchange(Object change)
      Setter for the onchange event handler.
      Parameters:
      change - the handler