Package org.ow2.clif.console.lib.gui
Class GuiConsoleImpl
- java.lang.Object
-
- 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.ActionListenerImplementation of a graphic user interface for Clif- Author:
- Julien Buret, Nicolas Droze, Bruno Dillenseger
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLIFAPP_NAMEname of the CLIF Application component in the registrystatic intclifHeightstatic intclifWidth
-
Constructor Summary
Constructors Constructor Description GuiConsoleImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidconfigureAndGetRegistry()Configure context and set the registryjavax.swing.JFramegetFrame()voidinitGui()static voidmain(java.lang.String[] args)voidtoggleAnalysisTool(int i, boolean state)voidtoggleBoxAnalysisTool(int box)Toggle the checkbox with to the given statevoidupdate(java.util.Observable supervisor, java.lang.Object observation)Receive alarms and blade state changes from the supervisorvoidupdateMenus()Enables or disables menu items depending on the current state
-
-
-
Field Detail
-
CLIFAPP_NAME
public static final java.lang.String CLIFAPP_NAME
name of the CLIF Application component in the registry- See Also:
- Constant Field Values
-
clifWidth
public static int clifWidth
-
clifHeight
public static int clifHeight
-
-
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:
actionPerformedin interfacejava.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:
updatein interfacejava.util.Observer
-
toggleBoxAnalysisTool
public void toggleBoxAnalysisTool(int box)
Toggle the checkbox with to the given state- Parameters:
box-
-
getFrame
public javax.swing.JFrame getFrame()
-
-