3 import javax.swing.JButton;
7 *
\83^
\83C
\83g
\83\8b:
\82³
\82«
\82ã
\82Î
\82·
11 *
\90à
\96¾:
\83j
\83R
\83j
\83R
\93®
\89æ
\82Ì
\93®
\89æ
\82ð
\83R
\83\81\83\93\83g
\82Â
\82«
\82Å
\95Û
\91¶
15 *
\92\98\8dì
\8c : Copyright (c) 2007 PSI
22 * @author
\96¢
\93ü
\97Í
25 public class ConvertStopFlag {
26 private boolean Flag = false;
28 private boolean Finished = false;
30 private final JButton Button;
32 private final String WaitText;
34 private final String DoneText;
36 public ConvertStopFlag(final JButton button, final String stop_text,
37 final String wait_text, final String done_text) {
41 if (button != null && stop_text != null) {
42 button.setText(stop_text);
50 if (Button != null && WaitText != null) {
51 Button.setText(WaitText);
52 Button.setEnabled(false);
56 public boolean needStop() {
60 public boolean isConverted() {
64 public void finished() {
66 if (Button != null && DoneText != null) {
67 Button.setText(DoneText);
68 Button.setEnabled(true);