/jEdit/tags/jedit-4-3-pre5/installer/Progress.java

# · Java · 29 lines · 8 code · 5 blank · 16 comment · 0 complexity · 2c6fd6fb33f0b6b61bfb2afd94b7c88f MD5 · raw file

  1. /*
  2. * Progress.java
  3. *
  4. * Originally written by Slava Pestov for the jEdit installer project. This work
  5. * has been placed into the public domain. You may use this work in any way and
  6. * for any purpose you wish.
  7. *
  8. * THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE
  9. * IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR OF THIS SOFTWARE, ASSUMES
  10. * _NO_ RESPONSIBILITY FOR ANY CONSEQUENCE RESULTING FROM THE USE, MODIFICATION,
  11. * OR REDISTRIBUTION OF THIS SOFTWARE.
  12. */
  13. package installer;
  14. /*
  15. * An interface for reporting installation progress. ConsoleProgress and
  16. * SwingProcess are the two existing implementations.
  17. */
  18. public interface Progress
  19. {
  20. public void setMaximum(int max);
  21. public void advance(int value);
  22. public void done();
  23. public void error(String message);
  24. }