Class HyperlinkDialog

  • All Implemented Interfaces:
    IValidationMessage

    public class HyperlinkDialog
    extends org.eclipse.swt.widgets.Dialog
    implements IValidationMessage
    Hyperlink text dialog box.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      Constructor Description
      HyperlinkDialog​(org.eclipse.swt.widgets.Shell parent, ModuleModel model, java.lang.String[] dialogData)
      Create the dialog.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onValidate​(boolean isValid)
      Call to inform validity of all validators.
      int open()
      Open the dialog.
      void setMessage​(java.lang.String newMessage, int newType)
      Set the message for this page with an indication of what type of message it is.
      • Methods inherited from class org.eclipse.swt.widgets.Dialog

        checkSubclass, getParent, getStyle, getText, setText
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HyperlinkDialog

        public HyperlinkDialog​(org.eclipse.swt.widgets.Shell parent,
                               ModuleModel model,
                               java.lang.String[] dialogData)
        Create the dialog.
        Parameters:
        parent - The parent shell.
        dialogData - Dialog data [3] where [0]='Title', [1]=(KStringTag.Type.typeString), [2]=reference, [3]=target.
    • Method Detail

      • open

        public int open()
        Open the dialog.
        Returns:
        the gradient.
      • setMessage

        public void setMessage​(java.lang.String newMessage,
                               int newType)
        Set the message for this page with an indication of what type of message it is.

        The valid message types are one of IMessageProvider.NONE, IMessageProvider.INFORMATION,IMessageProvider.WARNING, or IMessageProvider.ERROR.

        Note that for backward compatibility, a message of type ERROR is different than an error message (set using setErrorMessage). An error message overrides the current message until the error message is cleared. This method replaces the current message and does not affect the error message.

        Specified by:
        setMessage in interface IValidationMessage
        Parameters:
        newMessage - The message, or null to clear the message.
        newType - The message type.
      • 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.