de.guibuilder.framework.event
Class GuiKeyEvent

java.lang.Object
  extended by de.guibuilder.framework.event.GuiUserEvent
      extended by de.guibuilder.framework.event.GuiKeyEvent

public final class GuiKeyEvent
extends GuiUserEvent

Es ist ein Key-Typed-Ereignis aufgetreten.

Since:
0.9.3g
Author:
Peter Köker

Field Summary
 GuiComponent component
          Die Komponente, die das Ereignis ausgelöst hat..
 java.awt.event.KeyEvent keyEvent
          awt.KeyEvent
 java.lang.Object value
          Der Inhalt der Komponente.
 
Fields inherited from class de.guibuilder.framework.event.GuiUserEvent
ACTION, cancel, CHANGE, CLICK, CREATE, DBL_CLICK, DRAG_ENTER, DRAG_EXIT, DRAG_OVER, DROP, FILEDROP, KEY, LOST_FOCUS, member, MESSAGE_BOX, MOUSE_MOVED, MOUSE_OVER, NODE_CHANGE, POPUP_SHOW, TAB, TABLE, TREE, window, WINDOW
 
Constructor Summary
GuiKeyEvent(GuiWindow win, GuiComponent comp, java.lang.Object val, java.awt.event.KeyEvent e)
           
 
Method Summary
 GuiComponent getComponent()
           
 int getEventType()
          Liefert den jeweiligen Event-Typ; dieses soll Ketten von if (... instanceof ...) else if ...
 
Methods inherited from class de.guibuilder.framework.event.GuiUserEvent
getMember, getWindow
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

public transient GuiComponent component
Die Komponente, die das Ereignis ausgelöst hat..


value

public java.lang.Object value
Der Inhalt der Komponente.

See Also:
GuiComponent.getDataType()

keyEvent

public java.awt.event.KeyEvent keyEvent
awt.KeyEvent

Constructor Detail

GuiKeyEvent

public GuiKeyEvent(GuiWindow win,
                   GuiComponent comp,
                   java.lang.Object val,
                   java.awt.event.KeyEvent e)
Method Detail

getEventType

public final int getEventType()
Description copied from class: GuiUserEvent
Liefert den jeweiligen Event-Typ; dieses soll Ketten von if (... instanceof ...) else if ... vermeiden.


 public final void userActionPerformed(GuiUserEvent event) {
    switch (event.getEventType() ) {
    case GuiUserEvent.ACTION:
       GuiActionEvent action = (GuiActionEvent)event;
       ...
       break;
    case GuiUserEvent.CHANGE:
       GuiChangeEvent change = (GuiChangeEvent)event;
       ...
       break;
    ...
    }
 }
 

Specified by:
getEventType in class GuiUserEvent

getComponent

public GuiComponent getComponent()