de.unikiel.ipn.htmlform
Class InputController

java.lang.Object
  |
  +--de.unikiel.ipn.htmlform.InputController
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.KeyListener, java.awt.event.WindowListener

public class InputController
extends java.lang.Object
implements java.awt.event.WindowListener, java.awt.event.ActionListener, java.awt.event.KeyListener

Manages user input.


Constructor Summary
InputController()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
static InputController getInstance()
          Returns the instance of this singleton.
 void keyPressed(java.awt.event.KeyEvent e)
          Search for suspicious words that contain a mini-space in the middle.
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void shutdown()
          Exits the program.
 void windowActivated(java.awt.event.WindowEvent event)
           
 void windowClosed(java.awt.event.WindowEvent event)
           
 void windowClosing(java.awt.event.WindowEvent e)
          Calls shutdown().
 void windowDeactivated(java.awt.event.WindowEvent event)
           
 void windowDeiconified(java.awt.event.WindowEvent event)
           
 void windowIconified(java.awt.event.WindowEvent event)
           
 void windowOpened(java.awt.event.WindowEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputController

public InputController()
Method Detail

getInstance

public static InputController getInstance()
Returns the instance of this singleton.

Returns:
always the same instance of an InputController

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Search for suspicious words that contain a mini-space in the middle.

Specified by:
keyPressed in interface java.awt.event.KeyListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

focusGained

public void focusGained(java.awt.event.FocusEvent e)

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Calls shutdown().

Specified by:
windowClosing in interface java.awt.event.WindowListener
See Also:
shutdown()

shutdown

public void shutdown()
Exits the program.


windowClosed

public void windowClosed(java.awt.event.WindowEvent event)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent event)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent event)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent event)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent event)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent event)
Specified by:
windowActivated in interface java.awt.event.WindowListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)

keyTyped

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

keyReleased

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