de.guibuilder.framework.event
Class GuiMessageBoxEvent

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

public final class GuiMessageBoxEvent
extends GuiUserEvent

Von einer MessageBox ausgelöster Event.
Der Controller wird von dem Fenster übernommen, welches der Parent der MessageBox ist.

Since:
0.9.3e
See Also:
GuiRootPane.obj_MessageBoxEvent(de.guibuilder.framework.GuiWindow, java.lang.String, java.lang.String)

Field Summary
 java.lang.String actionCommand
          Das ActionCommand des vom User betätigten Buttons aus der MessageBox.
 java.lang.String name
          Name der MessageBox
 
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
GuiMessageBoxEvent(GuiWindow win, java.lang.String msgName, java.lang.String cmd)
          Erzeugt einen MessageBoxEvent
 
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

name

public java.lang.String name
Name der MessageBox


actionCommand

public java.lang.String actionCommand
Das ActionCommand des vom User betätigten Buttons aus der MessageBox.

Constructor Detail

GuiMessageBoxEvent

public GuiMessageBoxEvent(GuiWindow win,
                          java.lang.String msgName,
                          java.lang.String cmd)
Erzeugt einen MessageBoxEvent

Parameters:
win - Das ParentWindow der MessageBox
msgName - Name der MessageBox
cmd - ActionCommand des auslösenden Buttons.
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