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:
-
MouseDownevent -
MouseEnterevent -
MouseLeaveevent -
MouseMoveevent -
MouseOverevent -
MouseOutevent -
MouseUpevent -
MouseWheelevent
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault TaddMouseDownHandler(MouseDownEventHandler handler) Adds a mouse button down event handler to the component.default TAdds a mouse enter event handler to the component.default TAdds a mouse leave event handler to the component.default TaddMouseMoveHandler(MouseMoveEventHandler handler) Adds a mouse move event handler to the component.default TaddMouseOutHandler(MouseOutEventHandler handler) Adds a mouse out event handler to the component.default TaddMouseOverHandler(MouseOverEventHandler handler) Adds a mouse over event handler to the component.default TaddMouseUpHandler(MouseUpEventHandler handler) Adds a mouse up event handler to the component.default TAdds 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- TheMouseDownEventHandlerimplementation- 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- TheMouseEnterEventHandlerimplementation- 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- TheMouseLeaveEventHandlerimplementation- 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- TheMouseMoveEventHandlerimplementation- 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- TheMouseOverEventHandlerimplementation- 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- TheMouseOutEventHandlerimplementation- 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- TheMouseUpEventHandlerimplementation- 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- TheMouseWheelEventHandlerimplementation- Returns:
- The component
- See Also:
-