- All Implemented Interfaces:
EventListener,EventHandler<MouseEvent>
public class MouseEventBinding extends EventBinding<MouseEvent>
Executes a command when a
MouseEvent is received.-
Property Summary
Properties Type Property Description BooleanPropertyaltDownObjectProperty<MouseButton>buttonIntegerPropertyclickCountBooleanPropertycontrolDownBooleanPropertymetaDownBooleanPropertyshiftDownBooleanPropertyshortcutDownProperties inherited from class javafx.scene.input.EventBinding
commandParameter, command -
Constructor Summary
Constructors Constructor Description MouseEventBinding()MouseEventBinding(EventType<MouseEvent> eventType) -
Method Summary
Modifier and Type Method Description BooleanPropertyaltDownProperty()ObjectProperty<MouseButton>buttonProperty()IntegerPropertyclickCountProperty()BooleanPropertycontrolDownProperty()MouseButtongetButton()Gets the value of the property button.intgetClickCount()Gets the value of the property clickCount.voidhandle(MouseEvent event)Invoked when a specific event of the type for which this handler is registered happens.booleanisAltDown()Gets the value of the property altDown.booleanisControlDown()Gets the value of the property controlDown.booleanisMetaDown()Gets the value of the property metaDown.booleanisShiftDown()Gets the value of the property shiftDown.booleanisShortcutDown()Gets the value of the property shortcutDown.BooleanPropertymetaDownProperty()voidsetAltDown(boolean value)Sets the value of the property altDown.voidsetButton(MouseButton button)Sets the value of the property button.voidsetClickCount(int value)Sets the value of the property clickCount.voidsetControlDown(boolean value)Sets the value of the property controlDown.voidsetMetaDown(boolean value)Sets the value of the property metaDown.voidsetShiftDown(boolean value)Sets the value of the property shiftDown.voidsetShortcutDown(boolean value)Sets the value of the property shortcutDown.BooleanPropertyshiftDownProperty()BooleanPropertyshortcutDownProperty()Methods inherited from class javafx.scene.input.EventBinding
commandParameterProperty, commandProperty, fireCommand, getCommand, getCommandParameter, getEventType, setCommand, setCommandParameter
-
Property Details
-
button
- See Also:
getButton(),setButton(MouseButton)
-
clickCount
- See Also:
getClickCount(),setClickCount(int)
-
altDown
- See Also:
isAltDown(),setAltDown(boolean)
-
controlDown
- See Also:
isControlDown(),setControlDown(boolean)
-
shiftDown
- See Also:
isShiftDown(),setShiftDown(boolean)
-
metaDown
- See Also:
isMetaDown(),setMetaDown(boolean)
-
shortcutDown
- See Also:
isShortcutDown(),setShortcutDown(boolean)
-
-
Constructor Details
-
MouseEventBinding
public MouseEventBinding() -
MouseEventBinding
-
-
Method Details
-
buttonProperty
- See Also:
getButton(),setButton(MouseButton)
-
getButton
Gets the value of the property button.- Property description:
-
setButton
Sets the value of the property button.- Property description:
-
clickCountProperty
- See Also:
getClickCount(),setClickCount(int)
-
getClickCount
public int getClickCount()Gets the value of the property clickCount.- Property description:
-
setClickCount
public void setClickCount(int value)Sets the value of the property clickCount.- Property description:
-
altDownProperty
- See Also:
isAltDown(),setAltDown(boolean)
-
isAltDown
public boolean isAltDown()Gets the value of the property altDown.- Property description:
-
setAltDown
public void setAltDown(boolean value)Sets the value of the property altDown.- Property description:
-
controlDownProperty
- See Also:
isControlDown(),setControlDown(boolean)
-
isControlDown
public boolean isControlDown()Gets the value of the property controlDown.- Property description:
-
setControlDown
public void setControlDown(boolean value)Sets the value of the property controlDown.- Property description:
-
shiftDownProperty
- See Also:
isShiftDown(),setShiftDown(boolean)
-
isShiftDown
public boolean isShiftDown()Gets the value of the property shiftDown.- Property description:
-
setShiftDown
public void setShiftDown(boolean value)Sets the value of the property shiftDown.- Property description:
-
metaDownProperty
- See Also:
isMetaDown(),setMetaDown(boolean)
-
isMetaDown
public boolean isMetaDown()Gets the value of the property metaDown.- Property description:
-
setMetaDown
public void setMetaDown(boolean value)Sets the value of the property metaDown.- Property description:
-
shortcutDownProperty
- See Also:
isShortcutDown(),setShortcutDown(boolean)
-
isShortcutDown
public boolean isShortcutDown()Gets the value of the property shortcutDown.- Property description:
-
setShortcutDown
public void setShortcutDown(boolean value)Sets the value of the property shortcutDown.- Property description:
-
handle
Description copied from interface:EventHandlerInvoked when a specific event of the type for which this handler is registered happens.- Parameters:
event- the event which occurred
-