|
|||||||||
| 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
public abstract class MMSProgressMonitor
Progress monitor for installation and subsetting.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Action |
cancelAction
|
static boolean |
cancelled
Indicates if the cancel button is pushed |
static int |
CONFIG_SUBSET
Configure Metathesaurus Subset |
static int |
DONE
Done |
static int |
FINAL_PROCESSES
Final Processes |
static int |
INIT_CUIS
Initializing CUI List |
static int |
INSTALL_META
Subsetting Metathesaurus |
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
Subsetting Indexes |
static int |
SUBSET_META
Subsetting Content |
| 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, 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 Action cancelAction
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 ActionListenere - ActionEventprotected 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 ProgressListenerpe - the ProgressEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||