Class 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 for Screen.
    See Also:
    MSDN documentation, Mozilla documentation, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject

        org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Screen screen_  
      • Fields 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 
      Constructor Description
      Screen()
      Creates an instance.
      Screen​(Screen screen)
      Creates an instance.
    • 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

      • 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 java.lang.String getMozOrientation()
        Returns the orientation property.
        Returns:
        the orientation property
      • getIsExtended

        public boolean getIsExtended()
        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​(java.lang.Object change)
        Setter for the onchange event handler.
        Parameters:
        change - the handler