Class SizeTrigger.EventData
java.lang.Object
com.vaadin.flow.component.trigger.internal.SizeTrigger.EventData
- All Implemented Interfaces:
Serializable
- Enclosing class:
SizeTrigger
The resize-event properties exposed as static
Action.Input
sources. Each field reads off the synthetic {width, height} event
that fires the trigger; pass any of them as the value source of an
Action wired to a SizeTrigger.
Each field is bound to SizeTrigger; using it in the handler of an
unrelated trigger throws IllegalArgumentException at
Trigger.triggers(Action...) time.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Action.Input<Integer> event.height? the element's rounded content-box height in pixels.static final Action.Input<Size> The synthetic event object as a whole, shaped as{width, height}? Jackson-deserialisable into theSizerecord when consumed by an action that decodes its input on the server.static final Action.Input<Integer> event.width? the element's rounded content-box width in pixels. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThe class exists purely as a namespace for the staticAction.Inputfields. -
Method Summary
-
Field Details
-
width
event.width? the element's rounded content-box width in pixels. -
height
event.height? the element's rounded content-box height in pixels. -
size
The synthetic event object as a whole, shaped as{width, height}? Jackson-deserialisable into theSizerecord when consumed by an action that decodes its input on the server.
-
-
Constructor Details
-
EventData
protected EventData()The class exists purely as a namespace for the staticAction.Inputfields.
-