de.guibuilder.framework.event
Class GuiLostFocusEvent

java.lang.Object
  |
  +--de.guibuilder.framework.event.GuiUserEvent
        |
        +--de.guibuilder.framework.event.GuiLostFocusEvent

public final class GuiLostFocusEvent
extends GuiUserEvent

Es ist ein Lost-Focus-Ereignis aufgetreten.

Since:
0.9.3f
Author:
Peter Köker

Field Summary
 boolean bValue
           
 GuiElement component
          Die Komponente, die das Ereignis ausgelöst hat..
 java.awt.event.FocusEvent focusEvent
           
 java.lang.Object value
          Der Inhalt der Komponente.
 
Fields inherited from class de.guibuilder.framework.event.GuiUserEvent
ACTION, CHANGE, DBL_CLICK, KEY, LOST_FOCUS, member, MESSAGE_BOX, MOUSE_MOVED, MOUSE_OVER, NODE_CHANGE, TAB, TABLE, TREE, window, WINDOW
 
Constructor Summary
GuiLostFocusEvent(GuiWindow win, GuiElement comp, java.lang.Object val, java.awt.event.FocusEvent e)
           
 
Method Summary
 int getEventType()
          Liefert den jeweiligen Event-Typ; dieses soll Ketten von if (... instanceof ...) else if ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

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


value

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

See Also:
GuiComponent.getDataType()

bValue

public boolean bValue

focusEvent

public java.awt.event.FocusEvent focusEvent
Constructor Detail

GuiLostFocusEvent

public GuiLostFocusEvent(GuiWindow win,
                         GuiElement comp,
                         java.lang.Object val,
                         java.awt.event.FocusEvent 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