|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
adams.gui.core.BasePanel
adams.gui.dialog.ComposeEmailPanel
public class ComposeEmailPanel
A panel for composing an email.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected JButton |
m_ButtonSend
the button for sending. |
protected GenericArrayEditorPanel |
m_GAEPanelAttachments
the attachments. |
protected GenericArrayEditorPanel |
m_GAEPanelBCC
the "bcc recipients". |
protected GenericArrayEditorPanel |
m_GAEPanelCC
the "cc recipients". |
protected GenericArrayEditorPanel |
m_GAEPanelTO
the "to recipients". |
protected String |
m_LastSendResult
the last "send" result. |
protected HashSet<ActionListener> |
m_Listeners
the send listeners. |
protected BaseTabbedPane |
m_TabbedPane
the tabbed pane for recipients and attachments. |
protected BaseTextArea |
m_TextBody
the body. |
protected JTextField |
m_TextFrom
the "from". |
protected BaseTextArea |
m_TextSignature
the signature. |
protected JTextField |
m_TextSubject
the subject. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ComposeEmailPanel()
|
|
| Method Summary | |
|---|---|
void |
addSendListener(ActionListener l)
Adds the listener for send events. |
protected String |
check()
Checks whether we can send an email. |
void |
clear()
Resets the dialog to default settings. |
PlaceholderFile[] |
getAttachments()
Returns the attachments. |
EmailAddress[] |
getBCC()
Returns the BCC recipients. |
String |
getBody()
Returns the "body". |
EmailAddress[] |
getCC()
Returns the CC recipients. |
EmailAddress |
getFrom()
Returns the current from address. |
String |
getLastSendResult()
Returns the last result obtained when sending an email. |
String |
getSignature()
Returns the "signature". |
String |
getSubject()
Returns the "subject". |
EmailAddress[] |
getTO()
Returns the recipients. |
void |
grabFocus()
The body text area grabs the focus. |
protected void |
initGUI()
Initializes the widgets. |
protected void |
initialize()
Initializes the members. |
protected void |
notifySendListeners()
Sends out an event to all send listeners. |
void |
removeSendListener(ActionListener l)
Removes the listener for send events. |
String |
send()
Attempts to send the email. |
void |
setAttachments(PlaceholderFile[] value)
Sets the attachments. |
void |
setBCC(EmailAddress[] value)
Sets the BCC recipients. |
void |
setBody(String value)
Sets the "body". |
void |
setCC(EmailAddress[] value)
Sets the CC recipients. |
void |
setFrom(EmailAddress value)
Sets the "from" email address. |
void |
setSignature(String value)
Sets the "signature". |
void |
setSubject(String value)
Sets the "subject". |
void |
setTO(EmailAddress[] value)
Sets the recipients. |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, finishInit, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, main, setParentTitle, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JTextField m_TextFrom
protected GenericArrayEditorPanel m_GAEPanelTO
protected GenericArrayEditorPanel m_GAEPanelCC
protected GenericArrayEditorPanel m_GAEPanelBCC
protected GenericArrayEditorPanel m_GAEPanelAttachments
protected JTextField m_TextSubject
protected BaseTextArea m_TextBody
protected BaseTextArea m_TextSignature
protected JButton m_ButtonSend
protected BaseTabbedPane m_TabbedPane
protected String m_LastSendResult
protected HashSet<ActionListener> m_Listeners
| Constructor Detail |
|---|
public ComposeEmailPanel()
| Method Detail |
|---|
protected void initialize()
initialize in class BasePanelprotected void initGUI()
initGUI in class BasePanelpublic void clear()
public void setFrom(EmailAddress value)
value - the addresspublic EmailAddress getFrom()
public void setTO(EmailAddress[] value)
value - the recipientspublic EmailAddress[] getTO()
public void setCC(EmailAddress[] value)
value - the CC Brecipientspublic EmailAddress[] getCC()
public void setBCC(EmailAddress[] value)
value - the BCC recipientspublic EmailAddress[] getBCC()
public void setAttachments(PlaceholderFile[] value)
value - the attachmentspublic PlaceholderFile[] getAttachments()
public void setSubject(String value)
value - the subjectpublic String getSubject()
public void setBody(String value)
value - the bodypublic String getBody()
public void setSignature(String value)
value - the signaturepublic String getSignature()
protected String check()
public String send()
public String getLastSendResult()
public void addSendListener(ActionListener l)
l - the listener to addpublic void removeSendListener(ActionListener l)
l - the listener to removeprotected void notifySendListeners()
public void grabFocus()
grabFocus in class JComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||