T - the grid bean type@DomEvent(value="item-double-click") public class ItemDoubleClickEvent<T> extends ItemClickEvent<T>
ItemClickEvent,
Grid.addItemDoubleClickListener(com.vaadin.flow.component.ComponentEventListener),
Serialized Formsource| Constructor and Description |
|---|
ItemDoubleClickEvent(Grid<T> source,
boolean fromClient,
String itemKey,
int screenX,
int screenY,
int clientX,
int clientY,
int clickCount,
int button,
boolean ctrlKey,
boolean shiftKey,
boolean altKey,
boolean metaKey)
Creates a new item double click event.
|
getItemgetButton, getClickCount, getClientX, getClientY, getScreenX, getScreenY, isAltKey, isCtrlKey, isMetaKey, isShiftKeygetSource, isFromClient, unregisterListenertoStringpublic ItemDoubleClickEvent(Grid<T> source, boolean fromClient, @EventData(value="event.detail.itemKey") String itemKey, @EventData(value="event.detail.screenX") int screenX, @EventData(value="event.detail.screenY") int screenY, @EventData(value="event.detail.clientX") int clientX, @EventData(value="event.detail.clientY") int clientY, @EventData(value="event.detail.detail") int clickCount, @EventData(value="event.detail.button") int button, @EventData(value="event.detail.ctrlKey") boolean ctrlKey, @EventData(value="event.detail.shiftKey") boolean shiftKey, @EventData(value="event.detail.altKey") boolean altKey, @EventData(value="event.detail.metaKey") boolean metaKey)
source - the component that fired the eventfromClient - true if the event was originally fired on the
client, false if the event originates from
server-side logicscreenX - the x coordinate of the click event, relative to the upper
left corner of the screen, -1 if unknownscreenY - the y coordinate of the click event, relative to the upper
left corner of the screen, -i if unknownclientX - the x coordinate of the click event, relative to the upper
left corner of the browser viewport, -1 if unknownclientY - the y coordinate of the click event, relative to the upper
left corner of the browser viewport, -1 if unknownclickCount - the number of consecutive clicks recently recordedbutton - the id of the pressed mouse buttonctrlKey - true if the control key was down when the event
was fired, false otherwiseshiftKey - true if the shift key was down when the event was
fired, false otherwisealtKey - true if the alt key was down when the event was
fired, false otherwisemetaKey - true if the meta key was down when the event was
fired, false otherwiseCopyright © 2018. All rights reserved.