nankin.zheng.gatem.controller
Interface KeyController

All Known Implementing Classes:
KeyControllerImplAsJPanelKeyListener

public interface KeyController

KeyController gets keyboard input and sends it to its listener.

The implementation of this interface depends on different java application platforms. For example, on the swing platform, it should be implemented as a KeyListener.


Method Summary
 void registerController(Controller controller)
          Register a Controller object as its listener.
 

Method Detail

registerController

public void registerController(Controller controller)
Register a Controller object as its listener.

Parameters:
controller - Controller object that wants to get key events.