public class ValidationDialog extends WizardDialog implements IValidationMessage
WizardDialog.PageContainerFillLayout
Window.IExceptionHandler
WIZ_IMG_ERROR
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
CANCEL, OK, resizeHasOccurred
Constructor and Description |
---|
ValidationDialog(Shell parent,
Image dialogWindowIcon,
String title,
String banner,
ImageDescriptor image)
Create the dialog.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureShell(Shell newShell)
Configures the new shell.
|
protected Composite |
createComposite(Composite parent)
Override to create the main composite of the dialog.
|
ValidatorManager |
getValidatorManager()
Gets the validator manager.
|
void |
onValidate(boolean isValid)
Call to inform validity of all validators.
|
boolean |
openModal()
Processes the dialog.
|
boolean |
performFinish()
Finishes the dialog.
|
boolean |
validate()
Validates the entire dialog.
|
createContents, createProgressMonitorPart, finishPressed
addPageChangedListener, addPageChangingListener, backPressed, buttonPressed, cancelPressed, close, createButtonsForButtonBar, createDialogArea, firePageChanged, firePageChanging, getButton, getCurrentPage, getProgressMonitor, getSelectedPage, getShellStyle, getWizard, helpPressed, isModal, nextPressed, removePageChangedListener, removePageChangingListener, run, setButtonLayoutData, setMinimumPageSize, setMinimumPageSize, setModal, setPageSize, setPageSize, setShellStyle, setWizard, showPage, update, updateButtons, updateMessage, updateSize, updateSize, updateTitleBar, updateWindowTitle
getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setWindowManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setMessage
getShell
public ValidationDialog(Shell parent, Image dialogWindowIcon, String title, String banner, ImageDescriptor image)
parent
- The parent shell.protected void configureShell(Shell newShell)
configureShell
in class WizardDialog
public boolean openModal()
protected Composite createComposite(Composite parent)
public ValidatorManager getValidatorManager()
public boolean validate()
public void onValidate(boolean isValid)
onValidate
in interface IValidationMessage
isValid
- true if valid, false otherwise.public boolean performFinish()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.