Class 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.

    JavaFX 2.0
    • Method Detail

      • setKeyCombination

        public void setKeyCombination​(KeyCombination keyCombination)
        keyCombination - the KeyCombination
      • getNode

        public Node getNode()
        Returns the Node
        the Node
      • setNode

        public void setNode​(Node node)
        Sets the Node
        node - the Node
        JavaFX 2.2