class KeybindingSetImpl extends KeybindingSet
KeybindingSet.Category
Constructor and Description |
---|
KeybindingSetImpl(java.util.Map<javax.swing.KeyStroke,java.lang.String> initial,
KeybindingSet.Category category,
java.io.File saveDst) |
Modifier and Type | Method and Description |
---|---|
java.util.LinkedHashMap<javax.swing.KeyStroke,java.lang.String> |
getBindings()
Provides current keybinding mappings.
|
KeybindingSet.Category |
getCategory()
Provides the portion of the UI to which the bindings belong.
|
(package private) java.io.File |
getCustomFile()
Provides the file where custom bindings are to be saved.
|
(package private) void |
invalidate()
Invalidates reference to custom output, preventing further writes.
|
(package private) boolean |
isWritable()
Provides if the keybindings can be written when changed or not.
|
void |
setBindings(java.util.Map<javax.swing.KeyStroke,java.lang.String> newBindings)
Resets the bindings and notifies the observer's listeners if they've
changed.
|
KeybindingSetImpl(java.util.Map<javax.swing.KeyStroke,java.lang.String> initial, KeybindingSet.Category category, java.io.File saveDst)
public java.util.LinkedHashMap<javax.swing.KeyStroke,java.lang.String> getBindings()
getBindings
in class KeybindingSet
public void setBindings(java.util.Map<javax.swing.KeyStroke,java.lang.String> newBindings)
setBindings
in class KeybindingSet
newBindings
- new keybindings to be heldpublic KeybindingSet.Category getCategory()
getCategory
in class KeybindingSet
boolean isWritable()
java.io.File getCustomFile()
void invalidate()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.