Package com.nilhcem.fakesmtp.gui.info
Class NbReceivedLabel
java.lang.Object
com.nilhcem.fakesmtp.gui.info.NbReceivedLabel
- All Implemented Interfaces:
Observer
Label class to display the number of received emails.
- Since:
- 1.0
- Author:
- Nilhcem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the JLabel object.void
update
(Observable o, Object arg) Actions which will be done when the component will be notified by an Observable object.
-
Constructor Details
-
NbReceivedLabel
public NbReceivedLabel()Creates the label class (with a bold font).
-
-
Method Details
-
get
Returns the JLabel object.- Returns:
- the JLabel object.
-
update
Actions which will be done when the component will be notified by an Observable object.- If the observable element is a
MailSaver
object, the method will increment the number of received messages and update theUIModel
; - If the observable element is a
ClearAllButton
, the method will reinitialize the number of received messages and update theUIModel
; - When running on OS X the method will also update the Dock Icon with the number of received messages.
- If the observable element is a
-