Class ModalityCurtainClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<JmixSidePanelLayout>
io.jmix.flowui.kit.component.sidepanellayout.ModalityCurtainClickEvent
- All Implemented Interfaces:
Serializable
@DomEvent("jmix-side-panel-layout-modality-curtain-click-event")
public class ModalityCurtainClickEvent
extends com.vaadin.flow.component.ComponentEvent<JmixSidePanelLayout>
Event fired when the user clicks on the modality curtain.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final booleanprotected final booleanprotected final intprotected final intprotected final booleanFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionModalityCurtainClickEvent(JmixSidePanelLayout source, boolean fromClient, Integer pageX, Integer pageY, Boolean altKey, Boolean ctrlKey, Boolean metaKey, Boolean shiftKey) -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Field Details
-
pageX
protected final int pageX -
pageY
protected final int pageY -
altKey
protected final boolean altKey -
ctrlKey
protected final boolean ctrlKey -
metaKey
protected final boolean metaKey -
shiftKey
protected final boolean shiftKey
-
-
Constructor Details
-
ModalityCurtainClickEvent
public ModalityCurtainClickEvent(JmixSidePanelLayout source, boolean fromClient, @EventData("event.detail.originalEvent.pageX") Integer pageX, @EventData("event.detail.originalEvent.pageY") Integer pageY, @EventData("event.detail.originalEvent.altKey") Boolean altKey, @EventData("event.detail.originalEvent.ctrlKey") Boolean ctrlKey, @EventData("event.detail.originalEvent.metaKey") Boolean metaKey, @EventData("event.detail.originalEvent.shiftKey") Boolean shiftKey)
-
-
Method Details
-
getPageX
public int getPageX()- Returns:
- the X coordinate of the mouse pointer relative to the whole document
-
getPageY
public int getPageY()- Returns:
- the Y coordinate of the mouse pointer relative to the whole document
-
isAltKey
public boolean isAltKey()- Returns:
trueif thealtkey was down when the mouse event was fired
-
isCtrlKey
public boolean isCtrlKey()- Returns:
trueif thecontrolkey was down when the mouse event was fired
-
isMetaKey
public boolean isMetaKey()- Returns:
trueif themetakey was down when the mouse event was fired
-
isShiftKey
public boolean isShiftKey()- Returns:
trueif theshiftkey was down when the mouse event was fired.
-