Spec-Zone .ru
спецификации, руководства, описания, API
|
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.
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
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to