Package com.nilhcem.fakesmtp.gui.tab
Class LogsPane
java.lang.Object
com.nilhcem.fakesmtp.gui.tab.LogsPane
- All Implemented Interfaces:
Observer
Scrolled text area where will be displayed the SMTP logs.
- Since:
- 1.0
- Author:
- Nilhcem
-
Constructor Summary
ConstructorsConstructorDescriptionLogsPane()
Creates the text area, sets it as non-editable and sets an observer to intercept logs. -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the JScrollPane object.void
update
(Observable o, Object log) Updates the content of the text area.
-
Constructor Details
-
LogsPane
public LogsPane()Creates the text area, sets it as non-editable and sets an observer to intercept logs.
-
-
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
SMTPLogsObservable
object, the text area will display the received log. - If the observable is a
ClearAllButton
object, the text area will be cleared.
- If the observable is a
-