public final class KeyboardInputModeKeyBinding extends KeyboardInputModeBinding
KeyboardInputMode
's factory methods that can be
used to remove()
the created key binding again.
Instances of this class can only be obtained from
KeyboardInputMode.addKeyBinding(javafx.scene.input.KeyCode, com.yworks.yfiles.view.ModifierKeys, ICommand, java.lang.Object)
.
Modifier and Type | Method and Description |
---|---|
KeyCodeCombination |
getAccelerator()
Gets the keyboard shortcut that is bound by this instance.
|
ICommand |
getCommand()
Gets the
ICommand that is associated with this binding. |
Object |
getCommandParameter()
Gets the command parameter to use for execution of the command.
|
void |
remove()
Removes the binding represented by this instance from the
KeyboardInputMode it has been created for. |
getKeyboardInputMode
public KeyCodeCombination getAccelerator()
public ICommand getCommand()
ICommand
that is associated with this binding.getCommand
in class KeyboardInputModeBinding
public final Object getCommandParameter()
public void remove()
KeyboardInputMode
it has been created for.
Once this method has been called, the instance can be
remove
in class KeyboardInputModeBinding