org.ow2.clif.console.lib.gui
Class GuiConsoleImpl

java.lang.Object
  extended by org.ow2.clif.console.lib.gui.GuiConsoleImpl
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.util.Observer

public class GuiConsoleImpl
extends java.lang.Object
implements java.util.Observer, java.awt.event.ActionListener

Implementation of a graphic user interface for Clif

Author:
Julien Buret, Nicolas Droze, Bruno Dillenseger

Field Summary
static int clifHeight
           
static int clifWidth
           
 
Constructor Summary
GuiConsoleImpl()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void configureAndGetRegistry()
          Configure context and set the registry
 javax.swing.JFrame getFrame()
           
 void initGui()
           
static void main(java.lang.String[] args)
           
 void toggleAnalysisTool(int i, boolean state)
           
 void toggleBoxAnalysisTool(int box)
          Toggle the checkbox with to the given state
 void update(java.util.Observable supervisor, java.lang.Object observation)
          Receive alarms and blade state changes from the supervisor
 void updateMenus()
          Enables or disables menu items depending on the current state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clifWidth

public static int clifWidth

clifHeight

public static int clifHeight
Constructor Detail

GuiConsoleImpl

public GuiConsoleImpl()
Method Detail

main

public static void main(java.lang.String[] args)

initGui

public void initGui()

configureAndGetRegistry

public void configureAndGetRegistry()
Configure context and set the registry


updateMenus

public void updateMenus()
Enables or disables menu items depending on the current state


actionPerformed

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

toggleAnalysisTool

public void toggleAnalysisTool(int i,
                               boolean state)

update

public void update(java.util.Observable supervisor,
                   java.lang.Object observation)
Receive alarms and blade state changes from the supervisor

Specified by:
update in interface java.util.Observer

toggleBoxAnalysisTool

public void toggleBoxAnalysisTool(int box)
Toggle the checkbox with to the given state

Parameters:
box -

getFrame

public javax.swing.JFrame getFrame()