01: package de.jwic.controls;
02:
03: import de.jwic.events.ValueChangedListener;
04:
05: /**
06: * Used to monitor the progress of an operation. Monitors are used by controls like the
07: * ProgressMonitor to visualise the progress of an operation.
08: *
09: * @author Lippisch
10: */
11: public interface IProgressMonitor {
12:
13: /**
14: * Add a ValueChangedListener. The listener must be invoked when the
15: * value has been changed.
16: * @param listener
17: */
18: public void addValueChangedListener(ValueChangedListener listener);
19:
20: /**
21: * Removes the specified listener.
22: * @param listener
23: */
24: public void removeValueChangedListener(ValueChangedListener listener);
25:
26: /**
27: * Returns the maximum value that the monitor can reach.
28: * @return
29: */
30: public int getMaximum();
31:
32: /**
33: * Returns the minium value that the progress starts with.
34: * @return
35: */
36: public int getMinimum();
37:
38: /**
39: * Returns the current progress value.
40: * @return
41: */
42: public int getValue();
43:
44: }
|