* configure.in: Add --enable-libssp and --disable-libssp.
[official-gcc.git] / libjava / javax / swing / ProgressMonitor.java
blob844258f1b909fab72cdf5f520f5000ae538ae7b4
1 /* ProgressMonitor.java --
2 Copyright (C) 2002, 2004 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 02110-1301 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
38 package javax.swing;
40 import java.awt.Component;
42 /**
43 * ProgressMonitor
44 * @author Andrew Selkirk
45 * @version 1.0
47 public class ProgressMonitor {
49 //-------------------------------------------------------------
50 // Variables --------------------------------------------------
51 //-------------------------------------------------------------
53 /**
54 * parentComponent
56 private Component component;
58 /**
59 * note
61 private String note;
63 /**
64 * message
66 private Object message;
68 /**
69 * millisToDecideToPopup
71 private int millisToDecideToPopup;
73 /**
74 * millisToPopup
76 private int millisToPopup;
78 /**
79 * min
81 private int minimum;
83 /**
84 * max
86 private int maximum;
89 //-------------------------------------------------------------
90 // Initialization ---------------------------------------------
91 //-------------------------------------------------------------
93 /**
94 * Constructor ProgressMonitor
95 * @param component TODO
96 * @param message TODO
97 * @param note TODO
98 * @param minimum TODO
99 * @param maximum TODO
101 public ProgressMonitor(Component component, Object message,
102 String note, int minimum, int maximum) {
104 // Set Data
105 this.component = component;
106 this.message = message;
107 this.note = note;
108 this.minimum = minimum;
109 this.maximum = maximum;
111 // TODO
112 } // ProgressMonitor()
115 //-------------------------------------------------------------
116 // Methods ----------------------------------------------------
117 //-------------------------------------------------------------
120 * close
122 public void close() {
123 // TODO
124 } // close()
127 * setProgress
128 * @param progress TODO
130 public void setProgress(int progress) {
131 // TODO
132 } // setProgress()
135 * getMinimum
136 * @returns int
138 public int getMinimum() {
139 return minimum; // TODO
140 } // getMinimum()
143 * setMinimum
144 * @param minimum TODO
146 public void setMinimum(int minimum) {
147 this.minimum = minimum;
148 // TODO
149 } // setMinimum()
152 * getMaximum
153 * @returns int
155 public int getMaximum() {
156 return maximum; // TODO
157 } // getMaximum()
160 * setMaximum
161 * @param maximum TODO
163 public void setMaximum(int maximum) {
164 this.maximum = maximum;
165 // TODO
166 } // setMaximum()
169 * isCanceled
170 * @returns boolean
172 public boolean isCanceled() {
173 return false; // TODO
174 } // isCanceled()
177 * getMillisToDecideToPopup
178 * @returns int
180 public int getMillisToDecideToPopup() {
181 return millisToDecideToPopup; // TODO
182 } // getMillisToDecideToPopup()
185 * setMillisToDecideToPopup
186 * @param time TODO
188 public void setMillisToDecideToPopup(int time) {
189 millisToDecideToPopup = time;
190 // TODO
191 } // setMillisToDecideToPopup()
194 * getMillisToPopup
195 * @returns int
197 public int getMillisToPopup() {
198 return millisToPopup; // TODO
199 } // getMillisToPopup()
202 * setMillisToPopup
203 * @param time TODO
205 public void setMillisToPopup(int time) {
206 millisToPopup = time;
207 // TODO
208 } // setMillisToPopup()
211 * getNote
212 * @returns String
214 public String getNote() {
215 return note; // TODO
216 } // getNote()
219 * setNote
220 * @param note TODO
222 public void setNote(String note) {
223 this.note = note;
224 // TODO
225 } // setNote()
228 } // ProgressMonitor