Package docking.action
Class KeyBindingsManager
- java.lang.Object
-
- docking.action.KeyBindingsManager
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
public class KeyBindingsManager extends java.lang.Object implements java.beans.PropertyChangeListener
A class that organizes system key bindings by mapping them to assignedDockingActionIf
s.This class understands reserved system key bindings. For non-reserved key bindings, this class knows how to map a single key binding to multiple actions.
-
-
Constructor Summary
Constructors Constructor Description KeyBindingsManager(DockingTool tool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAction(ComponentProvider optionalProvider, DockingActionIf action)
void
addReservedAction(DockingActionIf action)
void
addReservedAction(DockingActionIf action, javax.swing.KeyStroke ks)
void
dispose()
javax.swing.Action
getDockingKeyAction(javax.swing.KeyStroke keyStroke)
void
propertyChange(java.beans.PropertyChangeEvent evt)
void
removeAction(DockingActionIf action)
-
-
-
Constructor Detail
-
KeyBindingsManager
public KeyBindingsManager(DockingTool tool)
-
-
Method Detail
-
addAction
public void addAction(ComponentProvider optionalProvider, DockingActionIf action)
-
addReservedAction
public void addReservedAction(DockingActionIf action)
-
addReservedAction
public void addReservedAction(DockingActionIf action, javax.swing.KeyStroke ks)
-
removeAction
public void removeAction(DockingActionIf action)
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
getDockingKeyAction
public javax.swing.Action getDockingKeyAction(javax.swing.KeyStroke keyStroke)
-
dispose
public void dispose()
-
-