src/org/objectweb/cjdbc/console/gui/popups/LogEditPopUpMenu.java

説明を見る。
00001 00025 package org.objectweb.cjdbc.console.gui.popups; 00026 00027 import java.awt.event.ActionEvent; 00028 00029 import javax.swing.JMenuItem; 00030 import javax.swing.JTextPane; 00031 00032 import org.objectweb.cjdbc.console.gui.CjdbcGui; 00033 import org.objectweb.cjdbc.console.gui.constants.GuiCommands; 00034 00041 public class LogEditPopUpMenu extends AbstractPopUpMenu 00042 { 00043 private JTextPane logConfigTextPane; 00044 private String controllerName; 00045 00053 public LogEditPopUpMenu(CjdbcGui gui, String controllerName, 00054 JTextPane logConfigTextPane) 00055 { 00056 super(gui); 00057 this.logConfigTextPane = logConfigTextPane; 00058 this.controllerName = controllerName; 00059 00060 this.add( 00061 new JMenuItem(GuiCommands.COMMAND_CONTROLLER_UPDATE_LOG_CONFIGURATION)) 00062 .addActionListener(this); 00063 this.add( 00064 new JMenuItem(GuiCommands.COMMAND_CONTROLLER_LOG_CONFIGURATION_DEBUG)) 00065 .addActionListener(this); 00066 this.add( 00067 new JMenuItem(GuiCommands.COMMAND_CONTROLLER_LOG_CONFIGURATION_INFO)) 00068 .addActionListener(this); 00069 } 00070 00074 public void actionPerformed(ActionEvent e) 00075 { 00076 String action = e.getActionCommand(); 00077 if (action.equals(GuiCommands.COMMAND_CONTROLLER_UPDATE_LOG_CONFIGURATION)) 00078 gui.publicActionUpdateControllerLogConfiguration(controllerName, 00079 logConfigTextPane.getText()); 00080 else if (action.equals(GuiCommands.COMMAND_CONTROLLER_LOG_CONFIGURATION_DEBUG)) 00081 gui.publicActionSetLogConfigurationDebug(controllerName, 00082 logConfigTextPane.getText()); 00083 else if (action.equals(GuiCommands.COMMAND_CONTROLLER_LOG_CONFIGURATION_INFO)) 00084 gui.publicActionSetLogConfigurationInfo(controllerName, 00085 logConfigTextPane.getText()); 00086 00087 } 00088 }

CJDBCversion1.0.4に対してTue Oct 12 15:15:58 2004に生成されました。 doxygen 1.3.8