Package com.nilhcem.fakesmtp.gui.info
Class ClearAllButton
java.lang.Object
java.util.Observable
com.nilhcem.fakesmtp.gui.info.ClearAllButton
- All Implemented Interfaces:
Observer
Button to clear all the information from the main panel.
The button will ask the user if he wants to delete the received emails or not.
If yes, emails will be deleted from file system.
- Since:
- 1.0
- Author:
- Nilhcem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the JButton object.void
update
(Observable o, Object arg) Enables the button, so that the user can clear/delete emails.Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
ClearAllButton
public ClearAllButton()Creates the "clear all" button"The button will be disabled by default, since no email is received when the application starts.
The button will display a confirmation dialog to know if it needs to delete the received emails or not.
If yes, emails will be deleted from the file system.
-
-
Method Details