java.lang.Object
javafx.scene.input.Mnemonic
public class Mnemonic extends Object
This class is used when creating a Mnemonic.
 The Mnemonic is constructed with a 
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.
- Since:
- JavaFX 2.0
- 
Constructor SummaryConstructors Constructor Description Mnemonic(Node node, KeyCombination keyCombination)
- 
Method SummaryModifier and Type Method Description voidfire()Fire theActionEventKeyCombinationgetKeyCombination()Returns theKeyCombinationNodegetNode()Returns theNodevoidsetKeyCombination(KeyCombination keyCombination)Sets theKeyCombinationvoidsetNode(Node node)Sets theNode
- 
Constructor Details- 
Mnemonic- Parameters:
- node- the- Nodethat will receive the- ActionEvent.
- keyCombination- the- KeyCombinationthat will trigger the Mnemonic.
 
 
- 
- 
Method Details- 
getKeyCombinationReturns theKeyCombination- Returns:
- the KeyCombination
 
- 
setKeyCombinationSets theKeyCombination- Parameters:
- keyCombination- the- KeyCombination
 
- 
getNodeReturns theNode- Returns:
- the Node
 
- 
setNodeSets theNode- Parameters:
- node- the- Node
- Since:
- JavaFX 2.2
 
- 
firepublic void fire()Fire theActionEvent
 
-