|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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 | +--kiwi.ui.dialog.KDialog | +--kiwi.ui.dialog.ProgressDialog
A simple dialog with a message and progress meter, for use when a
non-interruptible, lengthy task is being performed. The dialog tracks the
progress of a Task
, which periodically notifies the dialog
of the percentage of the task completed.
Task
, Serialized FormInner classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
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 |
Constructor Summary | |
ProgressDialog(Frame parent,
String title,
boolean modal)
Construct a new ProgressDialog . |
Method Summary | |
void |
setIcon(Icon icon)
Set the dialog's icon. |
void |
setMessage(String message)
Set the message for the dialog. |
void |
setProgress(int progress)
Implementation of the ProgressObserver interface. |
void |
track(Task task)
Track the progress of a task. |
Methods inherited from class kiwi.ui.dialog.KDialog |
addDialogDismissListener,
dispose,
fireDialogDismissed,
fireDialogDismissed,
getMainContainer,
removeDialogDismissListener,
setTexture |
Methods inherited from class java.awt.Dialog |
addNotify,
getTitle,
isModal,
isResizable,
setModal,
setResizable,
setTitle,
show |
Methods inherited from class java.awt.Window |
addWindowListener,
applyResourceBundle,
applyResourceBundle,
finalize,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
isShowing,
pack,
postEvent,
processEvent,
removeWindowListener,
toBack,
toFront |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ProgressDialog(Frame parent, String title, boolean modal)
ProgressDialog
.parent
- The parent window.title
- The title for the dialog window.Method Detail |
public void setProgress(int progress)
ProgressObserver
interface.public void setIcon(Icon icon)
ProgressDialog
s.icon
- The new icon to use.public void setMessage(String message)
message
- The message to display in the dialog.runnable
- A runnable object to run in a thread once the dialog is
displayed.public void track(Task task)
task
- The Task
to track; it should not be currently
running, as the dialog will start the task itself.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |