com.sas.visuals.adapters
Class BaseKeyAdapter

com.sas.visuals.adapters.BaseKeyAdapter
All Implemented Interfaces:
java.awt.event.ContainerListener, java.awt.event.KeyListener, java.util.EventListener

public class BaseKeyAdapter
implements java.awt.event.KeyListener, java.awt.event.ContainerListener

BaseKeyAdaptor is an abstract helper class which listens for key events on a component/container and any child components. Subclasses may override the KeyListener methods and provide custom functionality.


Field Summary
protected  java.awt.Container container
           
 
Constructor Summary
BaseKeyAdapter(java.awt.Container container)
           
 
Method Summary
protected  void addListeners(java.awt.Container container)
           
 void componentAdded(java.awt.event.ContainerEvent event)
           
 void componentRemoved(java.awt.event.ContainerEvent event)
           
 void keyPressed(java.awt.event.KeyEvent event)
           
 void keyReleased(java.awt.event.KeyEvent event)
           
 void keyTyped(java.awt.event.KeyEvent event)
           
protected  void removeListeners(java.awt.Container container)
           
 

Field Detail

container

protected java.awt.Container container
Constructor Detail

BaseKeyAdapter

public BaseKeyAdapter(java.awt.Container container)
Method Detail

addListeners

protected void addListeners(java.awt.Container container)

removeListeners

protected void removeListeners(java.awt.Container container)

keyTyped

public void keyTyped(java.awt.event.KeyEvent event)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

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

keyReleased

public void keyReleased(java.awt.event.KeyEvent event)
Specified by:
keyReleased in interface java.awt.event.KeyListener

componentAdded

public void componentAdded(java.awt.event.ContainerEvent event)
Specified by:
componentAdded in interface java.awt.event.ContainerListener

componentRemoved

public void componentRemoved(java.awt.event.ContainerEvent event)
Specified by:
componentRemoved in interface java.awt.event.ContainerListener



Copyright © 2009 SAS Institute Inc. All Rights Reserved.