de.limdul.cassiopeia.gui.dialogs
Class StandardDialogListener

java.lang.Object
  extended by de.limdul.cassiopeia.gui.dialogs.StandardDialogListener
All Implemented Interfaces:
GuiConstants, ActionListener, EventListener

public class StandardDialogListener
extends Object
implements ActionListener, GuiConstants

Actionlistener für Standarddialoge. Reagiert auf Standardbuttons und setzt darauf den closeValue des Standarddialogs.

Version:
$Revision: 208 $
Author:
Martin Köhler

Field Summary
 
Fields inherited from interface de.limdul.cassiopeia.gui.dialogs.GuiConstants
CANCEL, CANCEL_STRING, FINISHED, FINISHED_STRING, NEXT, NEXT_STRING, NO, NO_STRING, OK, OK_STRING, YES, YES_STRING
 
Constructor Summary
StandardDialogListener(StandardDialog standardDialog)
          Erzeugt einen neuen Actionlistener.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Reagiert auf Events der Dialoge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardDialogListener

public StandardDialogListener(StandardDialog standardDialog)
Erzeugt einen neuen Actionlistener.

Parameters:
standardDialog - Für welchen Dialog er zuständig ist.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Reagiert auf Events der Dialoge. Je nach event wird der closeValue der Dialog entsprechend gesetzt und der Dialog geschlossen. Events, die dieser Listener nicht verarbeiten kann, werden ignoriert.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - Das Ereignis, auf das reagiert wird.
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)