Package docking.widgets
Class OkDialog
java.lang.Object
docking.DialogComponentProvider
docking.widgets.OptionDialog
docking.widgets.OkDialog
- All Implemented Interfaces:
ActionContextProvider
,StatusListener
,TaskListener
A dialog with an OK button. The client can specify the message type in the constructor.
-
Field Summary
Fields inherited from class docking.widgets.OptionDialog
CANCEL_OPTION, ERROR_MESSAGE, INFORMATION_MESSAGE, MESSAGE_COMPONENT_NAME, NO_OPTION, OPTION_ONE, OPTION_THREE, OPTION_TWO, PLAIN_MESSAGE, QUESTION_MESSAGE, WARNING_MESSAGE, YES_OPTION
Fields inherited from class docking.DialogComponentProvider
applyButton, buttonPanel, cancelButton, dismissButton, okButton, rootPanel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
Methods inherited from class docking.widgets.OptionDialog
cancelCallback, createBuilder, createTextPanel, getIconForMessageType, getMessage, getResult, okCallback, show, show, showEditableInputChoiceDialog, showInputChoiceDialog, showInputMultilineDialog, showInputSingleLineDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialog, showOptionDialogWithCancelAsDefaultButton, showOptionDialogWithCancelAsDefaultButton, showOptionNoCancelDialog, showOptionNoCancelDialog, showOptionNoCancelDialog, showOptionNoCancelDialog, showYesNoCancelDialog, showYesNoDialog, showYesNoDialogWithNoAsDefaultButton
Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, close, closeDialog, dialogClosed, dialogShown, dismissCallback, dispose, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocation, getId, getInitialLocation, getLocationOnScreen, getParent, getPreferredSize, getRememberLocation, getRememberSize, getStatusColor, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, notifyContextChanged, removeAction, removeButton, removeWorkPanel, repack, setAccessibleDescription, setApplyEnabled, setApplyToolTip, setBackground, setCancelButtonText, setCancelEnabled, setCancelToolTip, setCursor, setDefaultButton, setDefaultSize, setDialogSize, setDismissToolTip, setFocusComponent, setGlassPane, setHelpLocation, setInitialLocation, setMinimumSize, setMinimumSize, setOkButtonText, setOkEnabled, setOkToolTip, setPreferredSize, setRememberLocation, setRememberSize, setResizable, setStatusJustification, setStatusText, setStatusText, setStatusText, setTitle, setTransient, setUseSharedLocation, showProgressBar, showTaskMonitorComponent, stopProgressTimer, taskCancelled, taskCompleted, toFront, toString, waitForCurrentTask
-
Constructor Details
-
OkDialog
Construct a simple informational dialog with a single OK button- Parameters:
title
- The String to be placed in the dialogs title areamessage
- The information message to be displayed in the dialogmessageType
- used to specify a default icon- ERROR_MESSAGE
- INFORMATION_MESSAGE
- WARNING_MESSAGE
- QUESTION_MESSAGE
- PLAIN_MESSAGE
-
OkDialog
Construct a simple informational dialog with a single OK button- Parameters:
title
- The String to be placed in the dialogs title areamessage
- The information message to be displayed in the dialogicon
- allows the user to specify the icon to be used If non-null, this will override the messageType
-
-
Method Details
-
show
- Parameters:
title
- the titlemessage
- the message
-
showInfo
- Parameters:
title
- the titlemessage
- the message
-
showError
- Parameters:
title
- the titlemessage
- the message
-