Package docking.widgets
Class OkDialog
- java.lang.Object
-
- docking.DialogComponentProvider
-
- docking.widgets.OptionDialog
-
- docking.widgets.OkDialog
-
- All Implemented Interfaces:
ActionContextProvider
,StatusListener
,TaskListener
public class OkDialog extends OptionDialog
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, NO_OPTION, OPTION_ONE, OPTION_THREE, OPTION_TWO, PLAIN_MESSAGE, QUESTION_MESSAGE, WARNING_MESSAGE, YES_OPTION
-
Fields inherited from class docking.DialogComponentProvider
applyButton, cancelButton, dismissButton, okButton, rootPanel
-
-
Constructor Summary
Constructors Constructor Description OkDialog(java.lang.String title, java.lang.String message, int messageType)
Construct a simple informational dialog with a single OK buttonOkDialog(java.lang.String title, java.lang.String message, javax.swing.Icon icon)
Construct a simple informational dialog with a single OK button
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
show(java.lang.String title, java.lang.String message)
static void
showError(java.lang.String title, java.lang.String message)
static void
showInfo(java.lang.String title, java.lang.String message)
-
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, showYesNoCancelDialog, showYesNoDialog, showYesNoDialogWithNoAsDefaultButton
-
Methods inherited from class docking.DialogComponentProvider
addAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, close, dialogClosed, dialogShown, dismissCallback, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocatdion, getIntialLocation, getLocationOnScreen, getPreferredSize, getRemberSize, getRememberLocation, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, main, notifyContextChanged, removeAction, removeButton, removeWorkPanel, repack, 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 Detail
-
OkDialog
public OkDialog(java.lang.String title, java.lang.String message, int messageType)
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
public OkDialog(java.lang.String title, java.lang.String message, javax.swing.Icon icon)
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 Detail
-
show
public static void show(java.lang.String title, java.lang.String message)
- Parameters:
title
- the titlemessage
- the message
-
showInfo
public static void showInfo(java.lang.String title, java.lang.String message)
- Parameters:
title
- the titlemessage
- the message
-
showError
public static void showError(java.lang.String title, java.lang.String message)
- Parameters:
title
- the titlemessage
- the message
-
-