Class ComposeEmailPanel

    • Constructor Detail

      • ComposeEmailPanel

        public ComposeEmailPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • 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 "body".
        Returns:
        the body
      • setSignature

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

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

        protected String check()
        Checks whether we can send an email.
        Returns:
        null if the email can get sent, otherwise error message
      • send

        public String send()
        Attempts to send the email.
        Returns:
        null if successfully sent
      • getLastSendResult

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

        public void addSendListener​(ActionListener l)
        Adds the listener for send events.
        Parameters:
        l - the listener to add
      • removeSendListener

        public void removeSendListener​(ActionListener l)
        Removes the listener for send events.
        Parameters:
        l - the listener to remove
      • notifySendListeners

        protected void notifySendListeners()
        Sends out an event to all send listeners.
      • grabFocus

        public void grabFocus()
        The body text area grabs the focus.
        Overrides:
        grabFocus in class JComponent