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()
KeyCombination
public void setKeyCombination(KeyCombination keyCombination)
KeyCombination
public void fire()
ActionEvent
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.