Source for javax.swing.ProgressMonitor

   1: /* ProgressMonitor.java --
   2:    Copyright (C) 2002, 2004 Free Software Foundation, Inc.
   3: 
   4: This file is part of GNU Classpath.
   5: 
   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.
  10: 
  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.
  15: 
  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.
  20: 
  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.
  25: 
  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. */
  37: 
  38: package javax.swing;
  39: 
  40: import java.awt.Component;
  41: 
  42: /**
  43:  * ProgressMonitor
  44:  * @author    Andrew Selkirk
  45:  * @version    1.0
  46:  */
  47: public class ProgressMonitor {
  48: 
  49:     //-------------------------------------------------------------
  50:     // Variables --------------------------------------------------
  51:     //-------------------------------------------------------------
  52: 
  53:     /**
  54:      * parentComponent
  55:      */
  56:     private Component component;
  57: 
  58:     /**
  59:      * note
  60:      */
  61:     private String note;
  62: 
  63:     /**
  64:      * message
  65:      */
  66:     private Object message;
  67: 
  68:     /**
  69:      * millisToDecideToPopup
  70:      */
  71:     private int millisToDecideToPopup;
  72: 
  73:     /**
  74:      * millisToPopup
  75:      */
  76:     private int millisToPopup;
  77: 
  78:     /**
  79:      * min
  80:      */
  81:     private int minimum;
  82: 
  83:     /**
  84:      * max
  85:      */
  86:     private int maximum;
  87: 
  88: 
  89:     //-------------------------------------------------------------
  90:     // Initialization ---------------------------------------------
  91:     //-------------------------------------------------------------
  92: 
  93:     /**
  94:      * Constructor ProgressMonitor
  95:      * @param component TODO
  96:      * @param message TODO
  97:      * @param note TODO
  98:      * @param minimum TODO
  99:      * @param maximum TODO
 100:      */
 101:     public ProgressMonitor(Component component, Object message,
 102:             String note, int minimum, int maximum) {
 103:             
 104:         // Set Data
 105:         this.component = component;
 106:         this.message = message;
 107:         this.note = note;
 108:         this.minimum = minimum;
 109:         this.maximum = maximum;
 110: 
 111:         // TODO
 112:     } // ProgressMonitor()
 113: 
 114: 
 115:     //-------------------------------------------------------------
 116:     // Methods ----------------------------------------------------
 117:     //-------------------------------------------------------------
 118: 
 119:     /**
 120:      * close
 121:      */
 122:     public void close() {
 123:         // TODO
 124:     } // close()
 125: 
 126:     /**
 127:      * setProgress
 128:      * @param progress TODO
 129:      */
 130:     public void setProgress(int progress) {
 131:         // TODO
 132:     } // setProgress()
 133: 
 134:     /**
 135:      * getMinimum
 136:      * @returns int
 137:      */
 138:     public int getMinimum() {
 139:         return minimum; // TODO
 140:     } // getMinimum()
 141: 
 142:     /**
 143:      * setMinimum
 144:      * @param minimum TODO
 145:      */
 146:     public void setMinimum(int minimum) {
 147:         this.minimum = minimum;
 148:         // TODO
 149:     } // setMinimum()
 150: 
 151:     /**
 152:      * getMaximum
 153:      * @returns int
 154:      */
 155:     public int getMaximum() {
 156:         return maximum; // TODO
 157:     } // getMaximum()
 158: 
 159:     /**
 160:      * setMaximum
 161:      * @param maximum TODO
 162:      */
 163:     public void setMaximum(int maximum) {
 164:         this.maximum = maximum;
 165:         // TODO
 166:     } // setMaximum()
 167: 
 168:     /**
 169:      * isCanceled
 170:      * @returns boolean
 171:      */
 172:     public boolean isCanceled() {
 173:         return false; // TODO
 174:     } // isCanceled()
 175: 
 176:     /**
 177:      * getMillisToDecideToPopup
 178:      * @returns int
 179:      */
 180:     public int getMillisToDecideToPopup() {
 181:         return millisToDecideToPopup; // TODO
 182:     } // getMillisToDecideToPopup()
 183: 
 184:     /**
 185:      * setMillisToDecideToPopup
 186:      * @param time TODO
 187:      */
 188:     public void setMillisToDecideToPopup(int time) {
 189:         millisToDecideToPopup = time;
 190:         // TODO
 191:     } // setMillisToDecideToPopup()
 192: 
 193:     /**
 194:      * getMillisToPopup
 195:      * @returns int
 196:      */
 197:     public int getMillisToPopup() {
 198:         return millisToPopup; // TODO
 199:     } // getMillisToPopup()
 200: 
 201:     /**
 202:      * setMillisToPopup
 203:      * @param time TODO
 204:      */
 205:     public void setMillisToPopup(int time) {
 206:         millisToPopup = time;
 207:         // TODO
 208:     } // setMillisToPopup()
 209: 
 210:     /**
 211:      * getNote
 212:      * @returns String
 213:      */
 214:     public String getNote() {
 215:         return note; // TODO
 216:     } // getNote()
 217: 
 218:     /**
 219:      * setNote
 220:      * @param note TODO
 221:      */
 222:     public void setNote(String note) {
 223:         this.note = note;
 224:         // TODO
 225:     } // setNote()
 226: 
 227: 
 228: } // ProgressMonitor