|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.datamanager.simpleton.BasicEmailMessageComponent
Provides a rudimentary layout and display of an email message.
| 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 |
public BasicEmailMessageComponent(Entity message,
boolean isEditable)
| Method Detail |
public void setEditable(boolean isEditable)
setEditable in interface EmailMessageComponentpublic boolean isEditable()
isEditable in interface EmailMessageComponentpublic void setMessage(Entity message)
setMessage in interface EmailMessageComponent
public void recomposeMessageEntityFromFields()
throws DataManagerException
DataManagerExceptionpublic EmailMessageEntityHelper getEmailMessageEntityHelper()
public Entity getMessage()
getMessage in interface EmailMessageComponentpublic Component getComponent()
EmailMessageComponent
getComponent in interface EmailMessageComponentpublic Component getToComponent()
EmailMessageComponentTo:
field, or null if it is not displayed.
getToComponent in interface EmailMessageComponentpublic Component getCcComponent()
EmailMessageComponentCc:
field, or null if it is not displayed.
getCcComponent in interface EmailMessageComponentpublic Component getFromComponent()
EmailMessageComponentFrom: field, or null if it is not displayed.
getFromComponent in interface EmailMessageComponentpublic Component getSubjectComponent()
EmailMessageComponentSubject: field, or null if it is not displayed.
getSubjectComponent in interface EmailMessageComponentpublic Component getDateComponent()
EmailMessageComponentDate: field, or null if it is not displayed.
getDateComponent in interface EmailMessageComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||