Class ValidationDialog

All Implemented Interfaces:
IValidationMessage, IPageChangeProvider, IRunnableContext, IShellProvider, IWizardContainer, IWizardContainer2

public class ValidationDialog extends WizardDialog implements IValidationMessage
Template validation dialog box for a large composite. On top of this composite is created a banner like the "New Wizard" does, and the bottom contains the OK and Cancel buttons.
Author:
Christopher Mindus
  • Constructor Details

    • ValidationDialog

      public ValidationDialog(Shell parent, Image dialogWindowIcon, String title, String banner, ImageDescriptor image)
      Create the dialog.
      Parameters:
      parent - The parent shell.
  • Method Details

    • configureShell

      protected void configureShell(Shell newShell)
      Configures the new shell.
      Overrides:
      configureShell in class WizardDialog
    • openModal

      public boolean openModal()
      Processes the dialog.
      Returns:
      true for OK, false for cancel.
    • createComposite

      protected Composite createComposite(Composite parent)
      Override to create the main composite of the dialog.
    • getValidatorManager

      public ValidatorManager getValidatorManager()
      Gets the validator manager.
    • validate

      public boolean validate()
      Validates the entire dialog.
      Returns:
      true if all validates OK (with possible warnings), false otherwise.
    • onValidate

      public void onValidate(boolean isValid)
      Call to inform validity of all validators.
      Specified by:
      onValidate in interface IValidationMessage
      Parameters:
      isValid - true if valid, false otherwise.
    • performFinish

      public boolean performFinish()
      Finishes the dialog. Override to perform custom processing. This method returns true by default.
      Returns:
      true to indicate the finish request was accepted, and false to indicate that the finish request was refused.