クラス org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame

すべてのメンバ一覧

説明

This class defines a GuiNewControllerFrame

作者:
Nicolas Modrzyk
バージョン:
1.0

GuiNewControllerFrame.java46 行で定義されています。

Public メソッド

 GuiNewControllerFrame (ActionListener listener)
JTextField getIpAddressBox ()
JTextField getPortNumber ()

Private 変数

JTextField portNumber
JTextField ipAddressBox
ActionListener actionListener


コンストラクタとデストラクタ

org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.GuiNewControllerFrame ActionListener  listener  ) 
 

Creates a new GuiNewControllerFrame.java object

引数:
listener that listens to actions
GuiNewControllerFrame.java57 行で定義されています。

参照先 org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.actionListener, org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.ipAddressBox, と org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.portNumber.

00058 { 00059 super(GuiTranslate.get("frame.controller.title")); 00060 this.actionListener = listener; 00061 Toolkit toolkit = Toolkit.getDefaultToolkit(); 00062 Dimension dim = toolkit.getScreenSize(); 00063 int screenHeight = dim.height; 00064 int screenWidth = dim.width; 00065 int frameWidth = 450; 00066 int frameHeight = 50; 00067 this.setBounds((screenWidth - frameWidth) / 2, 00068 (screenHeight - frameHeight) / 2, frameWidth, frameHeight); 00069 this.validate(); 00070 this.setVisible(false); 00071 this.getContentPane().setLayout(new FlowLayout()); 00072 00073 this.getContentPane().add(new JLabel(GuiTranslate.get("frame.controller.host"))); 00074 ipAddressBox = new JTextField(0); 00075 ipAddressBox.setAlignmentX(CENTER_ALIGNMENT); 00076 ipAddressBox.setText("localhost"); 00077 ipAddressBox.addActionListener(actionListener); 00078 this.getContentPane().add(ipAddressBox); 00079 00080 this.getContentPane().add(new JLabel(GuiTranslate.get("frame.controller.port"))); 00081 portNumber = new JTextField(0); 00082 portNumber.setAlignmentX(CENTER_ALIGNMENT); 00083 portNumber.setText("1090"); 00084 portNumber.addActionListener(actionListener); 00085 this.getContentPane().add(portNumber); 00086 00087 JButton optionConfirm = new JButton(GuiTranslate.get("frame.ok")); 00088 optionConfirm.setActionCommand(GuiCommands.COMMAND_ADD_CONTROLLER_APPROVE); 00089 optionConfirm.addActionListener(actionListener); 00090 this.getContentPane().add(optionConfirm); 00091 00092 JButton optionCancel = new JButton(GuiTranslate.get("frame.cancel")); 00093 optionCancel.setActionCommand(GuiCommands.COMMAND_ADD_CONTROLLER_CANCEL); 00094 optionCancel.addActionListener(actionListener); 00095 this.getContentPane().add(optionCancel); 00096 00097 this.setVisible(false); 00098 this.setDefaultCloseOperation(HIDE_ON_CLOSE); 00099 this.validate(); 00100 }


メソッド

JTextField org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.getIpAddressBox  ) 
 

Returns the ipAddressBox value.

戻り値:
Returns the ipAddressBox.
GuiNewControllerFrame.java106 行で定義されています。

参照先 org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.ipAddressBox.

00107 { 00108 return ipAddressBox; 00109 }

JTextField org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.getPortNumber  ) 
 

Returns the portNumber value.

戻り値:
Returns the portNumber.
GuiNewControllerFrame.java115 行で定義されています。

参照先 org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.portNumber.

00116 { 00117 return portNumber; 00118 }


変数

ActionListener org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.actionListener [private]
 

GuiNewControllerFrame.java50 行で定義されています。

参照元 org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.GuiNewControllerFrame().

JTextField org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.ipAddressBox [private]
 

GuiNewControllerFrame.java49 行で定義されています。

参照元 org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.getIpAddressBox(), と org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.GuiNewControllerFrame().

JTextField org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.portNumber [private]
 

GuiNewControllerFrame.java48 行で定義されています。

参照元 org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.getPortNumber(), と org.objectweb.cjdbc.console.gui.frames.GuiNewControllerFrame.GuiNewControllerFrame().


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:21 2004に生成されました。 doxygen 1.3.8