cz.nipax.hippo.pexeso
Class MainDlg

java.lang.Object
  extended by cz.nipax.hippo.pexeso.MainDlg
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class MainDlg
extends java.lang.Object
implements java.awt.event.ActionListener

Holds main window and playground. Takes care about menu, menu callback, creates Playground and PlaygroundComponent.


Field Summary
(package private)  javax.swing.JFrame frame
          The main frame of application.
(package private)  javax.swing.JMenuItem itmAbout
          Main menu item.
(package private)  javax.swing.JMenuItem itmNew
          Main menu item.
(package private)  javax.swing.JMenuItem itmQuit
          Main menu item.
(package private)  Playground pg
          The game state.
(package private)  PlaygroundComponent pgc
          Component for displaying game status.
 
Constructor Summary
MainDlg()
          Constructs and inicializes pg.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Callbacks for menu.
 void createGUI()
          Constructs main dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

javax.swing.JFrame frame
The main frame of application.


itmQuit

javax.swing.JMenuItem itmQuit
Main menu item.


itmAbout

javax.swing.JMenuItem itmAbout
Main menu item.


itmNew

javax.swing.JMenuItem itmNew
Main menu item.


pg

Playground pg
The game state.


pgc

PlaygroundComponent pgc
Component for displaying game status.

Constructor Detail

MainDlg

public MainDlg()
Constructs and inicializes pg.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Callbacks for menu. Handles quit programm, about dialog and new game dialog.

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

createGUI

public void createGUI()
Constructs main dialog. Should be called in gui thread. After construction of dialog shows new game dialog.