Interface HandleMouseEvents<T extends Component<?>>

Type Parameters:
T - The component type
All Known Implementing Classes:
ActivityStream, ActivityStreamItem, Badge, BaseLoginPage, BasePage, Blockquote, Breadcrumb, Button, Card, CheckboxItem, CodeViewer, Container, DatePicker, DateRangePicker, DropDownButton, FileItem, FileMiniature, Form, Header, HorizontalSplitter, IBox, Image, IntegerItem, Link, ListBox, ListItem, LoadButton, ModalWindow, NavBarItem, NumberItem, Paragraph, PasswordItem, ProgressBar, RadioButtonItem, Row, SelectorItem, Small, Span, Sparkline, StaticTextItem, SwitchItem, TableCell, TableHeader, TableRow, TabPage, TextItem, Timeline, TimelineItem, Treeview, TreeviewNode, UI.RootLayout, VerticalSplitter, Wizard, WizardStep

public interface HandleMouseEvents<T extends Component<?>>

Mouse event handler components

Components that implement the interface can handle mouse events. These mouse events are:

Since:
4.0
Author:
JBStrap
See Also:
  • Method Details

    • addMouseDownHandler

      default T addMouseDownHandler(MouseDownEventHandler handler)
      Adds a mouse button down event handler to the component. The handler will run when the user presses a mouse button while having the mouse in the component
      Parameters:
      handler - The MouseDownEventHandler implementation
      Returns:
      The component
      See Also:
    • addMouseEnterHandler

      default T addMouseEnterHandler(MouseEnterEventHandler handler)
      Adds a mouse enter event handler to the component. The handler will run when the mouse cursor enters the component, i.e. when the user hovers with the mouse over the component.
      Parameters:
      handler - The MouseEnterEventHandler implementation
      Returns:
      The component
      See Also:
    • addMouseLeaveHandler

      default T addMouseLeaveHandler(MouseLeaveEventHandler handler)
      Adds a mouse leave event handler to the component. The handler will run when the mouse cursor leaves the component.
      Parameters:
      handler - The MouseLeaveEventHandler implementation
      Returns:
      The component
      See Also:
    • addMouseMoveHandler

      default T addMouseMoveHandler(MouseMoveEventHandler handler)
      Adds a mouse move event handler to the component. The handler will run when the mouse cursor moves inside the component area.
      Parameters:
      handler - The MouseMoveEventHandler implementation
      Returns:
      The component
      See Also:
    • addMouseOverHandler

      default T addMouseOverHandler(MouseOverEventHandler handler)
      Adds a mouse over event handler to the component. The handler will run when the mouse cursor moves over a component
      Parameters:
      handler - The MouseOverEventHandler implementation
      Returns:
      The component
      See Also:
    • addMouseOutHandler

      default T addMouseOutHandler(MouseOutEventHandler handler)
      Adds a mouse out event handler to the component. The handler will run when the mouse cursor moves out of a component
      Parameters:
      handler - The MouseOutEventHandler implementation
      Returns:
      The component
      See Also:
    • addMouseUpHandler

      default T addMouseUpHandler(MouseUpEventHandler handler)
      Adds a mouse up event handler to the component. The handler will run when the mouse button is released, while the cursor is in a component.
      Parameters:
      handler - The MouseUpEventHandler implementation
      Returns:
      The component
      See Also:
    • addMouseWheelHandler

      default T addMouseWheelHandler(MouseWheelEventHandler handler)
      Adds a mouse wheel event handler to the component. The handler will run when the mouse wheel is used (scrolling), while the cursor is in a component
      Parameters:
      handler - The MouseWheelEventHandler implementation
      Returns:
      The component
      See Also: