com.ericsson.tic.vi
Class GUI

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by com.ericsson.tic.vi.GUI
All Implemented Interfaces:
ActionListener, WindowFocusListener, WindowListener, WindowStateListener, EventListener

public class GUI
extends WindowAdapter
implements ActionListener

The top level object which defines the GUI.

Version:
1.0 (2008-12-04)
Author:
Sami Matilainen

Field Summary
private  JCheckBoxMenuItem cbMenuItem
          Menu item.
 ConsolePanel console
          A gui component representing the console.
private  JMenu fileMenu
          Menu.
 JFrame frame
          A JFrame which acts as the main window.
private  JMenu helpMenu
          Menu.
 CardPanel list
          A gui component representing the data list.
private  boolean mainWindow
          If true, this one is the main Window which hosts the main console.
private  JMenuBar menuBar
          Main Menu Bar.
private  JMenuItem menuItem
          Menu Item.
private  Container pane
          The content pane.
 GUI parent
          The parent window of this window.
private  JMenu settingsMenu
          Menu.
private  JSplitPane split1
          Used for layout of the main window.
private  JSplitPane split2
          Used for layout of the main window.
private  JSplitPane split3
          Used for layout of the main window.
private  ToolbarPanel toolbar
          A gui component representing the toolbar.
private  SplitViewPanel view
          A gui component representing the main view.
private  int wid
          A window ID.
 
Constructor Summary
GUI()
          Creates the main GUI window.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Called when an ActionEvent is triggered.
 void windowClosing(WindowEvent e)
          Called by the window closing event.
 void windowStateChanged(WindowEvent e)
          Called by the window state changed event.
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

public GUI parent
The parent window of this window. (null if this is the root window)


frame

public JFrame frame
A JFrame which acts as the main window.


pane

private Container pane
The content pane.


menuBar

private JMenuBar menuBar
Main Menu Bar.


fileMenu

private JMenu fileMenu
Menu.


settingsMenu

private JMenu settingsMenu
Menu.


helpMenu

private JMenu helpMenu
Menu.


menuItem

private JMenuItem menuItem
Menu Item.


cbMenuItem

private JCheckBoxMenuItem cbMenuItem
Menu item.


split1

private JSplitPane split1
Used for layout of the main window.


split2

private JSplitPane split2
Used for layout of the main window.


split3

private JSplitPane split3
Used for layout of the main window.


console

public ConsolePanel console
A gui component representing the console.


toolbar

private ToolbarPanel toolbar
A gui component representing the toolbar.


list

public CardPanel list
A gui component representing the data list.


view

private SplitViewPanel view
A gui component representing the main view.


wid

private int wid
A window ID.


mainWindow

private boolean mainWindow
If true, this one is the main Window which hosts the main console.

Constructor Detail

GUI

public GUI()
Creates the main GUI window. Multiple GUI objects (windows) can be present at the same time.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Called when an ActionEvent is triggered. Handles a multitude of different events in the GUI.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - The ActionEvent which triggered the event.

windowStateChanged

public void windowStateChanged(WindowEvent e)
Called by the window state changed event.

Specified by:
windowStateChanged in interface WindowStateListener
Overrides:
windowStateChanged in class WindowAdapter
Parameters:
e - the WindowEvent

windowClosing

public void windowClosing(WindowEvent e)
Called by the window closing event.

Specified by:
windowClosing in interface WindowListener
Overrides:
windowClosing in class WindowAdapter
Parameters:
e - the WindowEvent