|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
adams.gui.core.BaseDialog
adams.gui.dialog.ComposeEmailDialog
public class ComposeEmailDialog
A standalone dialog for composing emails.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| 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 boolean |
m_CloseOnSend
whether to close the dialog when successfully sent. |
protected boolean |
m_DialogClosedByUser
whether the user closed the dialog. |
protected ComposeEmailPanel |
m_Panel
the compose panel. |
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ComposeEmailDialog(Dialog owner)
Creates a modal dialog. |
|
ComposeEmailDialog(Dialog owner,
String title)
Creates a modal dialog. |
|
ComposeEmailDialog(Frame owner)
Creates a modal dialog. |
|
ComposeEmailDialog(Frame owner,
String title)
Creates a modal dialog. |
|
| Method Summary | |
|---|---|
protected void |
beforeShow()
Hook method just before the dialog is made visible. |
void |
clear()
Resets the dialog to default settings. |
protected void |
closeOnSuccessfulSend()
Closes the dialog on a successful send. |
PlaceholderFile[] |
getAttachments()
Returns the attachments. |
EmailAddress[] |
getBCC()
Returns the BCC recipients. |
String |
getBody()
Returns the "signature". |
EmailAddress[] |
getCC()
Returns the CC recipients. |
boolean |
getCloseOnSend()
Returns whether the dialog gets closed when successfully sending the email. |
boolean |
getDialogClosedByUser()
Returns whether the dialog was closed by the user. |
EmailAddress |
getFrom()
Returns the current from address. |
String |
getLastSendResult()
Returns the last result of sending an email. |
String |
getSignature()
Returns the "signature". |
String |
getSubject()
Returns the "subject". |
EmailAddress[] |
getTO()
Returns the recipients. |
protected void |
initGUI()
initializes the GUI elements. |
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 |
setCloseOnSend(boolean value)
Sets whether to close the dialog on successfully sending the email. |
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.BaseDialog |
|---|
afterHide, afterShow, beforeHide, finishInit, initialize, setVisible |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ComposeEmailPanel m_Panel
protected boolean m_CloseOnSend
protected boolean m_DialogClosedByUser
| Constructor Detail |
|---|
public ComposeEmailDialog(Dialog owner)
owner - the owning dialog
public ComposeEmailDialog(Dialog owner,
String title)
owner - the owning dialogtitle - the title of the dialogpublic ComposeEmailDialog(Frame owner)
owner - the owning frame
public ComposeEmailDialog(Frame owner,
String title)
owner - the owning frametitle - the title of the dialog| Method Detail |
|---|
protected void initGUI()
initGUI in class BaseDialogpublic void clear()
protected void closeOnSuccessfulSend()
getCloseOnSend(),
getLastSendResult()public String send()
setCloseOnSend(boolean)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()
public String getLastSendResult()
public void setCloseOnSend(boolean value)
value - if true the dialog gets closed as soon as email got
successfully sentpublic boolean getCloseOnSend()
public boolean getDialogClosedByUser()
protected void beforeShow()
beforeShow in class BaseDialog
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||