Interface UpdateBoundsRequested

All Superinterfaces:
BrowserEvent, Event

public interface UpdateBoundsRequested extends BrowserEvent
An event indicating that JavaScript requests to update bounds of the Browser instance.

JavaScript functions that request such an update are:

  • window.moveTo() — moves a window to the specified position.
  • window.moveBy() — moves a window a specified number of pixels relative to its current coordinates.
  • window.resizeTo() — resizes the window to the specified width and height.
  • window.resizeBy() — resizes the window by the specified pixels.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Rect
    Returns the new bounds in screen coordinates.
    default Browser
    Returns the Browser instance initiated this event.
    default double
    Returns the scale factor of the display where the Browser is located.
  • Method Details

    • browser

      default Browser browser()
      Description copied from interface: BrowserEvent
      Returns the Browser instance initiated this event.
      Specified by:
      browser in interface BrowserEvent
    • bounds

      default Rect bounds()
      Returns the new bounds in screen coordinates.
    • scaleFactor

      default double scaleFactor()
      Returns the scale factor of the display where the Browser is located.