OSDN Git Service

クラス名変更
authoryukihane <yukihane.feather@gmail.com>
Wed, 7 Sep 2011 02:24:35 +0000 (11:24 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 9 Sep 2011 11:44:57 +0000 (20:44 +0900)
frontend/src/yukihane/inqubus/gui/ConfigDialog.java
frontend/src/yukihane/inqubus/gui/FileChooseActionListener.java [moved from frontend/src/yukihane/inqubus/gui/FileChooseAction.java with 84% similarity]
frontend/src/yukihane/inqubus/gui/MainFrame.java

index 4d8da7c..6acaf89 100644 (file)
@@ -216,7 +216,7 @@ public class ConfigDialog extends JDialog {
         lblOutputFileNamePattern.setText("ファイル名規則");
 
         btnOutputDir.addActionListener(
-                new FileChooseAction(ConfigDialog.this, JFileChooser.DIRECTORIES_ONLY, fldOutputDir));
+                new FileChooseActionListener(ConfigDialog.this, JFileChooser.DIRECTORIES_ONLY, fldOutputDir));
 
         cbOutputEnable.setText("変換");
 
@@ -400,7 +400,7 @@ public class ConfigDialog extends JDialog {
 
         final JButton btnFontPath = new JButton("...");
         btnFontPath.addActionListener(
-                new FileChooseAction(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFontPath));
+                new FileChooseActionListener(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFontPath));
 
         lblFontIndex.setText("フォント番号");
 
@@ -486,11 +486,11 @@ public class ConfigDialog extends JDialog {
 
         final JButton btnFfmpegPath = new JButton("...");
         btnFfmpegPath.addActionListener(
-                new FileChooseAction(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFfmpegPath));
+                new FileChooseActionListener(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFfmpegPath));
 
         final JButton btnFfmpegDllPath = new JButton("...");
         btnFfmpegDllPath.addActionListener(
-                new FileChooseAction(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFfmpegDllPath));
+                new FileChooseActionListener(ConfigDialog.this, JFileChooser.FILES_ONLY, fldFfmpegDllPath));
 
         GroupLayout gl_jPanel10 = new GroupLayout(pnlFfmpegBinPath);
         pnlFfmpegBinPath.setLayout(gl_jPanel10);
@@ -674,7 +674,7 @@ public class ConfigDialog extends JDialog {
         final JLabel lblSystemTempDir = new JLabel("作業フォルダ");
         final JButton btnSystemTempDir = new JButton("...");
         btnSystemTempDir.addActionListener(
-                new FileChooseAction(ConfigDialog.this, JFileChooser.DIRECTORIES_ONLY, fldSystemTempDir));
+                new FileChooseActionListener(ConfigDialog.this, JFileChooser.DIRECTORIES_ONLY, fldSystemTempDir));
 
         mdlSystemThreadDownload.setMinimum(1);
         final JSpinner fldSystemThreadDownload = new JSpinner(mdlSystemThreadDownload);
@@ -1085,7 +1085,7 @@ class DownloadLocationPanel extends JPanel {
 
         final JButton btnDir = new JButton("...");
         btnDir.addActionListener(
-                new FileChooseAction(DownloadLocationPanel.this, JFileChooser.DIRECTORIES_ONLY, fldDir));
+                new FileChooseActionListener(DownloadLocationPanel.this, JFileChooser.DIRECTORIES_ONLY, fldDir));
 
         final GroupLayout gl = new GroupLayout(this);
         setLayout(gl);
@@ -11,13 +11,13 @@ import javax.swing.JTextField;
  *
  * @author user
  */
-public class FileChooseAction implements ActionListener {
+public class FileChooseActionListener implements ActionListener {
 
     private final Component parent;
     private final int fileSelectionMode;
     private final JTextField textField;
 
-    public FileChooseAction(Component parent, int fileSelectionMode, JTextField field) {
+    public FileChooseActionListener(Component parent, int fileSelectionMode, JTextField field) {
         this.parent = parent;
         this.fileSelectionMode = fileSelectionMode;
         this.textField = field;
index 47ae215..51e19c2 100644 (file)
@@ -173,7 +173,7 @@ public class MainFrame extends JFrame {
         cbVideoLocal.setToolTipText(FILE_LOCALBUTTON_TOOLTIP);
         cmbVideo.setToolTipText(FILE_INPUTFIELD_TOOLTIP);
         btnVideo.addActionListener(
-                new FileChooseAction(MainFrame.this, JFileChooser.FILES_ONLY, fldVideo));
+                new FileChooseActionListener(MainFrame.this, JFileChooser.FILES_ONLY, fldVideo));
         final JLabel lblComment = new JLabel();
 
         fldBackLog.setToolTipText("YYYY/MM/DD hh:mm:ss形式、あるいは1970/01/01からの経過秒を入力します。");
@@ -209,7 +209,7 @@ public class MainFrame extends JFrame {
         });
         cmbComment.setToolTipText(FILE_INPUTFIELD_TOOLTIP);
         btnComment.addActionListener(
-                new FileChooseAction(MainFrame.this, JFileChooser.FILES_ONLY, fldComment));
+                new FileChooseActionListener(MainFrame.this, JFileChooser.FILES_ONLY, fldComment));
         final JLabel lblOutput = new JLabel();
         cbOutputEnable = new JCheckBox();
         fldOutput = new JTextField();