Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu Class Reference

Inheritance diagram for org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ControllerPopUpMenu (CjdbcGui gui, ControllerObject controller)
ControllerObject getController ()
void actionPerformed (ActionEvent e)

Detailed Description

This class defines a ControllerPopUpMenu that listens to mouse events

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 41 of file ControllerPopUpMenu.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.ControllerPopUpMenu CjdbcGui  gui,
ControllerObject  controller
 

Creates a new ControllerPopUpMenu object

Parameters:
gui link to the main gui
controller name of referenced controller

Definition at line 52 of file ControllerPopUpMenu.java.

00053   {
00054     super(gui);
00055     this.controller = controller;
00056     this.controllerName = controller.getName();
00057     this.add(new JMenuItem(GuiCommands.COMMAND_ADD_DRIVER)).addActionListener(
00058         this);
00059     this.add(new JMenuItem(GuiCommands.COMMAND_REFRESH_LOGS))
00060         .addActionListener(this);
00061     this.add(new JMenuItem(GuiCommands.COMMAND_DISPLAY_XML_CONTROLLER))
00062         .addActionListener(this);
00063     this.add(new JMenuItem(GuiCommands.COMMAND_GET_CONTROLLER_INFO))
00064         .addActionListener(this);
00065     this.add(new JMenuItem(GuiCommands.COMMAND_SHUTDOWN_CONTROLLER))
00066         .addActionListener(this);
00067     this.add(new JMenuItem(GuiCommands.COMMAND_CONTROLLER_REPORT))
00068         .addActionListener(this);
00069     this.add(new JMenuItem(GuiCommands.COMMAND_CONTROLLER_LOG_CONFIGURATION))
00070         .addActionListener(this);
00071     this.add(new JMenuItem(GuiCommands.COMMAND_CONTROLLER_REMOVE))
00072         .addActionListener(this);
00073     this.add(new JMenuItem(GuiCommands.COMMAND_CONTROLLER_MONITOR))
00074         .addActionListener(this);
00075   }


Member Function Documentation

void org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.actionPerformed ActionEvent  e  )  [virtual]
 

See also:
java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)

Implements org.objectweb.cjdbc.console.gui.popups.AbstractPopUpMenu.

Definition at line 90 of file ControllerPopUpMenu.java.

References org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionControllerLogConfiguration(), org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionControllerRemove(), org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionControllerReport(), org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionGetControllerInfo(), org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadDriver(), org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadXmlController(), org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRefreshLogs(), org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionShutdownController(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionStartMonitor().

00091   {
00092     String action = e.getActionCommand();
00093     if (action.equals(GuiCommands.COMMAND_ADD_DRIVER))
00094     {
00095       gui.publicActionLoadDriver(controllerName);
00096     }
00097     else if (action.equals(GuiCommands.COMMAND_REFRESH_LOGS))
00098     {
00099       gui.publicActionRefreshLogs(controllerName);
00100     }
00101     else if (action.equals(GuiCommands.COMMAND_DISPLAY_XML_CONTROLLER))
00102     {
00103       gui.publicActionLoadXmlController(controllerName);
00104     }
00105     else if (action.equals(GuiCommands.COMMAND_GET_CONTROLLER_INFO))
00106     {
00107       gui.publicActionGetControllerInfo(controllerName);
00108     }
00109     else if (action.equals(GuiCommands.COMMAND_SHUTDOWN_CONTROLLER))
00110     {
00111       gui.publicActionShutdownController(controllerName);
00112     }
00113     else if (action.equals(GuiCommands.COMMAND_CONTROLLER_REPORT))
00114     {
00115       gui.publicActionControllerReport(controllerName);
00116     }
00117     else if (action.equals(GuiCommands.COMMAND_CONTROLLER_LOG_CONFIGURATION))
00118     {
00119       gui.publicActionControllerLogConfiguration(controllerName);
00120     }
00121     else if (action.equals(GuiCommands.COMMAND_CONTROLLER_REMOVE))
00122     {
00123       gui.publicActionControllerRemove(controllerName);
00124     }
00125     else if (action.equals(GuiCommands.COMMAND_CONTROLLER_MONITOR))
00126     {
00127       gui.publicActionStartMonitor(controllerName, true, false, false);
00128     }
00129 
00130   }

ControllerObject org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.getController  ) 
 

Returns the controller value.

Returns:
Returns the controller.

Definition at line 82 of file ControllerPopUpMenu.java.

00083   {
00084     return controller;
00085   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:02:34 2005 for C-JDBC by  doxygen 1.3.9.1