Package com.teamdev.jxbrowser.ui.event
Interface MousePressed
- All Superinterfaces:
MouseEvent
An event indicating that the mouse button has been pressed.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault MouseButtonbutton()Returns the pressed mouse button.default intReturns the count of consecutive clicks that happened in a short amount of time.default KeyModifiersReturns the keyboard modifiers applied.default Pointlocation()Returns the mouse position relative to the bounds of the browser instance.default PointReturns the mouse position relative to the bounds of the screen.default MouseModifiersReturns the mouse modifiers applied.static MousePressed.BuildernewBuilder(Point location) Creates a newMousePressedbuilder with the given required parameters.
-
Method Details
-
newBuilder
Creates a newMousePressedbuilder with the given required parameters.- Parameters:
location- the mouse position relative to the bounds of the browser instance- Returns:
- a new
MousePressed.Builderinstance
-
location
Description copied from interface:MouseEventReturns the mouse position relative to the bounds of the browser instance.- Specified by:
locationin interfaceMouseEvent
-
locationOnScreen
Description copied from interface:MouseEventReturns the mouse position relative to the bounds of the screen.- Specified by:
locationOnScreenin interfaceMouseEvent
-
button
Returns the pressed mouse button. -
keyModifiers
Returns the keyboard modifiers applied. -
mouseModifiers
Returns the mouse modifiers applied. -
clickCount
default int clickCount()Returns the count of consecutive clicks that happened in a short amount of time.
-