|
Luky Library - 4.1.1 (20061117-1148) | |||||||||
| 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.Dialog
javax.swing.JDialog
luky.dialogs.ProgressMonitorDialog
public class ProgressMonitorDialog
The ProgressMonitor is an improved version of Java's ProgressMonitor
![]() |
![]() |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog |
| 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 boolean |
isRunning
|
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| 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 | |
|---|---|
ProgressMonitorDialog()
Constructor |
|
ProgressMonitorDialog(String title,
int min,
int max,
String text)
Constructor |
|
| Method Summary | |
|---|---|
int |
getValue()
Gets the progress of the bar |
void |
run()
Show the dialog |
void |
setIcon(Icon icon)
Sets the icon of dialog (default none) |
void |
setIndeterminate(boolean indeterminate)
Sets the indeterminate of the progressbar (default true) |
void |
setMaximum(int max)
Sets the max of the progressbar (default 500) |
void |
setMinimum(int min)
Sets the min of the progressbar (default 0) |
void |
setNote(String note)
Sets the note of dialog (default none) |
void |
setStringPainted(boolean b)
Sets if the the progressbar string should be displayed (default false) |
void |
setText(String text)
Sets the text of dialog (default "Progress...") |
void |
setValue(int progress)
Sets the progress of the bar |
void |
setVisible(boolean setVisible)
Overriding since this can cause deadlock |
void |
start()
This method starts the client in a seperate thread |
void |
stop()
This method stops the client |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean isRunning
| Constructor Detail |
|---|
public ProgressMonitorDialog()
public ProgressMonitorDialog(String title,
int min,
int max,
String text)
| Method Detail |
|---|
public void setIcon(Icon icon)
icon - public void setNote(String note)
note - public void setText(String text)
text - public void setMaximum(int max)
max - max valuepublic void setMinimum(int min)
min - min valuepublic int getValue()
public void setValue(int progress)
progress - public void setIndeterminate(boolean indeterminate)
indeterminate - public void setStringPainted(boolean b)
b - public void run()
run in interface Runnablepublic void stop()
public void setVisible(boolean setVisible)
setVisible in class ComponentsetVisible - Visible or not (equals start or stop)public void start()
|
Luky Library - 4.1.1 (20061117-1148) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||