Liking cljdoc? Tell your friends :D

javax.swing.ProgressMonitor

A class to monitor the progress of some operation. If it looks like the operation will take a while, a progress dialog will be popped up. When the ProgressMonitor is created it is given a numeric range and a descriptive string. As the operation progresses, call the setProgress method to indicate how far along the [min,max] range the operation is. Initially, there is no ProgressDialog. After the first millisToDecideToPopup milliseconds (default 500) the progress monitor will predict how long the operation will take. If it is longer than millisToPopup (default 2000, 2 seconds) a ProgressDialog will be popped up.

From time to time, when the Dialog box is visible, the progress bar will be updated when setProgress is called. setProgress won't always update the progress bar, it will only be done if the amount of progress is visibly significant.

For further documentation and examples see How to Monitor Progress, a section in The Java Tutorial.

A class to monitor the progress of some operation. If it looks
like the operation will take a while, a progress dialog will be popped up.
When the ProgressMonitor is created it is given a numeric range and a
descriptive string. As the operation progresses, call the setProgress method
to indicate how far along the [min,max] range the operation is.
Initially, there is no ProgressDialog. After the first millisToDecideToPopup
milliseconds (default 500) the progress monitor will predict how long
the operation will take.  If it is longer than millisToPopup (default 2000,
2 seconds) a ProgressDialog will be popped up.

From time to time, when the Dialog box is visible, the progress bar will
be updated when setProgress is called.  setProgress won't always update
the progress bar, it will only be done if the amount of progress is
visibly significant.



For further documentation and examples see
How to Monitor Progress,
a section in The Java Tutorial.
raw docstring

->progress-monitorclj

(->progress-monitor parent-component message note min max)

Constructor.

Constructs a graphic object that shows progress, typically by filling in a rectangular bar as the process nears completion.

parent-component - the parent component for the dialog box - java.awt.Component message - a descriptive message that will be shown to the user to indicate what operation is being monitored. This does not change as the operation progresses. See the message parameters to methods in JOptionPane.message for the range of values. - java.lang.Object note - a short note describing the state of the operation. As the operation progresses, you can call setNote to change the note displayed. This is used, for example, in operations that iterate through a list of files to show the name of the file being processes. If note is initially null, there will be no note line in the dialog box and setNote will be ineffective - java.lang.String min - the lower bound of the range - int max - the upper bound of the range - int

Constructor.

Constructs a graphic object that shows progress, typically by filling
 in a rectangular bar as the process nears completion.

parent-component - the parent component for the dialog box - `java.awt.Component`
message - a descriptive message that will be shown to the user to indicate what operation is being monitored. This does not change as the operation progresses. See the message parameters to methods in JOptionPane.message for the range of values. - `java.lang.Object`
note - a short note describing the state of the operation. As the operation progresses, you can call setNote to change the note displayed. This is used, for example, in operations that iterate through a list of files to show the name of the file being processes. If note is initially null, there will be no note line in the dialog box and setNote will be ineffective - `java.lang.String`
min - the lower bound of the range - `int`
max - the upper bound of the range - `int`
raw docstring

canceled?clj

(canceled? this)

Returns true if the user hits the Cancel button in the progress dialog.

returns: boolean

Returns true if the user hits the Cancel button in the progress dialog.

returns: `boolean`
raw docstring

closeclj

(close this)

Indicate that the operation is complete. This happens automatically when the value set by setProgress is >= max, but it may be called earlier if the operation ends early.

Indicate that the operation is complete.  This happens automatically
when the value set by setProgress is >= max, but it may be called
earlier if the operation ends early.
raw docstring

get-accessible-contextclj

(get-accessible-context this)

Gets the AccessibleContext for the ProgressMonitor

returns: the AccessibleContext for the ProgressMonitor - javax.accessibility.AccessibleContext

Gets the AccessibleContext for the
 ProgressMonitor

returns: the AccessibleContext for the
 ProgressMonitor - `javax.accessibility.AccessibleContext`
raw docstring

get-maximumclj

(get-maximum this)

Returns the maximum value -- the higher end of the progress value.

returns: an int representing the maximum value - int

Returns the maximum value -- the higher end of the progress value.

returns: an int representing the maximum value - `int`
raw docstring

get-millis-to-decide-to-popupclj

(get-millis-to-decide-to-popup this)

Returns the amount of time this object waits before deciding whether or not to popup a progress monitor.

returns: int

Returns the amount of time this object waits before deciding whether
 or not to popup a progress monitor.

returns: `int`
raw docstring

get-millis-to-popupclj

(get-millis-to-popup this)

Returns the amount of time it will take for the popup to appear.

returns: int

Returns the amount of time it will take for the popup to appear.

returns: `int`
raw docstring

get-minimumclj

(get-minimum this)

Returns the minimum value -- the lower end of the progress value.

returns: an int representing the minimum value - int

Returns the minimum value -- the lower end of the progress value.

returns: an int representing the minimum value - `int`
raw docstring

get-noteclj

(get-note this)

Specifies the additional note that is displayed along with the progress message.

returns: a String specifying the note to display - java.lang.String

Specifies the additional note that is displayed along with the
 progress message.

returns: a String specifying the note to display - `java.lang.String`
raw docstring

set-maximumclj

(set-maximum this m)

Specifies the maximum value.

m - an int specifying the maximum value - int

Specifies the maximum value.

m - an int specifying the maximum value - `int`
raw docstring

set-millis-to-decide-to-popupclj

(set-millis-to-decide-to-popup this millis-to-decide-to-popup)

Specifies the amount of time to wait before deciding whether or not to popup a progress monitor.

millis-to-decide-to-popup - an int specifying the time to wait, in milliseconds - int

Specifies the amount of time to wait before deciding whether or
 not to popup a progress monitor.

millis-to-decide-to-popup - an int specifying the time to wait, in milliseconds - `int`
raw docstring

set-millis-to-popupclj

(set-millis-to-popup this millis-to-popup)

Specifies the amount of time it will take for the popup to appear. (If the predicted time remaining is less than this time, the popup won't be displayed.)

millis-to-popup - an int specifying the time in milliseconds - int

Specifies the amount of time it will take for the popup to appear.
 (If the predicted time remaining is less than this time, the popup
 won't be displayed.)

millis-to-popup - an int specifying the time in milliseconds - `int`
raw docstring

set-minimumclj

(set-minimum this m)

Specifies the minimum value.

m - an int specifying the minimum value - int

Specifies the minimum value.

m - an int specifying the minimum value - `int`
raw docstring

set-noteclj

(set-note this note)

Specifies the additional note that is displayed along with the progress message. Used, for example, to show which file the is currently being copied during a multiple-file copy.

note - a String specifying the note to display - java.lang.String

Specifies the additional note that is displayed along with the
 progress message. Used, for example, to show which file the
 is currently being copied during a multiple-file copy.

note - a String specifying the note to display - `java.lang.String`
raw docstring

set-progressclj

(set-progress this nv)

Indicate the progress of the operation being monitored. If the specified value is >= the maximum, the progress monitor is closed.

nv - an int specifying the current value, between the maximum and minimum specified for this component - int

Indicate the progress of the operation being monitored.
 If the specified value is >= the maximum, the progress
 monitor is closed.

nv - an int specifying the current value, between the maximum and minimum specified for this component - `int`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close