uk.ac.cisban.rod.gui
Class GuiManager

java.lang.Object
  extended by javax.swing.event.InternalFrameAdapter
      extended by uk.ac.cisban.rod.gui.GuiManager
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ChangeListener, javax.swing.event.InternalFrameListener

public class GuiManager
extends javax.swing.event.InternalFrameAdapter
implements javax.swing.event.ChangeListener

Handles all of the initial setup of the GUI window, and deals with all incoming events from the {@link DataManager).

Author:
Morgan Taschuk

Field Summary
static java.lang.String COMPLETE_CLICK
           
static java.lang.String EXP_CLICK
           
static java.lang.String IMAGE_CLICK
           
static java.lang.String INOC_CLICK
           
protected static GuiManager instance
           
static java.lang.String SPOT_CLICK
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener cl)
          This is a bit of a hack to avoid a ConcurrentModificationException in DataManager.
 void createFrame()
           
 void createFrame(java.lang.String title, javax.swing.JComponent component)
           
 void createFrame(java.lang.String title, javax.swing.JComponent component, java.awt.event.ActionListener listener, java.lang.String buttonTypes)
           
 javax.swing.JDesktopPane getDesktop()
           
static GuiManager getInstance()
           
 java.awt.Frame getTopFrame()
           
 void internalFrameActivated(javax.swing.event.InternalFrameEvent e)
           
protected  void setTopFrame(java.awt.Frame topFrame)
           
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 
Methods inherited from class javax.swing.event.InternalFrameAdapter
internalFrameClosed, internalFrameClosing, internalFrameDeactivated, internalFrameDeiconified, internalFrameIconified, internalFrameOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static GuiManager instance

EXP_CLICK

public static final java.lang.String EXP_CLICK
See Also:
Constant Field Values

INOC_CLICK

public static final java.lang.String INOC_CLICK
See Also:
Constant Field Values

SPOT_CLICK

public static final java.lang.String SPOT_CLICK
See Also:
Constant Field Values

IMAGE_CLICK

public static final java.lang.String IMAGE_CLICK
See Also:
Constant Field Values

COMPLETE_CLICK

public static final java.lang.String COMPLETE_CLICK
See Also:
Constant Field Values
Method Detail

getDesktop

public javax.swing.JDesktopPane getDesktop()

getInstance

public static GuiManager getInstance()

setTopFrame

protected void setTopFrame(java.awt.Frame topFrame)

getTopFrame

public java.awt.Frame getTopFrame()

createFrame

public void createFrame()

createFrame

public void createFrame(java.lang.String title,
                        javax.swing.JComponent component)

createFrame

public void createFrame(java.lang.String title,
                        javax.swing.JComponent component,
                        java.awt.event.ActionListener listener,
                        java.lang.String buttonTypes)

internalFrameActivated

public void internalFrameActivated(javax.swing.event.InternalFrameEvent e)
Specified by:
internalFrameActivated in interface javax.swing.event.InternalFrameListener
Overrides:
internalFrameActivated in class javax.swing.event.InternalFrameAdapter

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener cl)
This is a bit of a hack to avoid a ConcurrentModificationException in DataManager.

Parameters:
cl -

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener


Copyright © 2010. All Rights Reserved.