de.limdul.cassiopeia.lang.editor.actions
Class LangEditorCloseAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by de.limdul.cassiopeia.lang.editor.actions.LangEditorCloseAction
All Implemented Interfaces:
CassiopeiaListener, GuiCommandListener, ActionListener, WindowListener, Serializable, Cloneable, EventListener, Action

public class LangEditorCloseAction
extends AbstractAction
implements GuiCommandListener, WindowListener

Action & Windowlistener zum schließen des Fensters.

Version:
$Revision: 194 $
Author:
Martin Köhler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
LangEditorCloseAction(LangEditorGui langGui, EventHandler handler)
          Erzeugt die Action
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void parseGuiCommand(GuiCommand command)
          Verarbeitet ein GuiCommand.
 void setEventHandler(EventHandler handler)
          Setzt den Ereignisshandler, der für die Verteilung von Ereignissen zuständig ist.
 void windowActivated(WindowEvent e)
           
 void windowClosed(WindowEvent e)
           
 void windowClosing(WindowEvent e)
           
 void windowDeactivated(WindowEvent e)
           
 void windowDeiconified(WindowEvent e)
           
 void windowIconified(WindowEvent e)
           
 void windowOpened(WindowEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LangEditorCloseAction

public LangEditorCloseAction(LangEditorGui langGui,
                             EventHandler handler)
Erzeugt die Action

Parameters:
langGui - Das Hauptfenster.
handler - Der Ereignishandler.
Method Detail

windowActivated

public void windowActivated(WindowEvent e)
Specified by:
windowActivated in interface WindowListener
See Also:
WindowListener.windowActivated(java.awt.event.WindowEvent)

windowClosed

public void windowClosed(WindowEvent e)
Specified by:
windowClosed in interface WindowListener
See Also:
WindowListener.windowClosed(java.awt.event.WindowEvent)

windowDeactivated

public void windowDeactivated(WindowEvent e)
Specified by:
windowDeactivated in interface WindowListener
See Also:
WindowListener.windowDeactivated(java.awt.event.WindowEvent)

windowDeiconified

public void windowDeiconified(WindowEvent e)
Specified by:
windowDeiconified in interface WindowListener
See Also:
WindowListener.windowDeiconified(java.awt.event.WindowEvent)

windowIconified

public void windowIconified(WindowEvent e)
Specified by:
windowIconified in interface WindowListener
See Also:
WindowListener.windowIconified(java.awt.event.WindowEvent)

windowOpened

public void windowOpened(WindowEvent e)
Specified by:
windowOpened in interface WindowListener
See Also:
WindowListener.windowOpened(java.awt.event.WindowEvent)

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

windowClosing

public void windowClosing(WindowEvent e)
Specified by:
windowClosing in interface WindowListener
See Also:
WindowListener.windowClosing(java.awt.event.WindowEvent)

parseGuiCommand

public void parseGuiCommand(GuiCommand command)
Description copied from interface: GuiCommandListener
Verarbeitet ein GuiCommand.

Specified by:
parseGuiCommand in interface GuiCommandListener
Parameters:
command - Das GuiCommand
See Also:
GuiCommandListener.parseGuiCommand(de.limdul.cassiopeia.control.guicommands.GuiCommand)

setEventHandler

public void setEventHandler(EventHandler handler)
Description copied from interface: CassiopeiaListener
Setzt den Ereignisshandler, der für die Verteilung von Ereignissen zuständig ist. Listener können dort neu generierte Ereignisse hinschicken, die dann an die angeschlossenen Listener verteilt werden.

Specified by:
setEventHandler in interface CassiopeiaListener
Parameters:
handler - Der Ereignisshandler
See Also:
CassiopeiaListener.setEventHandler(de.limdul.cassiopeia.control.EventHandler)