public class Mnemonic
extends java.lang.Object
Node
and a KeyCombination
.
When a Mnemonic is registered on a Scene
, and the KeyCombination reaches the Scene unconsumed,
then the target Node will be sent an ActionEvent
.
Controls should use their MnemonicParsing property when adding Mnemonics.
Mnemonics will not be displayed on all platforms, but the api will still be present.
Modifier and Type | Field and Description |
---|---|
private KeyCombination |
keyCombination |
private Node |
node |
Constructor and Description |
---|
Mnemonic(Node node,
KeyCombination keyCombination)
|
Modifier and Type | Method and Description |
---|---|
void |
fire()
Fire the
ActionEvent |
KeyCombination |
getKeyCombination()
Returns the
KeyCombination |
Node |
getNode()
Returns the
Node |
void |
setKeyCombination(KeyCombination keyCombination)
Sets the
KeyCombination |
void |
setNode(Node node)
Sets the
Node |
private KeyCombination keyCombination
private Node node
public Mnemonic(Node node, KeyCombination keyCombination)
node
- the Node
that will receive the ActionEvent
.keyCombination
- the KeyCombination
that will trigger the Mnemonic.public KeyCombination getKeyCombination()
KeyCombination
KeyCombination
public void setKeyCombination(KeyCombination keyCombination)
KeyCombination
keyCombination
- the KeyCombination
public Node getNode()
Node
Node
public void setNode(Node node)
Node
node
- the Node
public void fire()
ActionEvent