de.guibuilder.framework.event
Class GuiTableEvent

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

public final class GuiTableEvent
extends GuiUserEvent

Der Benutzer hat ein Ereignis in Zusammenhang mit einer Tabelle ausgelöst.

Anhand von eventType ist ersichtlich, welches Ereignis eingetreten ist: HEADER_CLICK, DBL_CLICK oder ROW_CLICK


Nested Class Summary
static class GuiTableEvent.EventType
           
 
Field Summary
 GuiTableEvent.EventType eventSubType
           
 int index
          Wenn -2, dann kein Index; ansonsten der angeklickte Zeilen- oder Spalten-Nummer.
 GuiTable table
           
 GuiTableRow value
          Die angeklickte Tabellen-Zeile bei DBL_CLICK und ROW_CLICK
 
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
GuiTableEvent(GuiWindow win, GuiTable tbl, GuiTableEvent.EventType type)
           
 
Method Summary
 int getEventType()
          Liefert den jeweiligen Event-Typ; dieses soll Ketten von if (... instanceof ...) else if ...
 GuiTable getTable()
           
 
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

eventSubType

public GuiTableEvent.EventType eventSubType

table

public transient GuiTable table

index

public int index
Wenn -2, dann kein Index; ansonsten der angeklickte Zeilen- oder Spalten-Nummer.


value

public GuiTableRow value
Die angeklickte Tabellen-Zeile bei DBL_CLICK und ROW_CLICK

Constructor Detail

GuiTableEvent

public GuiTableEvent(GuiWindow win,
                     GuiTable tbl,
                     GuiTableEvent.EventType type)
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

getTable

public GuiTable getTable()