Package gov.nih.mipav.view
Class ProgressChangeEvent
java.lang.Object
java.util.EventObject
javax.swing.event.ChangeEvent
gov.nih.mipav.view.ProgressChangeEvent
- All Implemented Interfaces:
Serializable
ProgressChangeEvent is used to notify interested parties that progress
state has changed in the event source
- Version:
- 1.0
- Author:
- Hailong Wang, Ph.D
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe message which will be shown with the progress barprivate StringThe title of the progress dialogprivate intThe value of the progress bar, the range is from 0~100Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionProgressChangeEvent(Object source, int value, String title, String message) The only constructor to create an instance of thisProgressChangeEvent -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
message
The message which will be shown with the progress bar -
title
The title of the progress dialog -
value
private int valueThe value of the progress bar, the range is from 0~100
-
-
Constructor Details
-
ProgressChangeEvent
The only constructor to create an instance of thisProgressChangeEvent- Parameters:
source- the event source object.value- the value of progress bar.title- the title progress dialog.message- the message which is shown with the progress bar.
-
-
Method Details
-
getMessage
Returns the progress message- Returns:
- the progress message
-
getTitle
Returns the title of the progress dialog- Returns:
- the title of the progress dialog
-
getValue
public int getValue()Returns the value of the progress bar.- Returns:
- the value of the progress bar.
-