fi.hut.tml.xsmiles.gui.ftv
Class GuiHandler

java.lang.Object
  extended byjava.awt.event.KeyAdapter
      extended byfi.hut.tml.xsmiles.gui.ftv.GuiHandler
All Implemented Interfaces:
java.util.EventListener, FakeRemoteListener, java.awt.event.KeyListener

public class GuiHandler
extends java.awt.event.KeyAdapter
implements FakeRemoteListener

GuiHandler is the main KeyEvent handler for the gui. It is activated in the normal state, (no menus open & no textfield activated)

Version:
0.1
Author:
Juha Vierinen

Constructor Summary
GuiHandler(FtvGUI gui)
          We need the gui for operating with gui widgets from withing GuiHandller  @param gui The gui
 
Method Summary
 void keyPressed(java.awt.Component c, int i)
           
 void keyPressed(java.awt.event.KeyEvent e)
          When a key is pressed, we check what we should do in the normal state of the browser.
 
Methods inherited from class java.awt.event.KeyAdapter
keyReleased, keyTyped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiHandler

public GuiHandler(FtvGUI gui)
We need the gui for operating with gui widgets from withing GuiHandller  @param gui The gui

Method Detail

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
When a key is pressed, we check what we should do in the normal state of the browser. Move highlight up or down, launch menus, follow a link or set textfield active. NOTE: The remotecontrol is simulated by keyboard keys in this version. Refer to the MHP specification for info on remote control key-events.

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
e - info abt the event

keyPressed

public void keyPressed(java.awt.Component c,
                       int i)
Specified by:
keyPressed in interface FakeRemoteListener


X-Smiles 1.2