Package com.vaadin.flow.component.page
Class BrowserWindowResizeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.page.BrowserWindowResizeEvent
- All Implemented Interfaces:
Serializable
Event that is fired when a browser window containing a uI is resized.
- Since:
- 1.2
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionBrowserWindowResizeEvent
(Page source, int width, int height) Creates a new event. -
Method Summary
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
BrowserWindowResizeEvent
Creates a new event.- Parameters:
source
- the page for which the browser window has been resizedwidth
- the new width of the browser windowheight
- the new height of the browser window
-
-
Method Details
-
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
-