Class ShortcutsManager
- java.lang.Object
-
- net.sf.gridarta.gui.dialog.shortcuts.ShortcutsManager
-
- All Implemented Interfaces:
java.lang.Iterable<javax.swing.Action>
public class ShortcutsManager extends java.lang.Object implements java.lang.Iterable<javax.swing.Action>Manager for shortcuts of allActionsin anActionBuilderinstance.
-
-
Constructor Summary
Constructors Constructor Description ShortcutsManager(@NotNull net.sf.japi.swing.action.ActionBuilder actionBuilder)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<javax.swing.Action>iterator()Returns allActions.voidloadShortcuts()Restores all shortcuts from the preferences.voidrevertAll()Reverts all shortcuts to their default values.voidsaveShortcuts()Saves all shortcuts to the preferences.voidshowShortcutsDialog(@NotNull java.awt.Component parentComponent)Displays a dialog to edit shortcuts.
-
-
-
Method Detail
-
loadShortcuts
public void loadShortcuts()
Restores all shortcuts from the preferences.
-
saveShortcuts
public void saveShortcuts()
Saves all shortcuts to the preferences.
-
showShortcutsDialog
public void showShortcutsDialog(@NotNull @NotNull java.awt.Component parentComponent)Displays a dialog to edit shortcuts.- Parameters:
parentComponent- the parent component for the dialog
-
revertAll
public void revertAll()
Reverts all shortcuts to their default values.
-
iterator
public java.util.Iterator<javax.swing.Action> iterator()
Returns allActions.- Specified by:
iteratorin interfacejava.lang.Iterable<javax.swing.Action>- Returns:
- an iterator returning the actions
-
-