Top Inners Fields Constructors Methods
com.sun.javafx.scene

public final Class KeyboardShortcutsHandler

extends BasicEventDispatcher
Class Inheritance
Imports
java.util.AbstractMap, .AbstractSet, .ArrayList, .ConcurrentModificationException, .HashMap, .Iterator, .Map, .Set, com.sun.javafx.scene.traversal.TraversalMethod, .Direction, javafx.collections.ObservableList, .ObservableMap, javafx.event.Event, javafx.scene.Node, javafx.scene.input.KeyCode, .KeyCombination, .KeyEvent, .Mnemonic, com.sun.javafx.PlatformUtil, com.sun.javafx.collections.ObservableListWrapper, .ObservableMapWrapper, com.sun.javafx.event.BasicEventDispatcher

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private ObservableMap<KeyCombination, Runnable>
private KeyboardShortcutsHandler.CopyOnWriteMap<KeyCombination, Runnable>
private ObservableMap<KeyCombination, ObservableList<Mnemonic>>
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public Event
public Event
public ObservableMap<KeyCombination, Runnable>
public ObservableMap<KeyCombination, ObservableList<Mnemonic>>
public boolean
private void
private void
private void
public void
public void
public void
private void
traverse(Event event, Node node, Direction dir)

Inherited from com.sun.javafx.event.BasicEventDispatcher:
dispatchEventgetNextDispatchergetPreviousDispatcherinsertNextDispatcher

Field Detail

acceleratorsback to summary
private ObservableMap<KeyCombination, Runnable> accelerators
acceleratorsBackingMapback to summary
private KeyboardShortcutsHandler.CopyOnWriteMap<KeyCombination, Runnable> acceleratorsBackingMap
mnemonicsback to summary
private ObservableMap<KeyCombination, ObservableList<Mnemonic>> mnemonics
mnemonicsDisplayEnabledback to summary
private boolean mnemonicsDisplayEnabled

Constructor Detail

KeyboardShortcutsHandlerback to summary
public KeyboardShortcutsHandler()

Method Detail

addMnemonicback to summary
public void addMnemonic(Mnemonic m)
clearNodeMnemonicsback to summary
public void clearNodeMnemonics(Node node)
dispatchBubblingEventback to summary
public Event dispatchBubblingEvent(Event event)

Overrides com.sun.javafx.event.BasicEventDispatcher.dispatchBubblingEvent.

Annotations
@Override
dispatchCapturingEventback to summary
public Event dispatchCapturingEvent(Event event)

Overrides com.sun.javafx.event.BasicEventDispatcher.dispatchCapturingEvent.

Annotations
@Override
getAcceleratorsback to summary
public ObservableMap<KeyCombination, Runnable> getAccelerators()
getMnemonicsback to summary
public ObservableMap<KeyCombination, ObservableList<Mnemonic>> getMnemonics()
isMnemonicsDisplayEnabledback to summary
public boolean isMnemonicsDisplayEnabled()
processAcceleratorsback to summary
private void processAccelerators(KeyEvent event)
processMnemonicsback to summary
private void processMnemonics(final KeyEvent event)
processMnemonicsKeyDisplayback to summary
private void processMnemonicsKeyDisplay()
processTraversalback to summary
public void processTraversal(Event event)
removeMnemonicback to summary
public void removeMnemonic(Mnemonic m)
setMnemonicsDisplayEnabledback to summary
public void setMnemonicsDisplayEnabled(boolean b)
traverseback to summary
private void traverse(Event event, Node node, Direction dir)
com.sun.javafx.scene back to summary

private Class KeyboardShortcutsHandler.CopyOnWriteMap<K, V>

extends AbstractMap<K, V>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Map<K, V>
private boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Set<Map.Entry<K, V>>
entrySet()

Implements abstract java.util.AbstractMap.entrySet.

Implements java.util.Map.entrySet.

Returns a Set view of the mappings contained in this map.

public void
lock()

public V
put(K
key with which the specified value is to be associated
key
,
V
value to be associated with the specified key
value
)

Overrides java.util.AbstractMap.put.

Implements java.util.Map.put.

Associates the specified value with the specified key in this map (optional operation).

public void
Inherited from java.util.AbstractMap:
clearclonecontainsKeycontainsValueequalsgethashCodeisEmptykeySetputAllremovesizetoStringvalues

Field Detail

backingMapback to summary
private Map<K, V> backingMap
lockback to summary
private boolean lock

Constructor Detail

CopyOnWriteMapback to summary
private CopyOnWriteMap()

Method Detail

entrySetback to summary
public Set<Map.Entry<K, V>> entrySet()

Implements abstract java.util.AbstractMap.entrySet.

Implements java.util.Map.entrySet.

Doc from java.util.Map.entrySet.

Returns a Set view of the mappings contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation, or through the setValue operation on a map entry returned by the iterator) the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.

Returns:Set<Map.Entry<K, V>>

a set view of the mappings contained in this map

Annotations
@Override
lockback to summary
public void lock()
putback to summary
public V put(K key, V value)

Overrides java.util.AbstractMap.put.

Implements java.util.Map.put.

Doc from java.util.AbstractMap.put.

Associates the specified value with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value. (A map m is said to contain a mapping for a key k if and only if m.containsKey(k) would return true.)

Parameters
key:K

Doc from java.util.Map.put.

key with which the specified value is to be associated

value:V

Doc from java.util.Map.put.

value to be associated with the specified key

Returns:V

Doc from java.util.Map.put.

the previous value associated with key, or null if there was no mapping for key. (A null return can also indicate that the map previously associated null with key, if the implementation supports null values.)

Annotations
@Override
unlockback to summary
public void unlock()