X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fosm%2Fjp%2Fgpx%2Fmatchtime%2Fgui%2Frestamp%2FCardFirstFile.java;h=cf2dcf56caa888e4467fd2cd0bb4e4ddf67dcc30;hb=d306702ac3cf27944a750ddea6526c5ad575ff8e;hp=13764235ef9924d184bff54047a8e5c3883f3630;hpb=f981676e67330b84043f8c4ebaf7ec81b389d200;p=importpicture%2Fimportpicture.git diff --git a/src/osm/jp/gpx/matchtime/gui/restamp/CardFirstFile.java b/src/osm/jp/gpx/matchtime/gui/restamp/CardFirstFile.java index 1376423..cf2dcf5 100644 --- a/src/osm/jp/gpx/matchtime/gui/restamp/CardFirstFile.java +++ b/src/osm/jp/gpx/matchtime/gui/restamp/CardFirstFile.java @@ -1,72 +1,25 @@ package osm.jp.gpx.matchtime.gui.restamp; -import java.awt.BorderLayout; -import java.awt.Dimension; -import javax.swing.BoxLayout; -import javax.swing.JLabel; -import javax.swing.JPanel; +import java.awt.Dialog; 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; import osm.jp.gpx.matchtime.gui.ParameterPanelTime; /** * [基準画像(開始)]選択パネル * @author yuu */ -public class CardFirstFile extends Card implements PanelAction { - //JPanel argsPanel; // パラメータ設定パネル (上部) - ParameterPanelImageFile arg_baseTimeImg; - ParameterPanelTime arg_basetime; - +public class CardFirstFile extends CardImageFile { /** * コンストラクタ * @param tabbe parent panel * @param arg_basetime // 開始画像の基準時刻: + * @param owner */ public CardFirstFile( JTabbedPane tabbe, - ParameterPanelTime arg_basetime + ParameterPanelTime arg_basetime, + Dialog owner ) { - super(tabbe, AdjustTime.i18n.getString("tab.restamp.200"), 0, 2); - this.arg_baseTimeImg = arg_basetime.getImageFile(); - this.arg_basetime = arg_basetime; - - JPanel argsPanel = new JPanel(); - argsPanel.setLayout(new BoxLayout(argsPanel, BoxLayout.PAGE_AXIS)); - argsPanel.add(packLine(new JLabel(i18n.getString("label.200")), new JPanel())); - argsPanel.add(arg_baseTimeImg); - - JPanel separater = new JPanel(); - separater.setMinimumSize(new Dimension(40, 20)); - argsPanel.add(separater); - - argsPanel.add(packLine(new JLabel(i18n.getString("label.300")), new JPanel())); - argsPanel.add(arg_basetime); - - JPanel space = new JPanel(); - space.setMinimumSize(new Dimension(40, 20)); - space.setMaximumSize(new Dimension(40, Short.MAX_VALUE)); - argsPanel.add(space); - - this.mainPanel.add(argsPanel, BorderLayout.CENTER); - } - - /** - * 入力条件が満たされているかどうか - * @return - */ - @Override - public boolean isEnable() { - return (arg_baseTimeImg.isEnable() && arg_basetime.isEnable()); - } - - @Override - @SuppressWarnings("empty-statement") - public void openAction() { - ; // 何もしない + super(tabbe, arg_basetime, owner, true); } }