|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Utils.KeybController
Classe per gestire eventi di tastiera grazie a un controllo invisibile (KeybComponent) posto in un dato container. Gli eventi invieranno poi una chiamata alla funzione updateKeyState di un oggetto che implementi l'interfaccia KeybHandler
KeybHandler,
KeybComponent| Field Summary | |
private java.awt.Container |
m_container
Il Container su cui porre il KeybComponent |
private KeybHandler |
m_Handler
L'handler a cui notificare gli eventi di tastiera |
private KeybComponent |
m_KeybComponent
Il KeybComponent che viene creato |
| Constructor Summary | |
KeybController(java.awt.Container p_container,
KeybHandler p_Handler)
Crea un nuovo oggetto KeybController |
|
| Method Summary | |
void |
dispose()
Distrugge il KeybController rimuovendo i Listener |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
Handler di eventi AWT Richiede il focus al KeybComponent dopo averlo perso |
void |
keyPressed(java.awt.event.KeyEvent e)
Handler di eventi AWT Richiama la updateKeyState per aggiornare lo stato dell'Handler |
void |
keyReleased(java.awt.event.KeyEvent e)
Handler di eventi AWT Richiama la updateKeyState per aggiornare lo stato dell'Handler |
void |
keyTyped(java.awt.event.KeyEvent e)
Handler di eventi AWT Richiama la updateKeyState per aggiornare lo stato dell'Handler |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.awt.Container m_container
private KeybComponent m_KeybComponent
private KeybHandler m_Handler
| Constructor Detail |
public KeybController(java.awt.Container p_container,
KeybHandler p_Handler)
p_container - Il container su cui porre il controllo KeybLabelp_Handler - L'oggetto KeybHandler che gestisce gli eventi di tastieraKeybHandler,
KeybComponent| Method Detail |
public void dispose()
public void keyPressed(java.awt.event.KeyEvent e)
public void keyReleased(java.awt.event.KeyEvent e)
public void keyTyped(java.awt.event.KeyEvent e)
public void focusGained(java.awt.event.FocusEvent e)
public void focusLost(java.awt.event.FocusEvent e)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||