Class Page.BrowserWindowResizeEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Page

    public static class Page.BrowserWindowResizeEvent
    extends java.util.EventObject
    Event that is fired when a browser window containing a uI is resized.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      BrowserWindowResizeEvent​(Page source, int width, int height)
      Creates a new event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHeight()
      Gets the new browser window height.
      Page getSource()  
      int getWidth()
      Gets the new browser window width.
      • Methods inherited from class java.util.EventObject

        toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BrowserWindowResizeEvent

        public BrowserWindowResizeEvent​(Page source,
                                        int width,
                                        int height)
        Creates a new event.
        Parameters:
        source - the uI for which the browser window has been resized
        width - the new width of the browser window
        height - the new height of the browser window
    • Method Detail

      • getSource

        public Page getSource()
        Overrides:
        getSource in class java.util.EventObject
      • getHeight

        public int getHeight()
        Gets the new browser window height.
        Returns:
        an integer with the new pixel height of the browser window
      • getWidth

        public int getWidth()
        Gets the new browser window width.
        Returns:
        an integer with the new pixel width of the browser window