We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.server.
Class Page.BrowserWindowResizeEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.server.Page.BrowserWindowResizeEvent
-
All Implemented Interfaces:
Enclosing class:
public static class Page.BrowserWindowResizeEvent extends EventObject
Event that is fired when a browser window containing a uI is resized.
See Also:
-
-
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
-
-
-
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 resizedwidth
- the new width of the browser windowheight
- the new height of the browser window
-
-
Method Detail
-
getSource
public Page getSource()
Overrides:
getSource
in classEventObject
-
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
-
-