public class Mnemonic extends 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.
| 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 |
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()
KeyCombinationpublic void setKeyCombination(KeyCombination keyCombination)
KeyCombinationpublic void fire()
ActionEventCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.