|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--planetj.gui.CMDialogJ | +--planetj.gui.CMProgressDialog
Insert the type's description here. Creation date: (5/6/02 9:22:48 AM)
Field Summary |
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, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CMProgressDialog()
Constructor |
|
CMProgressDialog(Dialog owner)
CMProgressDialog constructor comment. |
|
CMProgressDialog(Dialog owner,
String title,
boolean modal)
CMProgressDialog constructor comment. |
|
CMProgressDialog(Frame frame)
Constructor |
|
CMProgressDialog(Frame owner,
boolean modal)
CMProgressDialog constructor comment. |
|
CMProgressDialog(Frame owner,
String title)
CMProgressDialog constructor comment. |
|
CMProgressDialog(Frame owner,
String title,
boolean modal)
CMProgressDialog constructor comment. |
Method Summary | |
void |
beginCount(int pIncrement,
int pRate,
int pMaxValue)
Shows the window and starts a thread to begin "counting" progress on the progress bar. |
void |
beginExponentialCount(int pIncrement,
int pInitialRate,
int pFactor,
int pMaxValue)
Shows the window and starts a thread to begin "counting" progress on the progress bar. |
String |
getMessage()
Gets the message to display |
void |
haltCount()
Stops the count and hides the window |
void |
haltCount(boolean pHideWindow)
Stops the count, optionally hiding the window |
static void |
main(String[] args)
main entrypoint - starts the part when it is run as an application |
void |
reset()
Resest the progress bar |
void |
setMessage(String pMessage)
Sets the message to display |
void |
setVisible(boolean vis)
Shows or hides the dialog |
Methods inherited from class planetj.gui.CMDialogJ |
debugMessage, debugMessage, debugMessage, dispose, getClientProperties, getTimeInMills, getTranslation, getTranslationId, hide, isAlwaysOnTop, newCMDialogJ, putClientProperty, setAlwaysOnTop, setTimeInMills, setTitle, setTranslation, show, showBusyCursor, showDefaultCursor, showException, showException |
Methods inherited from class javax.swing.JDialog |
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update |
Methods inherited from class java.awt.Dialog |
addNotify, getTitle, isModal, isResizable, isUndecorated, setModal, setResizable, setUndecorated |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CMProgressDialog()
public CMProgressDialog(Dialog owner)
owner
- java.awt.Dialogpublic CMProgressDialog(Dialog owner, String title, boolean modal)
owner
- java.awt.Dialogtitle
- java.lang.Stringmodal
- booleanpublic CMProgressDialog(Frame frame)
public CMProgressDialog(Frame owner, String title)
owner
- java.awt.Frametitle
- java.lang.Stringpublic CMProgressDialog(Frame owner, String title, boolean modal)
owner
- java.awt.Frametitle
- java.lang.Stringmodal
- booleanpublic CMProgressDialog(Frame owner, boolean modal)
owner
- java.awt.Framemodal
- booleanMethod Detail |
public void beginCount(int pIncrement, int pRate, int pMaxValue)
public void beginExponentialCount(int pIncrement, int pInitialRate, int pFactor, int pMaxValue)
pIncrement
- This is the amount the progress bar will be advanced by each timepInitialRate
- The number of milliseconds to wait between each advance of the progress bar (at first)pFactor
- A factor by which the count will be slowed. The bigger the number the slower the count will
eventually get. A good default value is 10% of the initial rate.pMaxValue
- The progress bar will not advance beyond this valuepublic String getMessage()
public void haltCount()
public void haltCount(boolean pHideWindow)
public static void main(String[] args)
args
- java.lang.String[]public void reset()
public void setMessage(String pMessage)
public void setVisible(boolean vis)
setVisible
in class CMDialogJ
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |