OSDN Git Service

フィールド名変更
authoryukihane <yukihane.feather@gmail.com>
Fri, 2 Sep 2011 14:45:52 +0000 (23:45 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 9 Sep 2011 11:41:10 +0000 (20:41 +0900)
frontend/src/yukihane/inqubus/gui/MainFrame.java

index c575716..6347856 100644 (file)
@@ -244,10 +244,10 @@ public class MainFrame extends JFrame {
         lblId.setText("ID");
 
 
-        fldId = new IdComboBox(videoFileWatcher);
-        fldId.setToolTipText(ID_FIELD_TOOLTIP);
-        fldId.getEditorComponent().addActionListener(applyListener);
-        fldId.addFocusListener(new java.awt.event.FocusAdapter() {
+        cmbId = new IdComboBox(videoFileWatcher);
+        cmbId.setToolTipText(ID_FIELD_TOOLTIP);
+        cmbId.getEditorComponent().addActionListener(applyListener);
+        cmbId.addFocusListener(new java.awt.event.FocusAdapter() {
 
             public void focusLost(java.awt.event.FocusEvent evt) {
                 idFieldFocusLost(evt);
@@ -293,7 +293,7 @@ public class MainFrame extends JFrame {
                 .addContainerGap()
                 .addComponent(lblId)
                 .addPreferredGap(ComponentPlacement.RELATED)
-                .addComponent(fldId, GroupLayout.PREFERRED_SIZE, 100, Short.MAX_VALUE)
+                .addComponent(cmbId, GroupLayout.PREFERRED_SIZE, 100, Short.MAX_VALUE)
                 .addPreferredGap(ComponentPlacement.UNRELATED)
                 .addComponent(cbBackLogReduce)
                 .addPreferredGap(ComponentPlacement.UNRELATED)
@@ -334,7 +334,7 @@ public class MainFrame extends JFrame {
             .addGroup(glInputMain.createSequentialGroup()
                 .addContainerGap()
                 .addGroup(glInputMain.createParallelGroup(Alignment.BASELINE)
-                    .addComponent(fldId, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
+                    .addComponent(cmbId, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                     .addComponent(lblId)
                     .addComponent(cbBackLogReduce)
                     .addComponent(cbBackLog)
@@ -562,7 +562,7 @@ public class MainFrame extends JFrame {
         public void actionPerformed(ActionEvent e) {
             try {
                 final DownloadProfile downProf = new InqubusDownloadProfile();
-                final String id = Util.getVideoId(fldId.getText());
+                final String id = Util.getVideoId(cmbId.getText());
                 final InqubusConvertProfile convProf = new InqubusConvertProfile();
                 logger.log(Level.INFO, downProf.toString());
                 logger.log(Level.INFO, convProf.toString());
@@ -629,7 +629,7 @@ public class MainFrame extends JFrame {
 
         String text;
         if (useLocal) {
-            final File f = searchFileMatchId(dir, fldId.getText());
+            final File f = searchFileMatchId(dir, cmbId.getText());
             if (f != null) {
                 text = f.getPath();
             } else {
@@ -649,7 +649,7 @@ public class MainFrame extends JFrame {
 
     private void idFieldFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_idFieldFocusLost
         final Config p = Config.INSTANCE;
-        final String id = fldId.getText();
+        final String id = cmbId.getText();
         if (id.isEmpty()) {
             return;
         }
@@ -678,7 +678,7 @@ public class MainFrame extends JFrame {
     // 入力領域
     private final JTabbedPane tbpInput = new JTabbedPane(JTabbedPane.BOTTOM);
     // 入力領域 - メイン
-    private final IdComboBox fldId;
+    private final IdComboBox cmbId;
     private final JCheckBox cbBackLogReduce = new JCheckBox("少コメ");
     private final JCheckBox cbBackLog = new JCheckBox("過去ログ");
     private final JTextField fldBackLog = new JTextField();
@@ -704,13 +704,13 @@ public class MainFrame extends JFrame {
         initMainTab();
         initFfmpegTab();
         tbpInput.setSelectedIndex(0);
-        fldId.requestFocus();
+        cmbId.requestFocus();
     }
 
     private void initMainTab() {
         final Config p = Config.INSTANCE;
 
-        fldId.setText("");
+        cmbId.setText("");
         fldBackLog.setEnabled(false);
         cbBackLog.setEnabled(true);