Class WahlController

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by WahlController
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.util.EventListener

public class WahlController
extends java.awt.event.WindowAdapter
implements java.awt.event.ActionListener

Controller-Grundstruktur, installiert und deinstalliert Controller, als Ereignisverarbeiter.


Field Summary
private  WahlModel model
          Mathematisches Modell, enthaelt Funktionalitaet des Problems.
private  WahlView view
          Zum Controller gehoeriger View.
 
Constructor Summary
WahlController(WahlModel m, WahlView v)
          Konstruktor, initialisiert Model und View.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          ActionListener, Ereignisauswertung fuer Button Stimmabgabe.
 void release()
          Freigabe der Controllers, setzt Model und View zurück.
 void windowClosing(java.awt.event.WindowEvent we)
          WindowAdapter, Schliessen des Fensters.
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

private WahlModel model
Mathematisches Modell, enthaelt Funktionalitaet des Problems.


view

private WahlView view
Zum Controller gehoeriger View.

Constructor Detail

WahlController

public WahlController(WahlModel m,
                      WahlView v)
Konstruktor, initialisiert Model und View.

Parameters:
m - Mathematisches Modell
v - zum Controller gehoeriger View
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
ActionListener, Ereignisauswertung fuer Button Stimmabgabe.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent we)
WindowAdapter, Schliessen des Fensters.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class java.awt.event.WindowAdapter

release

public void release()
Freigabe der Controllers, setzt Model und View zurück.