org.graffiti.util
Interface ProgressViewer


public interface ProgressViewer

A class that displays in some sense progress made while a long running task.

Version:
$Revision: 5767 $ $Date: 2006-01-03 09:42:05 +0100 (Di, 03 Jan 2006) $
Author:
Michael Forster

Method Summary
 int getValue()
          Returns the progress viewer's current value.
 void setMaximum(int n)
          Sets the progress viewer's maximum value to n.
 void setText(String text)
          Sets the value of the progress text.
 void setValue(int n)
          Sets the progress viewer's current value to n.
 

Method Detail

setMaximum

void setMaximum(int n)
Sets the progress viewer's maximum value to n. By default, the maximum value is 100.

Parameters:
n - the new maximum

setText

void setText(String text)
Sets the value of the progress text. By default, this string is null. If you have provided a custom progress string and want to revert to the built-in behavior, set the string back to null.

Parameters:
text - the value of the progress string

setValue

void setValue(int n)
Sets the progress viewer's current value to n.

Parameters:
n - the new value

getValue

int getValue()
Returns the progress viewer's current value. The value is always between the zero and the maximum values, inclusive. By default, the value is initialized to zero.

Returns:
DOCUMENT ME!


Generated at 2012-05-30 11:00:14 PM CEST