de.guibuilder.framework.event
Class GuiWindowEvent

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

public final class GuiWindowEvent
extends GuiUserEvent

Fensterereignisse.


Field Summary
static int ACTIVE
          OnActive=
static int CLOSE
          OnClose=
 int eventSubType
          Entweder CLOSE, OPEN oder ACTIVE
static int OPEN
          OnOpen=
 java.awt.event.WindowEvent windowEvent
          awt.WindowEvent
 
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
GuiWindowEvent(GuiWindow win, int type, java.awt.event.WindowEvent e)
          Erzeugt ein Window-Event
 
Method Summary
 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

CLOSE

public static final int CLOSE
OnClose=

See Also:
Constant Field Values

OPEN

public static final int OPEN
OnOpen=

See Also:
Constant Field Values

ACTIVE

public static final int ACTIVE
OnActive=

See Also:
Constant Field Values

eventSubType

public int eventSubType
Entweder CLOSE, OPEN oder ACTIVE


windowEvent

public java.awt.event.WindowEvent windowEvent
awt.WindowEvent

Constructor Detail

GuiWindowEvent

public GuiWindowEvent(GuiWindow win,
                      int type,
                      java.awt.event.WindowEvent e)
Erzeugt ein Window-Event

Parameters:
type - CLOSE, OPEN oder ACTIVE
e - Das awt.WindowEvent
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