|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
gov.nih.nlm.mms.MMSProgressMonitor
Progress monitor for installation and subsetting.
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static boolean |
cancelled
|
static int |
CONFIG_SUBSET
|
static int |
DONE
|
static int |
FINAL_PROCESSES
|
static int |
INIT_CUIS
|
static int |
INSTALL_META
|
protected JButton |
jcancel
|
protected JCheckBox |
jconfig_subset
|
protected JCheckBox |
jdone
|
protected JCheckBox |
jfinal_process
|
protected JCheckBox |
jinit_cui
|
protected JCheckBox |
jinstall_meta
|
protected JProgressBar |
jprogress_bar
|
protected JCheckBox |
jsubset_index
|
protected JCheckBox |
jsubset_mr
|
protected JLabel |
progress_label
|
static int |
SUBSET_INDEXES
|
static int |
SUBSET_META
|
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
MMSProgressMonitor()
|
Method Summary | |
void |
actionPerformed(ActionEvent e)
Called when "Cancel" button is clicked. |
protected void |
confirmExit()
Confirms with user before exiting the application. |
int |
getProgress()
Update the progress monitor with new value and repack. |
protected abstract void |
initialize()
Configure the GUI. |
boolean |
isCancelled()
Indicates whether or not MetamorphoSys has been cancelled. |
void |
setHighScale(int high_scale)
Sets the high scale for scaled progress updates. |
void |
setLowScale(int low_scale)
Sets the low scale for scaled progress updates. |
void |
setMaximum(int max)
Set the maximum progress value and repack. |
void |
setMinimum(int min)
Set the minimum progress value and repack. |
void |
setNote(String msg)
Update the message shown by the progress monitor and repack. |
abstract void |
setOperation(int oper)
Set the indicated operation and repack. |
void |
setProgress(int value)
Returns the progress monitor with new value and repack. |
protected void |
setProgressBarVisible(boolean visible)
Sets the JProgressBar to be visible or not. |
void |
updateProgress(ProgressEvent pe)
Update progress. |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
public static int CONFIG_SUBSET
public static int INSTALL_META
public static int INIT_CUIS
public static int SUBSET_META
public static int SUBSET_INDEXES
public static int FINAL_PROCESSES
public static int DONE
public static boolean cancelled
protected JCheckBox jconfig_subset
protected JCheckBox jinstall_meta
protected JCheckBox jinit_cui
protected JCheckBox jsubset_mr
protected JCheckBox jsubset_index
protected JCheckBox jfinal_process
protected JCheckBox jdone
protected JLabel progress_label
protected JProgressBar jprogress_bar
protected JButton jcancel
Constructor Detail |
public MMSProgressMonitor()
Method Detail |
protected abstract void initialize()
public void setProgress(int value)
value
- for progress of monitorpublic int getProgress()
public void setNote(String msg)
msg
- the messagepublic abstract void setOperation(int oper)
oper
- the currently running operationpublic void setMinimum(int min)
min
- the minimum progress valuepublic void setMaximum(int max)
max
- the maximum progress valueprotected void setProgressBarVisible(boolean visible)
JProgressBar
to be visible or not.
visible
- true
if should be visible
false
otherwisepublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- ActionEvent
protected void confirmExit()
public boolean isCancelled()
boolean
true if MetamorphoSys has been cancelled
false otherwisepublic void setLowScale(int low_scale)
low_scale
- low scalepublic void setHighScale(int high_scale)
high_scale
- high scalepublic void updateProgress(ProgressEvent pe)
updateProgress
in interface ProgressListener
pe
- the ProgressEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |