de.guibuilder.framework.event
Class GuiUserEvent

java.lang.Object
  extended by de.guibuilder.framework.event.GuiUserEvent
Direct Known Subclasses:
GuiActionEvent, GuiChangeEvent, GuiCreateEvent, GuiDragEvent, GuiDropEvent, GuiFileDropEvent, GuiKeyEvent, GuiLostFocusEvent, GuiMessageBoxEvent, GuiMouseMovedEvent, GuiMouseOverEvent, GuiPopupEvent, GuiTableEvent, GuiTabSelectionEvent, GuiTreeNodeChangeEvent, GuiTreeNodeSelectionEvent, GuiWindowEvent

public abstract class GuiUserEvent
extends java.lang.Object

Abstrakte Basis-Klasse für alle vom Benutzer ausgelösten Ereignisse. $Id$ $Log$ Revision 1.13 2010/06/26 20:20:03 pkoeker *** empty log message *** Revision 1.12 2010/06/26 18:33:17 pkoeker fileDrop Revision 1.11 2007/10/28 11:03:39 pkoeker Tippfehler

Since:
0.9.3d

Field Summary
static int ACTION
           
 boolean cancel
          Teilt dem Framework mit, die weitere Verarbeitung abzubrechen (z.B. das Fenster nicht zu schließen)
static int CHANGE
           
static int CLICK
           
static int CREATE
           
static int DBL_CLICK
           
static int DRAG_ENTER
           
static int DRAG_EXIT
           
static int DRAG_OVER
           
static int DROP
           
static int FILEDROP
           
static int KEY
           
static int LOST_FOCUS
           
 GuiMember member
          Verweis auf den auslösenden Member; dieser ist null bei WindowEvent und MessageBoxEvent
static int MESSAGE_BOX
           
static int MOUSE_MOVED
           
static int MOUSE_OVER
           
static int NODE_CHANGE
           
static int POPUP_SHOW
           
static int TAB
           
static int TABLE
           
static int TREE
           
 GuiWindow window
          Verweis auf das Fenster, aus welchem heraus das Ereignis ausgelöst wurde.
static int WINDOW
           
 
Constructor Summary
GuiUserEvent(GuiWindow win, GuiMember mem)
           
 
Method Summary
abstract  int getEventType()
          Liefert den jeweiligen Event-Typ; dieses soll Ketten von if (... instanceof ...) else if ...
 GuiMember getMember()
           
 GuiWindow getWindow()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION

public static final int ACTION
See Also:
Constant Field Values

CHANGE

public static final int CHANGE
See Also:
Constant Field Values

CLICK

public static final int CLICK
See Also:
Constant Field Values

DBL_CLICK

public static final int DBL_CLICK
See Also:
Constant Field Values

KEY

public static final int KEY
See Also:
Constant Field Values

LOST_FOCUS

public static final int LOST_FOCUS
See Also:
Constant Field Values

MESSAGE_BOX

public static final int MESSAGE_BOX
See Also:
Constant Field Values

MOUSE_MOVED

public static final int MOUSE_MOVED
See Also:
Constant Field Values

MOUSE_OVER

public static final int MOUSE_OVER
See Also:
Constant Field Values

TABLE

public static final int TABLE
See Also:
Constant Field Values

TAB

public static final int TAB
See Also:
Constant Field Values

TREE

public static final int TREE
See Also:
Constant Field Values

NODE_CHANGE

public static final int NODE_CHANGE
See Also:
Constant Field Values

WINDOW

public static final int WINDOW
See Also:
Constant Field Values

CREATE

public static final int CREATE
See Also:
Constant Field Values

DROP

public static final int DROP
See Also:
Constant Field Values

DRAG_ENTER

public static final int DRAG_ENTER
See Also:
Constant Field Values

DRAG_OVER

public static final int DRAG_OVER
See Also:
Constant Field Values

DRAG_EXIT

public static final int DRAG_EXIT
See Also:
Constant Field Values

POPUP_SHOW

public static final int POPUP_SHOW
See Also:
Constant Field Values

FILEDROP

public static final int FILEDROP
See Also:
Constant Field Values

window

public transient GuiWindow window
Verweis auf das Fenster, aus welchem heraus das Ereignis ausgelöst wurde.


member

public transient GuiMember member
Verweis auf den auslösenden Member; dieser ist null bei WindowEvent und MessageBoxEvent


cancel

public boolean cancel
Teilt dem Framework mit, die weitere Verarbeitung abzubrechen (z.B. das Fenster nicht zu schließen)

Constructor Detail

GuiUserEvent

public GuiUserEvent(GuiWindow win,
                    GuiMember mem)
See Also:
GuiRootPane
Method Detail

getEventType

public abstract int getEventType()
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;
    ...
    }
 }
 


getWindow

public GuiWindow getWindow()

getMember

public GuiMember getMember()