OSDN Git Service

step by step
[importpicture/importpicture.git] / src / osm / jp / gpx / matchtime / gui / restamp / CardFirstFile.java
diff --git a/src/osm/jp/gpx/matchtime/gui/restamp/CardFirstFile.java b/src/osm/jp/gpx/matchtime/gui/restamp/CardFirstFile.java
new file mode 100644 (file)
index 0000000..f542caa
--- /dev/null
@@ -0,0 +1,52 @@
+package osm.jp.gpx.matchtime.gui.restamp;
+
+import java.awt.BorderLayout;
+import java.io.File;
+import java.io.FileNotFoundException;
+import javax.swing.BoxLayout;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JTabbedPane;
+import osm.jp.gpx.matchtime.gui.AdjustTime;
+import static osm.jp.gpx.matchtime.gui.AdjustTime.i18n;
+import osm.jp.gpx.matchtime.gui.Card;
+import osm.jp.gpx.matchtime.gui.PanelAction;
+import osm.jp.gpx.matchtime.gui.ParameterPanelImageFile;
+
+/**
+ * [基準画像(開始)]選択パネル
+ * @author yuu
+ */
+public class CardFirstFile extends Card  implements PanelAction {
+    JPanel argsPanel;          // パラメータ設定パネル       (上部)
+    ParameterPanelImageFile arg2_baseTimeImg;
+    
+    /**
+     * コンストラクタ
+     * @param tabbe parent panel
+     * @param arg2_baseTimeImg
+     */
+    public CardFirstFile(JTabbedPane tabbe, ParameterPanelImageFile arg2_baseTimeImg) {
+        super(tabbe, AdjustTime.i18n.getString("tab.restamp.200"), 0, 2);
+        this.arg2_baseTimeImg = arg2_baseTimeImg;
+        
+        this.mainPanel.add(new JLabel(i18n.getString("label.200")), BorderLayout.NORTH);
+        
+        argsPanel = new JPanel();
+        argsPanel.setLayout(new BoxLayout(argsPanel, BoxLayout.Y_AXIS));
+        argsPanel.add(arg2_baseTimeImg);
+        this.mainPanel.add(argsPanel, BorderLayout.CENTER);
+    }
+
+    @Override
+    public void openAction() {
+        try {
+            File dir = arg2_baseTimeImg.paramDir.getDirectory();
+        } catch (FileNotFoundException ex) {
+            arg2_baseTimeImg.setText(null);
+        }
+        if (arg2_baseTimeImg.getText() == null) {
+        }
+        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+    }
+}