org.exoplatform.mail.webui.popup
Class UIComposeForm

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.mail.webui.popup.UIComposeForm
All Implemented Interfaces:
UIPopupComponent

public class UIComposeForm
extends org.exoplatform.webui.form.UIForm
implements UIPopupComponent

Created by The eXo Platform SARL Author : Hung Nguyen Phung Nam Aus 01, 2007 2:48:18 PM


Nested Class Summary
static class UIComposeForm.AttachmentActionListener
           
static class UIComposeForm.ChangePriorityActionListener
           
static class UIComposeForm.DiscardChangeActionListener
           
static class UIComposeForm.DownloadActionListener
           
static class UIComposeForm.RemoveAttachmentActionListener
           
static class UIComposeForm.ReturnReceiptActionListener
           
static class UIComposeForm.SaveDraftActionListener
           
static class UIComposeForm.SendActionListener
           
static class UIComposeForm.ShowBccActionListener
           
static class UIComposeForm.ShowCcActionListener
           
static class UIComposeForm.ToActionListener
           
static class UIComposeForm.ToBCCActionListener
           
static class UIComposeForm.ToCCActionListener
           
static class UIComposeForm.UseVisualEdiorActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static java.lang.String ACT_BCC
           
static java.lang.String ACT_CC
           
static java.lang.String ACT_REMOVE
           
static java.lang.String ACT_TO
           
 java.util.List<UIAddressForm.ContactData> bccContacts
           
 java.util.List<UIAddressForm.ContactData> ccContacts
           
static java.lang.String FIELD_ATTACHMENTS
           
static java.lang.String FIELD_BCC
           
static java.lang.String FIELD_CC
           
static java.lang.String FIELD_FROM
           
static java.lang.String FIELD_MESSAGECONTENT
           
static java.lang.String FIELD_SUBJECT
           
static java.lang.String FIELD_TO
           
static java.lang.String FIELD_TO_SET
           
 int MESSAGE_FOWARD
           
 int MESSAGE_IN_DRAFT
           
static int MESSAGE_NEW
           
 int MESSAGE_REPLY
           
 int MESSAGE_REPLY_ALL
           
 java.lang.String parentPath_
           
 java.util.List<UIAddressForm.ContactData> toContacts
           
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIComposeForm()
           
 
Method Summary
 void activate()
           
 void addToUploadFileList(Attachment attachfile)
           
 void deActivate()
           
 void fillFields(Message msg)
           
 boolean fromDrafts()
           
 java.util.List<Attachment> getAttachFileList()
           
 java.util.List<UIAddressForm.ContactData> getBccContacts()
           
 java.util.List<UIAddressForm.ContactData> getCcContacts()
           
 java.util.List<java.lang.String> getCheckedAttach()
           
 int getComposeType()
           
 java.util.List<Contact> getContacts()
           
 org.exoplatform.download.DownloadService getDownloadService()
           
 java.lang.String getFieldAttachmentsValue()
           
 java.lang.String getFieldBccValue()
           
 java.lang.String getFieldCcValue()
           
 java.lang.String getFieldContentValue()
           
 java.lang.String getFieldFromValue()
           
 java.lang.String getFieldSubjectValue()
           
 java.lang.String getFieldToValue()
           
 java.lang.String getLabel(java.lang.String id)
           
 Message getMessage()
           
 java.lang.String getPortalName()
           
 long getPriority()
           
 java.lang.String getRepository()
           
 java.util.List<UIAddressForm.ContactData> getToContacts()
           
 java.util.List<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> getUploadFileList()
           
 void init(java.lang.String accountId, Message msg, int composeType)
           
 boolean isShowBcc()
           
 boolean isShowCc()
           
 boolean isVisualEditor()
           
 void refreshUploadFileList()
           
 void removeFromUploadFileList(Attachment attachfile)
           
 void removeUploadFileList()
           
 void resetFields()
           
 boolean saveToSentFolder(java.lang.String usename, Account account, Message message)
           
 void setBccContacts(java.util.List<UIAddressForm.ContactData> contactList)
           
 void setCcContacts(java.util.List<UIAddressForm.ContactData> contactList)
           
 void setComposeType(int t)
           
 void setFieldBccValue(java.lang.String value)
           
 void setFieldCcValue(java.lang.String value)
           
 void setFieldContentValue(java.lang.String value)
           
 void setFieldSubjectValue(java.lang.String value)
           
 void setFieldToValue(java.lang.String value)
           
 void setMessage(Message message, int composeType)
           
 void setPriority(long priority)
           
 void setShowBcc(boolean showBcc_)
           
 void setShowCc(boolean showCc_)
           
 void setToContacts(java.util.List<UIAddressForm.ContactData> contactList)
           
 void setVisualEditor(boolean b)
           
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getSubmitAction, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes, visit
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibbling, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_TO_SET

public static final java.lang.String FIELD_TO_SET

FIELD_FROM

public static final java.lang.String FIELD_FROM
See Also:
Constant Field Values

FIELD_SUBJECT

public static final java.lang.String FIELD_SUBJECT
See Also:
Constant Field Values

FIELD_TO

public static final java.lang.String FIELD_TO
See Also:
Constant Field Values

FIELD_CC

public static final java.lang.String FIELD_CC
See Also:
Constant Field Values

FIELD_BCC

public static final java.lang.String FIELD_BCC
See Also:
Constant Field Values

FIELD_ATTACHMENTS

public static final java.lang.String FIELD_ATTACHMENTS
See Also:
Constant Field Values

FIELD_MESSAGECONTENT

public static final java.lang.String FIELD_MESSAGECONTENT
See Also:
Constant Field Values

ACT_TO

public static final java.lang.String ACT_TO
See Also:
Constant Field Values

ACT_CC

public static final java.lang.String ACT_CC
See Also:
Constant Field Values

ACT_BCC

public static final java.lang.String ACT_BCC
See Also:
Constant Field Values

ACT_REMOVE

public static final java.lang.String ACT_REMOVE
See Also:
Constant Field Values

MESSAGE_NEW

public static final int MESSAGE_NEW
See Also:
Constant Field Values

MESSAGE_IN_DRAFT

public final int MESSAGE_IN_DRAFT
See Also:
Constant Field Values

MESSAGE_REPLY

public final int MESSAGE_REPLY
See Also:
Constant Field Values

MESSAGE_REPLY_ALL

public final int MESSAGE_REPLY_ALL
See Also:
Constant Field Values

MESSAGE_FOWARD

public final int MESSAGE_FOWARD
See Also:
Constant Field Values

parentPath_

public java.lang.String parentPath_

toContacts

public java.util.List<UIAddressForm.ContactData> toContacts

ccContacts

public java.util.List<UIAddressForm.ContactData> ccContacts

bccContacts

public java.util.List<UIAddressForm.ContactData> bccContacts
Constructor Detail

UIComposeForm

public UIComposeForm()
              throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

isVisualEditor

public boolean isVisualEditor()

setVisualEditor

public void setVisualEditor(boolean b)

init

public void init(java.lang.String accountId,
                 Message msg,
                 int composeType)
          throws java.lang.Exception
Throws:
java.lang.Exception

getDownloadService

public org.exoplatform.download.DownloadService getDownloadService()

getPortalName

public java.lang.String getPortalName()

getRepository

public java.lang.String getRepository()
                               throws java.lang.Exception
Throws:
java.lang.Exception

getToContacts

public java.util.List<UIAddressForm.ContactData> getToContacts()

setToContacts

public void setToContacts(java.util.List<UIAddressForm.ContactData> contactList)

getCcContacts

public java.util.List<UIAddressForm.ContactData> getCcContacts()

setCcContacts

public void setCcContacts(java.util.List<UIAddressForm.ContactData> contactList)

getBccContacts

public java.util.List<UIAddressForm.ContactData> getBccContacts()

setBccContacts

public void setBccContacts(java.util.List<UIAddressForm.ContactData> contactList)

getComposeType

public int getComposeType()

setComposeType

public void setComposeType(int t)

getUploadFileList

public java.util.List<org.exoplatform.webui.form.UIFormInputWithActions.ActionData> getUploadFileList()
                                                                                               throws java.lang.Exception
Throws:
java.lang.Exception

getCheckedAttach

public java.util.List<java.lang.String> getCheckedAttach()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

refreshUploadFileList

public void refreshUploadFileList()
                           throws java.lang.Exception
Throws:
java.lang.Exception

addToUploadFileList

public void addToUploadFileList(Attachment attachfile)

removeFromUploadFileList

public void removeFromUploadFileList(Attachment attachfile)

removeUploadFileList

public void removeUploadFileList()

getAttachFileList

public java.util.List<Attachment> getAttachFileList()

getMessage

public Message getMessage()

setMessage

public void setMessage(Message message,
                       int composeType)
                throws java.lang.Exception
Throws:
java.lang.Exception

fillFields

public void fillFields(Message msg)
                throws java.lang.Exception
Throws:
java.lang.Exception

getPriority

public long getPriority()

setPriority

public void setPriority(long priority)

getFieldFromValue

public java.lang.String getFieldFromValue()

getFieldSubjectValue

public java.lang.String getFieldSubjectValue()

setFieldSubjectValue

public void setFieldSubjectValue(java.lang.String value)

getFieldToValue

public java.lang.String getFieldToValue()

setFieldToValue

public void setFieldToValue(java.lang.String value)

getFieldCcValue

public java.lang.String getFieldCcValue()

setFieldCcValue

public void setFieldCcValue(java.lang.String value)

getFieldBccValue

public java.lang.String getFieldBccValue()

setFieldBccValue

public void setFieldBccValue(java.lang.String value)

getFieldAttachmentsValue

public java.lang.String getFieldAttachmentsValue()

getFieldContentValue

public java.lang.String getFieldContentValue()

setFieldContentValue

public void setFieldContentValue(java.lang.String value)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getContacts

public java.util.List<Contact> getContacts()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

resetFields

public void resetFields()

activate

public void activate()
              throws java.lang.Exception
Specified by:
activate in interface UIPopupComponent
Throws:
java.lang.Exception

deActivate

public void deActivate()
                throws java.lang.Exception
Specified by:
deActivate in interface UIPopupComponent
Throws:
java.lang.Exception

fromDrafts

public boolean fromDrafts()

getLabel

public java.lang.String getLabel(java.lang.String id)
Overrides:
getLabel in class org.exoplatform.webui.form.UIForm

setShowCc

public void setShowCc(boolean showCc_)

isShowCc

public boolean isShowCc()

setShowBcc

public void setShowBcc(boolean showBcc_)

isShowBcc

public boolean isShowBcc()

saveToSentFolder

public boolean saveToSentFolder(java.lang.String usename,
                                Account account,
                                Message message)
                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.