Class RowHoverEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<RowHoverEvent.Handler>
com.google.gwt.event.shared.GwtEvent<RowHoverEvent.Handler>
com.google.gwt.user.cellview.client.RowHoverEvent
Represents a row hover event. The event includes change in the hovering
row (e.g. the mouse moves over another row) and cell hover events (e.g.
the mouse moves over another cell within the actual row).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceHandler forRowHoverEvent.static enumIndicates the scope/area of the hover eventNested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRowHoverEvent(TableRowElement hoveringRow, boolean isUnHover) Construct a newRowHoverEvent.protectedRowHoverEvent(TableRowElement hoveringRow, Event browserEvent, boolean isUnHover) Construct a newRowHoverEvent.protectedRowHoverEvent(TableRowElement hoveringRow, Event browserEvent, boolean isUnHover, RowHoverEvent.HoveringScope hoveringScope) Construct a newRowHoverEvent. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(RowHoverEvent.Handler handler) Should only be called byHandlerManager.static RowHoverEventfire(HasHandlers source, TableRowElement hoveringRow, boolean isUnHover) Fires a row hover event on all registered handlers in the handler manager.static RowHoverEventfire(HasHandlers source, TableRowElement hoveringRow, Event browserEvent, boolean isUnHover) Fires a row hover event on all registered handlers in the handler manager.static RowHoverEventfire(HasHandlers source, TableRowElement hoveringRow, Event browserEvent, boolean isUnHover, RowHoverEvent.HoveringScope hoveringScope) Fires a row hover event on all registered handlers in the handler manager.Returns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.Return the original browserEvent.Return theTableRowElementthat the user just hovered or unhovered.Return the scope/area of the hover event.static GwtEvent.Type<RowHoverEvent.Handler> getType()Gets the type associated with this event.booleanReturn whether this is an unhover event.Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, reviveMethods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
RowHoverEvent
Construct a newRowHoverEvent.- Parameters:
hoveringRow- the currently hoveringTableRowElement. If isUnHover is true, this should be the previouly hoveringTableRowElementisUnHover- true if this is an unhover event
-
RowHoverEvent
Construct a newRowHoverEvent.- Parameters:
hoveringRow- the currently hoveringTableRowElement. If isUnHover is true, this should be the previouly hoveringTableRowElementbrowserEvent- the original browser eventisUnHover- true if this is an unhover event
-
RowHoverEvent
protected RowHoverEvent(TableRowElement hoveringRow, Event browserEvent, boolean isUnHover, RowHoverEvent.HoveringScope hoveringScope) Construct a newRowHoverEvent.- Parameters:
hoveringRow- the currently hoveringTableRowElement. If isUnHover is true, this should be the previouly hoveringTableRowElementbrowserEvent- the original browser eventisUnHover- true if this is an unhover eventhoveringScope- the scope/area of the hover event
-
-
Method Details
-
getType
Gets the type associated with this event.- Returns:
- returns the handler type
-
getAssociatedType
Description copied from class:EventReturns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.- Specified by:
getAssociatedTypein classGwtEvent<RowHoverEvent.Handler>- Returns:
- the type
-
getBrowserEvent
Return the original browserEvent. The browser event could be null if the event is fired without one (e.g., by callingfire(HasHandler, TableRowElement, isUnHover)) -
getHoveringRow
Return theTableRowElementthat the user just hovered or unhovered. -
getHoveringScope
Return the scope/area of the hover event. -
isUnHover
public boolean isUnHover()Return whether this is an unhover event. -
dispatch
Description copied from class:GwtEventShould only be called byHandlerManager. In other words, do not use or call.- Specified by:
dispatchin classGwtEvent<RowHoverEvent.Handler>- Parameters:
handler- handler- See Also: