i3mclient.email
Class EmailGUI

java.lang.Object
  |
  +--i3mclient.email.EmailGUI
All Implemented Interfaces:
ControlListener, EmailListener, EventListener, org.eclipse.swt.internal.SWTEventListener

public class EmailGUI
extends Object
implements EmailListener, ControlListener

GUI class for checking emails. If no window is available, a new shell is created at the position of the old one. IMPORTANT: Before closing the application you must call close(). The method terminate all own threads.

Author:
Gunther Wuerz
See Also:
EmailReceiveManager

Constructor Summary
EmailGUI(Shell setParentWindow, EMailAccountData[] emad)
          Constructor.
 
Method Summary
 void close()
          To close window from code & stop threads
 void controlMoved(ControlEvent ce)
           
 void controlResized(ControlEvent ce)
           
 void gotNewMails(Email[] messages)
          Called if new emails are received.
 void newWindow()
          Open a new window.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailGUI

public EmailGUI(Shell setParentWindow,
                EMailAccountData[] emad)
Constructor.

Parameters:
setParentWindow - The parent window of this new email notification shell
emad - The emails which will be shown in this gui
Method Detail

newWindow

public void newWindow()
Open a new window. Only opened if necessary.


close

public void close()
To close window from code & stop threads


controlMoved

public void controlMoved(ControlEvent ce)
Specified by:
controlMoved in interface ControlListener

controlResized

public void controlResized(ControlEvent ce)
Specified by:
controlResized in interface ControlListener

gotNewMails

public void gotNewMails(Email[] messages)
Description copied from interface: EmailListener
Called if new emails are received.

Specified by:
gotNewMails in interface EmailListener
Parameters:
messages - The new emails