Class ComposeEmailDialog

    • Field Detail

      • m_CloseOnSend

        protected boolean m_CloseOnSend
        whether to close the dialog when successfully sent.
      • m_DialogClosedByUser

        protected boolean m_DialogClosedByUser
        whether the user closed the dialog.
    • Constructor Detail

      • ComposeEmailDialog

        public ComposeEmailDialog​(Dialog owner)
        Creates a modal dialog.
        Parameters:
        owner - the owning dialog
      • ComposeEmailDialog

        public ComposeEmailDialog​(Dialog owner,
                                  String title)
        Creates a modal dialog.
        Parameters:
        owner - the owning dialog
        title - the title of the dialog
      • ComposeEmailDialog

        public ComposeEmailDialog​(Frame owner)
        Creates a modal dialog.
        Parameters:
        owner - the owning frame
      • ComposeEmailDialog

        public ComposeEmailDialog​(Frame owner,
                                  String title)
        Creates a modal dialog.
        Parameters:
        owner - the owning frame
        title - the title of the dialog
    • Method Detail

      • initGUI

        protected void initGUI()
        initializes the GUI elements.
        Overrides:
        initGUI in class BaseDialog
      • clear

        public void clear()
        Resets the dialog to default settings.
      • setFrom

        public void setFrom​(EmailAddress value)
        Sets the "from" email address.
        Parameters:
        value - the address
      • getFrom

        public EmailAddress getFrom()
        Returns the current from address.
        Returns:
        the "from" address
      • setTO

        public void setTO​(EmailAddress[] value)
        Sets the recipients.
        Parameters:
        value - the recipients
      • getTO

        public EmailAddress[] getTO()
        Returns the recipients.
        Returns:
        the recipients
      • setCC

        public void setCC​(EmailAddress[] value)
        Sets the CC recipients.
        Parameters:
        value - the CC Brecipients
      • getCC

        public EmailAddress[] getCC()
        Returns the CC recipients.
        Returns:
        the CC recipients
      • setBCC

        public void setBCC​(EmailAddress[] value)
        Sets the BCC recipients.
        Parameters:
        value - the BCC recipients
      • getBCC

        public EmailAddress[] getBCC()
        Returns the BCC recipients.
        Returns:
        the BCC recipients
      • setAttachments

        public void setAttachments​(PlaceholderFile[] value)
        Sets the attachments.
        Parameters:
        value - the attachments
      • getAttachments

        public PlaceholderFile[] getAttachments()
        Returns the attachments.
        Returns:
        the attachements
      • setSubject

        public void setSubject​(String value)
        Sets the "subject".
        Parameters:
        value - the subject
      • getSubject

        public String getSubject()
        Returns the "subject".
        Returns:
        the subject
      • setBody

        public void setBody​(String value)
        Sets the "body".
        Parameters:
        value - the body
      • getBody

        public String getBody()
        Returns the "signature".
        Returns:
        the signature
      • setSignature

        public void setSignature​(String value)
        Sets the "signature".
        Parameters:
        value - the signature
      • getSignature

        public String getSignature()
        Returns the "signature".
        Returns:
        the signature
      • getLastSendResult

        public String getLastSendResult()
        Returns the last result of sending an email.
        Returns:
        null if successfully (or nothing yet) sent, otherwise the error message
      • setCloseOnSend

        public void setCloseOnSend​(boolean value)
        Sets whether to close the dialog on successfully sending the email.
        Parameters:
        value - if true the dialog gets closed as soon as email got successfully sent
      • getCloseOnSend

        public boolean getCloseOnSend()
        Returns whether the dialog gets closed when successfully sending the email.
        Returns:
        true if the dialog gets closed as soon as the email got sent successfully
      • getDialogClosedByUser

        public boolean getDialogClosedByUser()
        Returns whether the dialog was closed by the user.
        Returns:
        true if closed by the user
      • beforeShow

        protected void beforeShow()
        Hook method just before the dialog is made visible.
        Overrides:
        beforeShow in class BaseDialog