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.OptionDialogCANCEL_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.DialogComponentProviderapplyButton, buttonPanel, cancelButton, dismissButton, okButton, rootPanel
 
- 
 - 
Constructor SummaryConstructors 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 SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidshow(java.lang.String title, java.lang.String message)static voidshowError(java.lang.String title, java.lang.String message)static voidshowInfo(java.lang.String title, java.lang.String message)- 
Methods inherited from class docking.widgets.OptionDialogcancelCallback, 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.DialogComponentProvideraddAction, addApplyButton, addButton, addCancelButton, addDismissButton, addOKButton, addWorkPanel, alertMessage, alertMessage, applyCallback, cancelCurrentTask, clearScheduledTask, clearStatusText, close, dialogClosed, dialogShown, dismissCallback, dispose, doInitialize, escapeCallback, executeProgressTask, getActionContext, getActions, getBackground, getBounds, getComponent, getDefaultButton, getDefaultSize, getDialogSize, getFocusComponent, getGlassPane, getHelpLocatdion, getId, getIntialLocation, getLocationOnScreen, getParent, getPreferredSize, getRemberSize, getRememberLocation, getStatusColor, getStatusLabel, getStatusText, getTaskMonitorComponent, getTaskScheduler, getTitle, getUseSharedLocation, hideTaskMonitorComponent, isApplyEnabled, isCancelEnabled, isModal, isOKEnabled, isResizeable, isRunningTask, isShowing, isTransient, isVisible, 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- 
OkDialogpublic 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 area
- message- The information message to be displayed in the dialog
- messageType- used to specify a default icon- ERROR_MESSAGE
- INFORMATION_MESSAGE
- WARNING_MESSAGE
- QUESTION_MESSAGE
- PLAIN_MESSAGE
 
 
 - 
OkDialogpublic 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 area
- message- The information message to be displayed in the dialog
- icon- allows the user to specify the icon to be used If non-null, this will override the messageType
 
 
- 
 - 
Method Detail- 
showpublic static void show(java.lang.String title, java.lang.String message)- Parameters:
- title- the title
- message- the message
 
 - 
showInfopublic static void showInfo(java.lang.String title, java.lang.String message)- Parameters:
- title- the title
- message- the message
 
 - 
showErrorpublic static void showError(java.lang.String title, java.lang.String message)- Parameters:
- title- the title
- message- the message
 
 
- 
 
-