public class PropertiesShortcuts
extends java.lang.Object
PropertiesShortcuts
class represents a persistent set of shortcut.Constructor and Description |
---|
PropertiesShortcuts() |
Modifier and Type | Method and Description |
---|---|
void |
bindKeyStrokes(javax.swing.InputMap inputMap,
java.lang.String... keys) |
void |
bindKeyStrokes(javax.swing.JMenuBar menu) |
void |
bindKeyStrokes(javax.swing.JMenuItem item) |
static PropertiesShortcuts |
getEditorShortcuts() |
javax.swing.KeyStroke |
getKeyStroke(java.lang.String key) |
static PropertiesShortcuts |
getMainMenuShortcuts() |
boolean |
isEmpty() |
void |
loadFromClasspath(java.lang.String propertiesFile) |
void |
loadFromFile(java.io.File file) |
public static PropertiesShortcuts getMainMenuShortcuts()
public static PropertiesShortcuts getEditorShortcuts()
public void loadFromClasspath(java.lang.String propertiesFile) throws java.io.IOException
java.io.IOException
public void loadFromFile(java.io.File file) throws java.io.IOException
java.io.IOException
public javax.swing.KeyStroke getKeyStroke(java.lang.String key)
public void bindKeyStrokes(javax.swing.JMenuBar menu)
public void bindKeyStrokes(javax.swing.JMenuItem item)
public void bindKeyStrokes(javax.swing.InputMap inputMap, java.lang.String... keys)
public boolean isEmpty()