Package com.jbstrap.ui
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:
-
MouseDown
event -
MouseEnter
event -
MouseLeave
event -
MouseMove
event -
MouseOver
event -
MouseOut
event -
MouseUp
event -
MouseWheel
event
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
addMouseDownHandler
(MouseDownEventHandler handler) Adds a mouse button down event handler to the component.default T
Adds a mouse enter event handler to the component.default T
Adds a mouse leave event handler to the component.default T
addMouseMoveHandler
(MouseMoveEventHandler handler) Adds a mouse move event handler to the component.default T
addMouseOutHandler
(MouseOutEventHandler handler) Adds a mouse out event handler to the component.default T
addMouseOverHandler
(MouseOverEventHandler handler) Adds a mouse over event handler to the component.default T
addMouseUpHandler
(MouseUpEventHandler handler) Adds a mouse up event handler to the component.default T
Adds a mouse wheel event handler to the component.
-
Method Details
-
addMouseDownHandler
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
- TheMouseDownEventHandler
implementation- Returns:
- The component
- See Also:
-
addMouseEnterHandler
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
- TheMouseEnterEventHandler
implementation- Returns:
- The component
- See Also:
-
addMouseLeaveHandler
Adds a mouse leave event handler to the component. The handler will run when the mouse cursor leaves the component.- Parameters:
handler
- TheMouseLeaveEventHandler
implementation- Returns:
- The component
- See Also:
-
addMouseMoveHandler
Adds a mouse move event handler to the component. The handler will run when the mouse cursor moves inside the component area.- Parameters:
handler
- TheMouseMoveEventHandler
implementation- Returns:
- The component
- See Also:
-
addMouseOverHandler
Adds a mouse over event handler to the component. The handler will run when the mouse cursor moves over a component- Parameters:
handler
- TheMouseOverEventHandler
implementation- Returns:
- The component
- See Also:
-
addMouseOutHandler
Adds a mouse out event handler to the component. The handler will run when the mouse cursor moves out of a component- Parameters:
handler
- TheMouseOutEventHandler
implementation- Returns:
- The component
- See Also:
-
addMouseUpHandler
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
- TheMouseUpEventHandler
implementation- Returns:
- The component
- See Also:
-
addMouseWheelHandler
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
- TheMouseWheelEventHandler
implementation- Returns:
- The component
- See Also:
-