HANDLER - the event handler typepublic abstract static class Grid.AbstractGridMouseEvent<HANDLER extends AbstractGridMouseEventHandler>
extends com.google.gwt.event.dom.client.MouseEvent<HANDLER>
| Constructor and Description |
|---|
AbstractGridMouseEvent() |
AbstractGridMouseEvent(Grid<?> grid,
CellReference<?> targetCell)
Deprecated.
This constructor's arguments are no longer used. Use the
no-args constructor instead.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(HANDLER handler) |
protected abstract void |
doDispatch(HANDLER handler,
GridConstants.Section section)
The given handler processes the event if the handler type matches the
given section.
|
protected abstract String |
getBrowserEventType()
Returns the
BrowserEvents type that corresponds with this
event. |
Grid<?> |
getGrid()
Gets the Grid instance for this event, if it originated from a Grid.
|
CellReference<?> |
getTargetCell()
Gets the reference of target cell for this event, if this event
originated from a Grid.
|
protected boolean |
ignoreEventFromTarget(Grid<?> grid,
com.google.gwt.dom.client.Element targetElement)
Returns whether the mouse event on the target element should be
ignored.
|
getClientX, getClientY, getNativeButton, getRelativeX, getRelativeY, getScreenX, getScreenY, getX, getYisAltKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDownfireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, preventDefault, setNativeEvent, setRelativeElement, stopPropagationassertLive, getSource, isLive, kill, revivepublic AbstractGridMouseEvent()
@Deprecated public AbstractGridMouseEvent(Grid<?> grid, CellReference<?> targetCell)
grid - the grid where the event occurredtargetCell - the cell that the event targetedprotected abstract String getBrowserEventType()
BrowserEvents type that corresponds with this
event.public Grid<?> getGrid()
null if this
event did not originate from a gridpublic CellReference<?> getTargetCell()
null if this event did not originate
from a gridprotected void dispatch(HANDLER handler)
dispatch in class com.google.gwt.event.shared.GwtEvent<HANDLER extends AbstractGridMouseEventHandler>protected boolean ignoreEventFromTarget(Grid<?> grid, com.google.gwt.dom.client.Element targetElement)
grid - the Grid instance from which the event originatedtargetElement - the element from which the event originatedtrue if the event should be ignored, false if
it should be handledprotected abstract void doDispatch(HANDLER handler, GridConstants.Section section)
handler - handlersection - the section where the target element is locatedCopyright © 2023 Vaadin Ltd. All rights reserved.