net.sourceforge.nite.gui.textviewer
Class NiteKeyListener

java.lang.Object
  extended by java.awt.event.KeyAdapter
      extended by net.sourceforge.nite.gui.textviewer.NiteKeyListener
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener

public class NiteKeyListener
extends java.awt.event.KeyAdapter

Used to trigger actions by key board events

Author:
judyr

Constructor Summary
NiteKeyListener(NiteAction a, java.lang.String s)
           
 
Method Summary
 NiteAction getAction()
           
 java.lang.String getBinding()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void setAction(NiteAction action)
          Sets the action.
 void setBinding(java.lang.String binding)
          Sets the binding.
 
Methods inherited from class java.awt.event.KeyAdapter
keyReleased, keyTyped
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NiteKeyListener

public NiteKeyListener(NiteAction a,
                       java.lang.String s)
Method Detail

getAction

public NiteAction getAction()
Returns:
NiteAction

setAction

public void setAction(NiteAction action)
Sets the action.

Parameters:
action - The action to set

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class java.awt.event.KeyAdapter

getBinding

public java.lang.String getBinding()
Returns:
String

setBinding

public void setBinding(java.lang.String binding)
Sets the binding.

Parameters:
binding - The binding to set