Package com.nilhcem.fakesmtp.gui.tab
Class LastMailPane
java.lang.Object
com.nilhcem.fakesmtp.gui.tab.LastMailPane
- All Implemented Interfaces:
Observer
Scrolled text area where will be displayed the last received email.
- Since:
- 1.0
- Author:
- Nilhcem
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the text area and disables the possibility to edit it. -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the JScrollPane object.void
update
(Observable o, Object data) Updates the content of the text area.
-
Constructor Details
-
LastMailPane
public LastMailPane()Creates the text area and disables the possibility to edit it.
-
-
Method Details
-
get
Returns the JScrollPane object.- Returns:
- the JScrollPane object.
-
update
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.
- If the observable is a
-