/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-
-/*
* SavePanel.java
*
* Created on 2009/12/04, 21:06:09
package saccubus;
import java.awt.GridLayout;
+import java.io.File;
import javax.swing.JButton;
import javax.swing.JCheckBox;
+import javax.swing.JFileChooser;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
inputCommentSaveGroup = new javax.swing.ButtonGroup();
outputVideoSaveGroup = new javax.swing.ButtonGroup();
inputTcommentSaveGroup = new javax.swing.ButtonGroup();
- jTabbedPane1 = new javax.swing.JTabbedPane();
+ saveTabbedPane = new javax.swing.JTabbedPane();
inputVideoTab = new javax.swing.JPanel();
inputCommentTab = new javax.swing.JPanel();
commentSaveInfoPanel = new javax.swing.JPanel();
convertedVideoSavedFileField = new javax.swing.JTextField();
showSavingConvertedVideoFileDialogButton = new javax.swing.JButton();
+ saveTabbedPane.setName("saveTabbedPane"); // NOI18N
+
javax.swing.GroupLayout inputVideoTabLayout = new javax.swing.GroupLayout(inputVideoTab);
inputVideoTab.setLayout(inputVideoTabLayout);
inputVideoTabLayout.setHorizontalGroup(
.addGap(0, 270, Short.MAX_VALUE)
);
- jTabbedPane1.addTab("\93ü\97Í\93®\89æ", inputVideoTab);
+ saveTabbedPane.addTab("入力動画", inputVideoTab);
- commentSaveInfoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("\83R\83\81\83\93\83g\95Û\91¶\90Ý\92è"));
+ commentSaveInfoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("コメント保存設定"));
- savingCommentCheckBox.setText("\83R\83\81\83\93\83g\82ð\83_\83E\83\93\83\8d\81[\83h\82·\82é");
+ savingCommentCheckBox.setText("コメントをダウンロードする");
+ savingCommentCheckBox.setName("savingCommentCheckBox"); // NOI18N
- delCommentCheckBox.setText("\95Ï\8a·\8cã\82É\83R\83\81\83\93\83g\83t\83@\83C\83\8b\82ð\8dí\8f\9c\82·\82é");
+ delCommentCheckBox.setText("変換後にコメントファイルを削除する");
+ delCommentCheckBox.setName("delCommentCheckBox"); // NOI18N
- fixCommentNumCheckBox.setText("\83R\83\81\83\93\83g\8eæ\93¾\90\94\82Í\8e©\93®\82Å\92²\90®\82·\82é");
+ fixCommentNumCheckBox.setText("コメント取得数は自動で調整する");
+ fixCommentNumCheckBox.setName("fixCommentNumCheckBox"); // NOI18N
- jLabel1.setText("\8eæ\93¾\83R\83\81\83\93\83g\90\94");
+ jLabel1.setText("取得コメント数");
+
+ commentNumField.setName("commentNumField"); // NOI18N
inputCommentSaveGroup.add(commentSaveFolderRadioButton);
- commentSaveFolderRadioButton.setText("\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é");
+ commentSaveFolderRadioButton.setText("保存するフォルダを指定し、ファイル名は自動で決定する");
+ commentSaveFolderRadioButton.setName("commentSaveFolderRadioButton"); // NOI18N
+
+ commentSavedFolderField.setName("commentSavedFolderField"); // NOI18N
- showSavingCommentFolderDialogButton.setText("\8eQ\8fÆ...");
+ showSavingCommentFolderDialogButton.setText("参照...");
+ showSavingCommentFolderDialogButton.setName("showSavingCommentFolderDialogButton"); // NOI18N
inputCommentSaveGroup.add(commentSaveFileRadioButton);
- commentSaveFileRadioButton.setText("\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é");
+ commentSaveFileRadioButton.setText("保存するファイル名を指定する");
+ commentSaveFileRadioButton.setName("commentSaveFileRadioButton"); // NOI18N
- showSavingCommentFileDialogButton.setText("\8eQ\8fÆ...");
+ commentSavedFileField.setName("commentSavedFileField"); // NOI18N
+
+ showSavingCommentFileDialogButton.setText("参照...");
+ showSavingCommentFileDialogButton.setName("showSavingCommentFileDialogButton"); // NOI18N
javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
jPanel7.setLayout(jPanel7Layout);
.addGroup(jPanel7Layout.createSequentialGroup()
.addGap(21, 21, 21)
.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(commentSavedFileField, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE)
- .addComponent(commentSavedFolderField, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE))
+ .addComponent(commentSavedFileField, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
+ .addComponent(commentSavedFolderField, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(showSavingCommentFolderDialogButton)
.addGroup(inputCommentTabLayout.createSequentialGroup()
.addContainerGap()
.addComponent(commentSaveInfoPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(27, Short.MAX_VALUE))
+ .addContainerGap(30, Short.MAX_VALUE))
);
- jTabbedPane1.addTab("\93ü\97Í\83R\83\81\83\93\83g", inputCommentTab);
+ saveTabbedPane.addTab("入力コメント", inputCommentTab);
- tcommentSaveInfoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("\93\8a\8de\8eÒ\83R\83\81\83\93\83g\95Û\91¶\90Ý\92è"));
+ tcommentSaveInfoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("投稿者コメント保存設定"));
- needDownloadTcomment.setText("\83R\83\81\83\93\83g\82ð\83_\83E\83\93\83\8d\81[\83h\82·\82é");
+ needDownloadTcomment.setText("コメントをダウンロードする");
+ needDownloadTcomment.setName("needDownloadTcomment"); // NOI18N
- delTcomment.setText("\95Ï\8a·\8cã\82É\83R\83\81\83\93\83g\83t\83@\83C\83\8b\82ð\8dí\8f\9c\82·\82é");
+ delTcomment.setText("変換後にコメントファイルを削除する");
+ delTcomment.setName("delTcomment"); // NOI18N
inputTcommentSaveGroup.add(tcommentSaveInFolder);
- tcommentSaveInFolder.setText("\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é");
+ tcommentSaveInFolder.setText("保存するフォルダを指定し、ファイル名は自動で決定する");
+ tcommentSaveInFolder.setName("tcommentSaveInFolder"); // NOI18N
+
+ tcommentFolder.setName("tcommentFolder"); // NOI18N
- tcoomentFolderChooserButton.setText("\8eQ\8fÆ...");
+ tcoomentFolderChooserButton.setText("参照...");
+ tcoomentFolderChooserButton.setName("tcoomentFolderChooserButton"); // NOI18N
+ tcoomentFolderChooserButton.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ tcoomentFolderChooserButtonActionPerformed(evt);
+ }
+ });
inputTcommentSaveGroup.add(tcommentSaveToFile);
- tcommentSaveToFile.setText("\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é");
+ tcommentSaveToFile.setText("保存するファイル名を指定する");
+ tcommentSaveToFile.setName("tcommentSaveToFile"); // NOI18N
- tcommentFileChooserButton.setText("\8eQ\8fÆ...");
+ tcommentFile.setName("tcommentFile"); // NOI18N
+
+ tcommentFileChooserButton.setText("参照...");
+ tcommentFileChooserButton.setName("tcommentFileChooserButton"); // NOI18N
+ tcommentFileChooserButton.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ tcommentFileChooserButtonActionPerformed(evt);
+ }
+ });
javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
jPanel8.setLayout(jPanel8Layout);
.addGroup(jPanel8Layout.createSequentialGroup()
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(delTcomment)
- .addComponent(tcommentSaveInFolder))
- .addContainerGap())
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(tcommentFolder, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(tcoomentFolderChooserButton)
- .addContainerGap())
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addComponent(tcommentSaveToFile)
- .addContainerGap())
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(tcommentFile, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(tcommentFileChooserButton)
+ .addComponent(tcommentSaveInFolder)
+ .addGroup(jPanel8Layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(tcommentFolder, javax.swing.GroupLayout.DEFAULT_SIZE, 206, Short.MAX_VALUE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(tcoomentFolderChooserButton))
+ .addComponent(tcommentSaveToFile)
+ .addGroup(jPanel8Layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(tcommentFile, javax.swing.GroupLayout.DEFAULT_SIZE, 206, Short.MAX_VALUE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(tcommentFileChooserButton)))
.addContainerGap())
);
jPanel8Layout.setVerticalGroup(
.addGroup(inputTcommentTabLayout.createSequentialGroup()
.addContainerGap()
.addComponent(tcommentSaveInfoPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(71, Short.MAX_VALUE))
+ .addContainerGap(74, Short.MAX_VALUE))
);
- jTabbedPane1.addTab("\93ü\97Í\93\8a\8de\8eÒ\83R\83\81\83\93\83g", inputTcommentTab);
+ saveTabbedPane.addTab("入力投稿者コメント", inputTcommentTab);
- jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("\83R\83\81\83\93\83g\95t\82«\93®\89æ\95Û\91¶\90Ý\92è"));
+ jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("コメント付き動画保存設定"));
- savingConvertedVideoCheckBox.setText("\93®\89æ\82ð\95Ï\8a·\82·\82é");
+ savingConvertedVideoCheckBox.setText("動画を変換する");
+ savingConvertedVideoCheckBox.setName("savingConvertedVideoCheckBox"); // NOI18N
- addComment.setText("\83R\83\81\83\93\83g\82ð\82Â\82¯\82é");
+ addComment.setText("コメントをつける");
+ addComment.setName("addComment"); // NOI18N
- addTcomment.setText("\93\8a\8de\8eÒ\83R\83\81\83\93\83g\82ð\82Â\82¯\82é");
+ addTcomment.setText("投稿者コメントをつける");
+ addTcomment.setName("addTcomment"); // NOI18N
outputVideoSaveGroup.add(convSaveFolderRadioButton);
- convSaveFolderRadioButton.setText("\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é");
+ convSaveFolderRadioButton.setText("保存するフォルダを指定し、ファイル名は自動で決定する");
+ convSaveFolderRadioButton.setName("convSaveFolderRadioButton"); // NOI18N
- notAddVideoIdConvVideoCheckBox.setText("\83t\83@\83C\83\8b\96¼\82É\93®\89æID\82ð\95t\89Á\82µ\82È\82¢");
+ notAddVideoIdConvVideoCheckBox.setText("ファイル名に動画IDを付加しない");
+ notAddVideoIdConvVideoCheckBox.setName("notAddVideoIdConvVideoCheckBox"); // NOI18N
- showSavingConvertedVideoFolderDialogButton.setText("\8eQ\8fÆ...");
+ convertedVideoSavedFolderField.setName("convertedVideoSavedFolderField"); // NOI18N
+
+ showSavingConvertedVideoFolderDialogButton.setText("参照...");
outputVideoSaveGroup.add(convSaveFileRadioButton);
- convSaveFileRadioButton.setText("\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é");
+ convSaveFileRadioButton.setText("保存するファイル名を指定する");
+ convSaveFileRadioButton.setName("convSaveFileRadioButton"); // NOI18N
+
+ convertedVideoSavedFileField.setName("convertedVideoSavedFileField"); // NOI18N
- showSavingConvertedVideoFileDialogButton.setText("\8eQ\8fÆ...");
+ showSavingConvertedVideoFileDialogButton.setText("参照...");
javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
.addGroup(outputVideoTabLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addContainerGap(15, Short.MAX_VALUE))
);
outputVideoTabLayout.setVerticalGroup(
outputVideoTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(outputVideoTabLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(35, Short.MAX_VALUE))
+ .addContainerGap(38, Short.MAX_VALUE))
);
- jTabbedPane1.addTab("\8fo\97Í\83R\83\81\83\93\83g\95t\82«\93®\89æ", outputVideoTab);
+ saveTabbedPane.addTab("出力コメント付き動画", outputVideoTab);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 374, Short.MAX_VALUE)
+ .addComponent(saveTabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 374, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 297, Short.MAX_VALUE)
+ .addComponent(saveTabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 297, Short.MAX_VALUE)
);
}// </editor-fold>//GEN-END:initComponents
+
+ private void tcoomentFolderChooserButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tcoomentFolderChooserButtonActionPerformed
+ showSaveDialog("投稿者コメントの保存先(フォルダ)", tcommentFolder, true, true);
+ }//GEN-LAST:event_tcoomentFolderChooserButtonActionPerformed
+
+ private void tcommentFileChooserButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tcommentFileChooserButtonActionPerformed
+ showSaveDialog("投稿者コメントの保存先(ファイル)", tcommentFile, true, false);
+ }//GEN-LAST:event_tcommentFileChooserButtonActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JCheckBox addComment;
private javax.swing.JCheckBox addTcomment;
private javax.swing.JPanel jPanel5;
private javax.swing.JPanel jPanel7;
private javax.swing.JPanel jPanel8;
- private javax.swing.JTabbedPane jTabbedPane1;
private javax.swing.JCheckBox needDownloadTcomment;
private javax.swing.JCheckBox notAddVideoIdConvVideoCheckBox;
private javax.swing.ButtonGroup outputVideoSaveGroup;
private javax.swing.JPanel outputVideoTab;
+ private javax.swing.JTabbedPane saveTabbedPane;
private javax.swing.JCheckBox savingCommentCheckBox;
private javax.swing.JCheckBox savingConvertedVideoCheckBox;
private javax.swing.JButton showSavingCommentFileDialogButton;
private javax.swing.JButton tcoomentFolderChooserButton;
// End of variables declaration//GEN-END:variables
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\83R\83\81\83\93\83g\82ð\83_\83E\83\93\83\8d\81[\83h\82·\82é\81v\83`\83F\83b\83N\83{\83b\83N\83X. */
+ /** @return 保存設定-入力コメント「コメントをダウンロードする」チェックボックス. */
JCheckBox getSavingCommentCheckBox() {
return savingCommentCheckBox;
}
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\95Ï\8a·\8cã\82É\83R\83\81\83\93\83g\83t\83@\83C\83\8b\82ð\8dí\8f\9c\82·\82é\81v\83`\83F\83b\83N\83{\83b\83N\83X. */
+ /** @return 保存設定-入力コメント「変換後にコメントファイルを削除する」チェックボックス. */
JCheckBox getDelCommentCheckBox() {
return delCommentCheckBox;
}
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\83R\83\81\83\93\83g\8eæ\93¾\90\94\82Í\8e©\93®\82Å\92²\90®\82·\82é\81v\83`\83F\83b\83N\83{\83b\83N\83X. */
+ /** @return 保存設定-入力コメント「コメント取得数は自動で調整する」チェックボックス. */
JCheckBox getFixCommentNumCheckBox() {
return fixCommentNumCheckBox;
}
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\8eæ\93¾\83R\83\81\83\93\83g\90\94\81v\83e\83L\83X\83g\83t\83B\81[\83\8b\83h. */
+ /** @return 保存設定-入力コメント「取得コメント数」テキストフィールド. */
JTextField getCommentNumField() {
return commentNumField;
}
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é\81v\83\89\83W\83I\83{\83^\83\93. */
+ /** @return 保存設定-入力コメント「保存するフォルダを指定し、ファイル名は自動で決定する」ラジオボタン. */
JRadioButton getCommentSaveFolderRadioButton() {
return commentSaveFolderRadioButton;
}
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\83t\83@\83C\83\8b\96¼\82É\93®\89æID\82ð\95t\89Á\82µ\82È\82¢\81v\83`\83F\83b\83N\83{\83b\83N\83X. */
+ /** @return 保存設定-入力コメント「ファイル名に動画IDを付加しない」チェックボックス. */
JCheckBox getNotAddVideoIdConvVideoCheckBox() {
return notAddVideoIdConvVideoCheckBox;
}
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é\81v\83e\83L\83X\83g\83t\83B\81[\83\8b\83h. */
+ /** @return 保存設定-入力コメント「保存するフォルダを指定し、ファイル名は自動で決定する」テキストフィールド. */
JTextField getCommentSavedFolderField() {
return commentSavedFolderField;
}
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é\81v\83t\83@\83C\83\8b\83`\83\85\81[\83U\83{\83^\83\93. */
+ /** @return 保存設定-入力コメント「保存するフォルダを指定し、ファイル名は自動で決定する」ファイルチューザボタン. */
JButton getShowSavingCommentFolderDialogButton() {
return showSavingCommentFolderDialogButton;
}
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é\81v\83\89\83W\83I\83{\83^\83\93. */
+ /** @return 保存設定-入力コメント「保存するファイル名を指定する」ラジオボタン. */
JRadioButton getCommentSaveFileRadioButton() {
return commentSaveFileRadioButton;
}
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é\81v\83e\83L\83X\83g\83t\83B\81[\83\8b\83h. */
+ /** @return 保存設定-入力コメント「保存するファイル名を指定する」テキストフィールド. */
JTextField getCommentSavedFileField() {
return commentSavedFileField;
}
- /** @return \95Û\91¶\90Ý\92è-\93ü\97Í\83R\83\81\83\93\83g\81u\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é\81v\83t\83@\83C\83\8b\83`\83\85\81[\83U\83{\83^\83\93. */
+ /** @return 保存設定-入力コメント「保存するファイル名を指定する」ファイルチューザボタン. */
JButton getShowSavingCommentFileDialogButton() {
return showSavingCommentFileDialogButton;
}
- /** @return \95Û\91¶\90Ý\92è-\8fo\97Í\83R\83\81\83\93\83g\95t\82«\93®\89æ\81u\93®\89æ\82ð\95Ï\8a·\82·\82é\81v\83`\83F\83b\83N\83{\83b\83N\83X. */
+ /** @return 保存設定-出力コメント付き動画「動画を変換する」チェックボックス. */
JCheckBox getSavingConvertedVideoCheckBox() {
return savingConvertedVideoCheckBox;
}
- /** @return \95Û\91¶\90Ý\92è-\8fo\97Í\83R\83\81\83\93\83g\95t\82«\93®\89æ\81u\83R\83\81\83\93\83g\82ð\82Â\82¯\82é\81v\83`\83F\83b\83N\83{\83b\83N\83X. */
+ /** @return 保存設定-出力コメント付き動画「コメントをつける」チェックボックス. */
JCheckBox getAddCommentCheckBox() {
return addComment;
}
- /** @return \95Û\91¶\90Ý\92è-\8fo\97Í\83R\83\81\83\93\83g\95t\82«\93®\89æ\81u\93\8a\8de\8eÒ\83R\83\81\83\93\83g\82ð\82Â\82¯\82é\81v\83`\83F\83b\83N\83{\83b\83N\83X. */
+ /** @return 保存設定-出力コメント付き動画「投稿者コメントをつける」チェックボックス. */
JCheckBox getAddTcommentCheckBox() {
return addTcomment;
}
- /** @return \95Û\91¶\90Ý\92è-\8fo\97Í\83R\83\81\83\93\83g\95t\82«\93®\89æ\81u\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é\81v\83\89\83W\83I\83{\83^\83\93. */
+ /** @return 保存設定-出力コメント付き動画「保存するフォルダを指定し、ファイル名は自動で決定する」ラジオボタン. */
JRadioButton getConvSaveFolderRadioButton() {
return convSaveFolderRadioButton;
}
- /** @return \95Û\91¶\90Ý\92è-\8fo\97Í\83R\83\81\83\93\83g\95t\82«\93®\89æ\81u\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é\81v\83e\83L\83X\83g\83t\83B\81[\83\8b\83h. */
+ /** @return 保存設定-出力コメント付き動画「保存するフォルダを指定し、ファイル名は自動で決定する」テキストフィールド. */
JTextField getConvertedVideoSavedFolderField() {
return convertedVideoSavedFolderField;
}
- /** @return \95Û\91¶\90Ý\92è-\8fo\97Í\83R\83\81\83\93\83g\95t\82«\93®\89æ\81u\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é\81v\83t\83@\83C\83\8b\83`\83\85\81[\83U\83{\83^\83\93. */
+ /** @return 保存設定-出力コメント付き動画「保存するフォルダを指定し、ファイル名は自動で決定する」ファイルチューザボタン. */
JButton getShowSavingConvertedVideoFolderDialogButton() {
return showSavingConvertedVideoFolderDialogButton;
}
- /** @return \95Û\91¶\90Ý\92è-\8fo\97Í\83R\83\81\83\93\83g\95t\82«\93®\89æ\81u\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é\81v\83\89\83W\83I\83{\83^\83\93. */
+ /** @return 保存設定-出力コメント付き動画「保存するファイル名を指定する」ラジオボタン. */
JRadioButton getConvSaveFileRadioButton() {
return convSaveFileRadioButton;
}
- /** @return \95Û\91¶\90Ý\92è-\8fo\97Í\83R\83\81\83\93\83g\95t\82«\93®\89æ\81u\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é\81v\83e\83L\83X\83g\83t\83B\81[\83\8b\83h. */
+ /** @return 保存設定-出力コメント付き動画「保存するファイル名を指定する」テキストフィールド. */
JTextField getConvertedVideoSavedFileField() {
return convertedVideoSavedFileField;
}
- /** @return \95Û\91¶\90Ý\92è-\8fo\97Í\83R\83\81\83\93\83g\95t\82«\93®\89æ\81u\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é\81v\83t\83@\83C\83\8b\83`\83\85\81[\83U\83{\83^\83\93. */
+ /** @return 保存設定-出力コメント付き動画「保存するファイル名を指定する」ファイルチューザボタン. */
JButton getShowSavingConvertedVideoFileDialogButton() {
return showSavingConvertedVideoFileDialogButton;
}
return videoSaveInfoPanel;
}
- /** @return \93\8a\8de\8eÒ\83R\83\81\83\93\83g\82ð\83_\83E\83\93\83\8d\81[\83h\82·\82é\82Ì\82Å\82 \82ê\82Îtrue. */
+ /** @return 投稿者コメントをダウンロードするのであればtrue. */
boolean isTcommentDownload() {
return needDownloadTcomment.isSelected();
}
- /** \81u\93\8a\8de\8eÒ\83R\83\81\83\93\83g\82ð\83_\83E\83\93\83\8d\81[\83h\82·\82é\81v\82É\90Ý\92è\82ð\8ds\82¤. */
+ /** 「投稿者コメントをダウンロードする」に設定を行う. */
void setTcommentDownload(boolean b) {
needDownloadTcomment.setSelected(b);
}
- /** @return \95Ï\8a·\8cã\82É\93\8a\8de\8eÒ\83R\83\81\83\93\83g\82ð\8dí\8f\9c\82·\82é\82Ì\82Å\82 \82ê\82Îtrue. */
+ /** @return 変換後に投稿者コメントを削除するのであればtrue. */
boolean isTcommentDelete() {
return delTcomment.isSelected();
}
- /** \81u\95Ï\8a·\8cã\82É\93\8a\8de\8eÒ\83R\83\81\83\93\83g\82ð\8dí\8f\9c\82·\82é\81v\82É\90Ý\92è\82ð\8ds\82¤. */
+ /** 「変換後に投稿者コメントを削除する」に設定を行う. */
void setTcommentDelete(boolean b) {
delTcomment.setSelected(b);
}
- /** @return \93\8a\8de\8eÒ\83R\83\81\83\93\83g\82Ì\83t\83@\83C\83\8b\96¼\82ð\8e©\93®\82Å\90Ý\92è\82·\82é\82Ì\82Å\82 \82ê\82Îtrue, \92¼\90Ú\8ew\92è\82·\82é\82Ì\82Å\82 \82ê\82Îfalse. */
+ /** @return 投稿者コメントのファイル名を自動で設定するのであればtrue, 直接指定するのであればfalse. */
boolean isTcommentAutoFileName() {
return tcommentSaveInFolder.isSelected();
}
- /** @param b \93\8a\8de\8eÒ\83R\83\81\83\93\83g\82Ì\83t\83@\83C\83\8b\96¼\82ð\8e©\93®\82Å\90Ý\92è\82·\82é\82Ì\82Å\82 \82ê\82Îtrue, \92¼\90Ú\8ew\92è\82·\82é\82Ì\82Å\82 \82ê\82Îfalse. */
+ /** @param b 投稿者コメントのファイル名を自動で設定するのであればtrue, 直接指定するのであればfalse. */
void setTcommentAutoFileName(boolean b) {
tcommentSaveInFolder.setSelected(b);
tcommentSaveToFile.setSelected(!b);
}
- /** @return \93\8a\8de\8eÒ\83R\83\81\83\93\83g\82Ì\81u\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é\81v\82É\90Ý\92è\82µ\82Ä\82 \82é\95¶\8e\9a\97ñ. */
+ /** @return 投稿者コメントの「保存するフォルダを指定し、ファイル名は自動で決定する」に設定してある文字列. */
String getTcommentDirectoryName() {
return tcommentFolder.getText();
}
- /** @param t \93\8a\8de\8eÒ\83R\83\81\83\93\83g\82Ì\81u\95Û\91¶\82·\82é\83t\83H\83\8b\83_\82ð\8ew\92è\82µ\81A\83t\83@\83C\83\8b\96¼\82Í\8e©\93®\82Å\8c\88\92è\82·\82é\81v\82É\90Ý\92è\82µ\82Ä\82 \82é\95¶\8e\9a\97ñ. */
+ /** @param t 投稿者コメントの「保存するフォルダを指定し、ファイル名は自動で決定する」に設定してある文字列. */
void setTcommentDirectoryName(String t) {
tcommentFolder.setText(t);
}
- /** @return \93\8a\8de\8eÒ\83R\83\81\83\93\83g\82Ì\81u\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é\81v\82É\90Ý\92è\82µ\82Ä\82 \82é\95¶\8e\9a\97ñ. */
+ /** @return 投稿者コメントの「保存するファイル名を指定する」に設定してある文字列. */
String getTcommentFileName() {
return tcommentFile.getText();
}
- /** @param b \93\8a\8de\8eÒ\83R\83\81\83\93\83g\82Ì\81u\95Û\91¶\82·\82é\83t\83@\83C\83\8b\96¼\82ð\8ew\92è\82·\82é\81v\82É\90Ý\92è\82µ\82Ä\82 \82é\95¶\8e\9a\97ñ. */
+ /** @param b 投稿者コメントの「保存するファイル名を指定する」に設定してある文字列. */
void setTcommentFileName(String t) {
tcommentFile.setText(t);
}
+
+ private void showSaveDialog(String title, JTextField field, boolean isSave,
+ boolean isDir) {
+ File current = new File(field.getText());
+ JFileChooser chooser = new JFileChooser(current);
+ chooser.setDialogTitle(title);
+ int code = 0;
+ if (isDir) {
+ chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
+ }
+ if (isSave) {
+ code = chooser.showSaveDialog(this);
+ } else {
+ code = chooser.showOpenDialog(this);
+ }
+ if (code == JFileChooser.APPROVE_OPTION) {
+ field.setText(chooser.getSelectedFile().getAbsolutePath());
+ }
+ }
}