public class RowHoverEvent extends GwtEvent<RowHoverEvent.Handler>
Modifier and Type | Class and Description |
---|---|
static interface |
RowHoverEvent.Handler
Handler for
RowHoverEvent . |
static class |
RowHoverEvent.HoveringScope
Indicates the scope/area of the hover event
|
GwtEvent.Type<H>
Modifier | Constructor and Description |
---|---|
protected |
RowHoverEvent(TableRowElement hoveringRow,
boolean isUnHover)
Construct a new
RowHoverEvent . |
protected |
RowHoverEvent(TableRowElement hoveringRow,
Event browserEvent,
boolean isUnHover)
Construct a new
RowHoverEvent . |
protected |
RowHoverEvent(TableRowElement hoveringRow,
Event browserEvent,
boolean isUnHover,
RowHoverEvent.HoveringScope hoveringScope)
Construct a new
RowHoverEvent . |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(RowHoverEvent.Handler handler)
Should only be called by
HandlerManager . |
static RowHoverEvent |
fire(HasHandlers source,
TableRowElement hoveringRow,
boolean isUnHover)
Fires a row hover event on all registered handlers in the handler
manager.
|
static RowHoverEvent |
fire(HasHandlers source,
TableRowElement hoveringRow,
Event browserEvent,
boolean isUnHover)
Fires a row hover event on all registered handlers in the handler
manager.
|
static RowHoverEvent |
fire(HasHandlers source,
TableRowElement hoveringRow,
Event browserEvent,
boolean isUnHover,
RowHoverEvent.HoveringScope hoveringScope)
Fires a row hover event on all registered handlers in the handler
manager.
|
GwtEvent.Type<RowHoverEvent.Handler> |
getAssociatedType()
Returns the
Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
Event |
getBrowserEvent()
Return the original browser
Event . |
TableRowElement |
getHoveringRow()
Return the
TableRowElement that the user just hovered or unhovered. |
RowHoverEvent.HoveringScope |
getHoveringScope()
Return the scope/area of the hover event.
|
static GwtEvent.Type<RowHoverEvent.Handler> |
getType()
Gets the type associated with this event.
|
boolean |
isUnHover()
Return whether this is an unhover event.
|
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
protected RowHoverEvent(TableRowElement hoveringRow, boolean isUnHover)
RowHoverEvent
.hoveringRow
- the currently hovering TableRowElement
. If isUnHover is true, this
should be the previouly hovering TableRowElement
isUnHover
- true if this is an unhover eventprotected RowHoverEvent(TableRowElement hoveringRow, Event browserEvent, boolean isUnHover)
RowHoverEvent
.hoveringRow
- the currently hovering TableRowElement
. If isUnHover is true, this
should be the previouly hovering TableRowElement
browserEvent
- the original browser eventisUnHover
- true if this is an unhover eventprotected RowHoverEvent(TableRowElement hoveringRow, Event browserEvent, boolean isUnHover, RowHoverEvent.HoveringScope hoveringScope)
RowHoverEvent
.hoveringRow
- the currently hovering TableRowElement
. If isUnHover is true, this
should be the previouly hovering TableRowElement
browserEvent
- the original browser eventisUnHover
- true if this is an unhover eventhoveringScope
- the scope/area of the hover eventpublic static RowHoverEvent fire(HasHandlers source, TableRowElement hoveringRow, boolean isUnHover)
source
- the source of the eventhoveringRow
- the currently hovering TableRowElement
. If isUnHover is true, this
should be the previouly hovering TableRowElement
isUnHover
- true if this is an unhover eventRowHoverEvent
that was firedpublic static RowHoverEvent fire(HasHandlers source, TableRowElement hoveringRow, Event browserEvent, boolean isUnHover)
source
- the source of the eventhoveringRow
- the currently hovering TableRowElement
. If isUnHover is true, this
should be the previouly hovering TableRowElement
browserEvent
- the original browser eventisUnHover
- true if this is an unhover eventRowHoverEvent
that was firedpublic static RowHoverEvent fire(HasHandlers source, TableRowElement hoveringRow, Event browserEvent, boolean isUnHover, RowHoverEvent.HoveringScope hoveringScope)
source
- the source of the eventhoveringRow
- the currently hovering TableRowElement
. If isUnHover is true, this
should be the previouly hovering TableRowElement
browserEvent
- the original browser eventisUnHover
- true if this is an unhover eventhoveringScope
- the scope/area of the hover eventRowHoverEvent
that was firedpublic static GwtEvent.Type<RowHoverEvent.Handler> getType()
public GwtEvent.Type<RowHoverEvent.Handler> getAssociatedType()
Event
Event.Type
used to register this event, allowing an
EventBus
to find handlers of the appropriate class.getAssociatedType
in class GwtEvent<RowHoverEvent.Handler>
public Event getBrowserEvent()
Event
. The browser event could be null if the event is
fired without one (e.g., by calling #fire(HasHandler, TableRowElement, isUnHover)
)public TableRowElement getHoveringRow()
TableRowElement
that the user just hovered or unhovered.public RowHoverEvent.HoveringScope getHoveringScope()
public boolean isUnHover()
protected void dispatch(RowHoverEvent.Handler handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.dispatch
in class GwtEvent<RowHoverEvent.Handler>
handler
- handlerEventBus.dispatchEvent(Event, Object)
Copyright © 2016. All rights reserved.