Class RowHoverEvent


  • public class RowHoverEvent
    extends GwtEvent<RowHoverEvent.Handler>
    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).
    • Constructor Detail

      • RowHoverEvent

        protected RowHoverEvent​(TableRowElement hoveringRow,
                                boolean isUnHover)
        Construct a new RowHoverEvent.
        Parameters:
        hoveringRow - the currently hovering TableRowElement. If isUnHover is true, this should be the previouly hovering TableRowElement
        isUnHover - true if this is an unhover event
      • RowHoverEvent

        protected RowHoverEvent​(TableRowElement hoveringRow,
                                Event browserEvent,
                                boolean isUnHover)
        Construct a new RowHoverEvent.
        Parameters:
        hoveringRow - the currently hovering TableRowElement. If isUnHover is true, this should be the previouly hovering TableRowElement
        browserEvent - the original browser event
        isUnHover - true if this is an unhover event
      • RowHoverEvent

        protected RowHoverEvent​(TableRowElement hoveringRow,
                                Event browserEvent,
                                boolean isUnHover,
                                RowHoverEvent.HoveringScope hoveringScope)
        Construct a new RowHoverEvent.
        Parameters:
        hoveringRow - the currently hovering TableRowElement. If isUnHover is true, this should be the previouly hovering TableRowElement
        browserEvent - the original browser event
        isUnHover - true if this is an unhover event
        hoveringScope - the scope/area of the hover event
    • Method Detail

      • fire

        public static RowHoverEvent fire​(HasHandlers source,
                                         TableRowElement hoveringRow,
                                         boolean isUnHover)
        Fires a row hover event on all registered handlers in the handler manager. If no such handlers exist, this implementation will do nothing.
        Parameters:
        source - the source of the event
        hoveringRow - the currently hovering TableRowElement. If isUnHover is true, this should be the previouly hovering TableRowElement
        isUnHover - true if this is an unhover event
        Returns:
        the RowHoverEvent that was fired
      • fire

        public static RowHoverEvent fire​(HasHandlers source,
                                         TableRowElement hoveringRow,
                                         Event browserEvent,
                                         boolean isUnHover)
        Fires a row hover event on all registered handlers in the handler manager. If no such handlers exist, this implementation will do nothing.
        Parameters:
        source - the source of the event
        hoveringRow - the currently hovering TableRowElement. If isUnHover is true, this should be the previouly hovering TableRowElement
        browserEvent - the original browser event
        isUnHover - true if this is an unhover event
        Returns:
        the RowHoverEvent that was fired
      • fire

        public 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. If no such handlers exist, this implementation will do nothing.
        Parameters:
        source - the source of the event
        hoveringRow - the currently hovering TableRowElement. If isUnHover is true, this should be the previouly hovering TableRowElement
        browserEvent - the original browser event
        isUnHover - true if this is an unhover event
        hoveringScope - the scope/area of the hover event
        Returns:
        the RowHoverEvent that was fired
      • getBrowserEvent

        public Event getBrowserEvent()
        Return the original browser Event. The browser event could be null if the event is fired without one (e.g., by calling #fire(HasHandler, TableRowElement, isUnHover))
      • isUnHover

        public boolean isUnHover()
        Return whether this is an unhover event.