org.globus.cog.gridshell.ctrl
Class AbstractActionBinder

java.lang.Object
  extended byorg.globus.cog.gridshell.ctrl.AbstractActionBinder
Direct Known Subclasses:
ShellBinder

public abstract class AbstractActionBinder
extends Object


Constructor Summary
AbstractActionBinder()
           
 
Method Summary
protected  void addMapping(JComponent mappedComponent, KeyStroke keyStroke, Object key, Action action)
          Use to save mappings you are overriding and then add command mapping
abstract  void createBindings()
          Should use addMapping method to add mappings to components, then when restoreBindings is called the bindings will be restored to the state that they were before the components were bound
 void restoreBindings()
          Restores the bindings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractActionBinder

public AbstractActionBinder()
Method Detail

addMapping

protected void addMapping(JComponent mappedComponent,
                          KeyStroke keyStroke,
                          Object key,
                          Action action)
Use to save mappings you are overriding and then add command mapping

Parameters:
keyStroke -
key -
action -

restoreBindings

public void restoreBindings()
Restores the bindings


createBindings

public abstract void createBindings()
Should use addMapping method to add mappings to components, then when restoreBindings is called the bindings will be restored to the state that they were before the components were bound