public class ShortcutsManager
extends java.lang.Object
implements java.lang.Iterable<javax.swing.Action>
Actions
in an ActionBuilder
instance.Constructor and Description |
---|
ShortcutsManager(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<javax.swing.Action> |
iterator()
Returns all
Actions . |
void |
loadShortcuts()
Restores all shortcuts from the preferences.
|
void |
revertAll()
Reverts all shortcuts to their default values.
|
void |
saveShortcuts()
Saves all shortcuts to the preferences.
|
void |
showShortcutsDialog(@NotNull java.awt.Component parentComponent)
Displays a dialog to edit shortcuts.
|
public ShortcutsManager(@NotNull @NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder)
actionBuilder
- the action builder to managepublic void loadShortcuts()
public void saveShortcuts()
public void showShortcutsDialog(@NotNull @NotNull java.awt.Component parentComponent)
parentComponent
- the parent component for the dialogpublic void revertAll()
public java.util.Iterator<javax.swing.Action> iterator()
Actions
.iterator
in interface java.lang.Iterable<javax.swing.Action>