org.datamanager.simpleton
Class EmailDisplaySimpleton

java.lang.Object
  |
  +--org.datamanager.kernel.Simpleton
        |
        +--org.datamanager.kernel.GuiSimpleton
              |
              +--org.datamanager.simpleton.EmailDisplaySimpleton
All Implemented Interfaces:
EventHandler

public class EmailDisplaySimpleton
extends GuiSimpleton
implements EventHandler

Provides a GUI to view one single email. Supports text/plain content-type at this time.

Author:
Team Helium

Nested Class Summary
 
Nested classes inherited from class org.datamanager.kernel.Simpleton
Simpleton.Information, Simpleton.Priority
 
Constructor Summary
EmailDisplaySimpleton()
           
 
Method Summary
 void handle(DataManagerEvent dataManagerEvent)
          The BasicEmailViewerSimpleton generates EntityDisplayRequestEvents with the appropriate Email entities.
 void process()
          Runs this Simpleton.
 
Methods inherited from class org.datamanager.kernel.GuiSimpleton
dispose, exportComponent, exportComponent
 
Methods inherited from class org.datamanager.kernel.Simpleton
clone, getInformation, getPriority, setInformation, setPriority, start
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailDisplaySimpleton

public EmailDisplaySimpleton()
Method Detail

process

public void process()
Runs this Simpleton. Subscribes to the Pool listening for EntityDisplayRequestEvents that contain email messages. FIXME: We need to deal with exception handling in a better fashion.

Specified by:
process in class Simpleton

handle

public void handle(DataManagerEvent dataManagerEvent)
The BasicEmailViewerSimpleton generates EntityDisplayRequestEvents with the appropriate Email entities. This method handles the aforementioned events by displaying the email message in a new window. FIXME: We need to deal with exception handling in a better fashion.

Specified by:
handle in interface EventHandler
Parameters:
dataManagerEvent - The event to handle.


See the Helium Website