org.datamanager.simpleton
Class BasicEmailMessageComponent

java.lang.Object
  |
  +--org.datamanager.simpleton.BasicEmailMessageComponent
All Implemented Interfaces:
EmailMessageComponent

public class BasicEmailMessageComponent
extends Object
implements EmailMessageComponent

Provides a rudimentary layout and display of an email message.

Version:
$Revision: 1.16 $

Constructor Summary
BasicEmailMessageComponent(Entity message, boolean isEditable)
          Creates a new BasicEmailMessageComponent with the given message and editability.
 
Method Summary
 Component getCcComponent()
          Returns the Component which contains the contents of the Cc: field, or null if it is not displayed.
 Component getComponent()
          Gets a Component which contains a graphical display of this message.
 Component getDateComponent()
          Returns the Compenent which contains the contents of the Date: field, or null if it is not displayed.
 EmailMessageEntityHelper getEmailMessageEntityHelper()
          Retrieves the EmailMessageEntityHelper used by this component.
 Component getFromComponent()
          Returns the Component which contains the contents of the From: field, or null if it is not displayed.
 Entity getMessage()
          Retrieves the Entity representing the email message this component is displaying.
 Component getSubjectComponent()
          Returns the Component which contains the contents of the Subject: field, or null if it is not displayed.
 Component getToComponent()
          Returns the Component which contains the contents of the To: field, or null if it is not displayed.
 boolean isEditable()
          Tests whether this component may be edited by the user.
 void recomposeMessageEntityFromFields()
          Resets the Entity attributes to the content of the GUI components.
 void setEditable(boolean isEditable)
          Sets whether this component may be edited by the user.
 void setMessage(Entity message)
          Sets the message held by this component to the email message represented by the provided Entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicEmailMessageComponent

public BasicEmailMessageComponent(Entity message,
                                  boolean isEditable)
Creates a new BasicEmailMessageComponent with the given message and editability.

Method Detail

setEditable

public void setEditable(boolean isEditable)
Sets whether this component may be edited by the user.

Specified by:
setEditable in interface EmailMessageComponent

isEditable

public boolean isEditable()
Tests whether this component may be edited by the user.

Specified by:
isEditable in interface EmailMessageComponent

setMessage

public void setMessage(Entity message)
Sets the message held by this component to the email message represented by the provided Entity.

Specified by:
setMessage in interface EmailMessageComponent

recomposeMessageEntityFromFields

public void recomposeMessageEntityFromFields()
                                      throws DataManagerException
Resets the Entity attributes to the content of the GUI components.

DataManagerException

getEmailMessageEntityHelper

public EmailMessageEntityHelper getEmailMessageEntityHelper()
Retrieves the EmailMessageEntityHelper used by this component.


getMessage

public Entity getMessage()
Retrieves the Entity representing the email message this component is displaying.

Specified by:
getMessage in interface EmailMessageComponent

getComponent

public Component getComponent()
Description copied from interface: EmailMessageComponent
Gets a Component which contains a graphical display of this message.

Specified by:
getComponent in interface EmailMessageComponent

getToComponent

public Component getToComponent()
Description copied from interface: EmailMessageComponent
Returns the Component which contains the contents of the To: field, or null if it is not displayed.

Specified by:
getToComponent in interface EmailMessageComponent

getCcComponent

public Component getCcComponent()
Description copied from interface: EmailMessageComponent
Returns the Component which contains the contents of the Cc: field, or null if it is not displayed.

Specified by:
getCcComponent in interface EmailMessageComponent

getFromComponent

public Component getFromComponent()
Description copied from interface: EmailMessageComponent
Returns the Component which contains the contents of the From: field, or null if it is not displayed.

Specified by:
getFromComponent in interface EmailMessageComponent

getSubjectComponent

public Component getSubjectComponent()
Description copied from interface: EmailMessageComponent
Returns the Component which contains the contents of the Subject: field, or null if it is not displayed.

Specified by:
getSubjectComponent in interface EmailMessageComponent

getDateComponent

public Component getDateComponent()
Description copied from interface: EmailMessageComponent
Returns the Compenent which contains the contents of the Date: field, or null if it is not displayed.

Specified by:
getDateComponent in interface EmailMessageComponent


See the Helium Website