Class Screen

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

public class Screen extends EventTarget
A JavaScript object for Screen.
See Also:
  • Field Details

    • screen_

      private Screen screen_
  • 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
    • 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(Object change)
      Setter for the onchange event handler.
      Parameters:
      change - the handler