PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/org/gjt/sp/util/ProgressObserver.java

#
Java | 57 lines | 7 code | 4 blank | 46 comment | 0 complexity | bcacb2932e2a77486eb520dd0c23cad9 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /*
  2. * ProgressObserver.java - Progression monitor
  3. * :tabSize=8:indentSize=8:noTabs=false:
  4. * :folding=explicit:collapseFolds=1:
  5. *
  6. * Copyright (C) 2005 Matthieu Casanova
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * as published by the Free Software Foundation; either version 2
  11. * of the License, or any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21. */
  22. package org.gjt.sp.util;
  23. /**
  24. * Interface used to monitor things that can progress.
  25. *
  26. * @author Matthieu Casanova
  27. * @version $Id: ProgressObserver.java 5231 2005-07-27 21:19:39Z kpouer $
  28. * @since jEdit 4.3pre3
  29. */
  30. public interface ProgressObserver
  31. {
  32. /**
  33. * Update the progress value.
  34. *
  35. * @param value the new value
  36. * @since jEdit 4.3pre3
  37. */
  38. void setValue(long value);
  39. /**
  40. * Update the maximum value.
  41. *
  42. * @param value the new maximum value
  43. * @since jEdit 4.3pre3
  44. */
  45. void setMaximum(long value);
  46. /**
  47. * Update the status label.
  48. *
  49. * @param status the new status label
  50. * @since jEdit 4.3pre3
  51. */
  52. void setStatus(String status);
  53. }