org.datamanager.simpleton
Interface EmailMessageComponent

All Known Implementing Classes:
BasicEmailMessageComponent

public interface EmailMessageComponent

Displays an optionally-editable email message in an unspecified JComponent onscreen.


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.
 Component getFromComponent()
          Returns the Component which contains the contents of the From: field, or null if it is not displayed.
 Entity getMessage()
          Gets the message displayed in this EmailMessageComponent.
 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()
          Returns true if this EmailMessageComponent allows editing of the contained message; false otherwise.
 void setEditable(boolean isEditable)
          Sets whether or not this EmailMessageComponent should allow editing of the contained message.
 void setMessage(Entity message)
          Sets the message to display in this EmailMessageComponent.
 

Method Detail

setEditable

public void setEditable(boolean isEditable)
Sets whether or not this EmailMessageComponent should allow editing of the contained message.


isEditable

public boolean isEditable()
Returns true if this EmailMessageComponent allows editing of the contained message; false otherwise.


setMessage

public void setMessage(Entity message)
Sets the message to display in this EmailMessageComponent.


getMessage

public Entity getMessage()
Gets the message displayed in this EmailMessageComponent.


getComponent

public Component getComponent()
Gets a Component which contains a graphical display of this message.


getToComponent

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


getCcComponent

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


getFromComponent

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


getSubjectComponent

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


getDateComponent

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



See the Helium Website