Class LastMailPane

java.lang.Object
com.nilhcem.fakesmtp.gui.tab.LastMailPane
All Implemented Interfaces:
Observer

public final class LastMailPane extends Object implements Observer
Scrolled text area where will be displayed the last received email.
Since:
1.0
Author:
Nilhcem
  • Constructor Details

    • LastMailPane

      public LastMailPane()
      Creates the text area and disables the possibility to edit it.
  • Method Details

    • get

      public JScrollPane get()
      Returns the JScrollPane object.
      Returns:
      the JScrollPane object.
    • update

      public void update(Observable o, Object data)
      Updates the content of the text area.

      This method will be called by an observable element.

      • If the observable is a MailSaver object, the text area will contain the content of the last received email;
      • If the observable is a ClearAllButton object, the text area will be cleared.
      Specified by:
      update in interface Observer
      Parameters:
      o - the observable element which will notify this class.
      data - optional parameters (an EmailModel object, for the case of a MailSaver observable).