Class ResizeObserver.SizeChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<com.vaadin.flow.component.UI>
org.vaadin.firitin.util.ResizeObserver.SizeChangeEvent
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- ResizeObserver
public static class ResizeObserver.SizeChangeEvent
extends com.vaadin.flow.component.ComponentEvent<com.vaadin.flow.component.UI>
Event fired when the size of a component changes.
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionSizeChangeEvent(com.vaadin.flow.component.UI ui, com.vaadin.flow.component.Component component, ResizeObserver.Dimensions dimensions) 
- 
Method SummaryMethods inherited from class com.vaadin.flow.component.ComponentEventgetSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObjecttoString
- 
Constructor Details- 
SizeChangeEventpublic SizeChangeEvent(com.vaadin.flow.component.UI ui, com.vaadin.flow.component.Component component, ResizeObserver.Dimensions dimensions) 
 
- 
- 
Method Details- 
getComponentpublic com.vaadin.flow.component.Component getComponent()- Returns:
- the component that was resized
 
- 
getWidhtpublic int getWidht()- Returns:
- the new width of the component in pixels
 
- 
getHeightpublic int getHeight()- Returns:
- the new height of the component in pixels
 
- 
getDimensions- Returns:
- the new dimensions of the component
 
 
-