|
||||||||||
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 EmailMessageComponent
public boolean isEditable()
isEditable
in interface EmailMessageComponent
public void setMessage(Entity message)
setMessage
in interface EmailMessageComponent
public void recomposeMessageEntityFromFields() throws DataManagerException
DataManagerException
public EmailMessageEntityHelper getEmailMessageEntityHelper()
public Entity getMessage()
getMessage
in interface EmailMessageComponent
public Component getComponent()
EmailMessageComponent
getComponent
in interface EmailMessageComponent
public Component getToComponent()
EmailMessageComponent
To:
field, or null
if it is not displayed.
getToComponent
in interface EmailMessageComponent
public Component getCcComponent()
EmailMessageComponent
Cc:
field, or null
if it is not displayed.
getCcComponent
in interface EmailMessageComponent
public Component getFromComponent()
EmailMessageComponent
From:
field, or null
if it is not displayed.
getFromComponent
in interface EmailMessageComponent
public Component getSubjectComponent()
EmailMessageComponent
Subject:
field, or null
if it is not displayed.
getSubjectComponent
in interface EmailMessageComponent
public Component getDateComponent()
EmailMessageComponent
Date:
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 |