public class SmtpPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
SmtpPanel()
Creates new form SmtpPanel, standard constructer.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Reset all the Gui fields.
|
java.lang.String |
getAttachments()
Returns path of file(s) to be attached in e-mail from textfield
|
java.lang.String |
getBody()
Returns message body, i.e. main-mime-part of message (from textfield)
|
java.lang.String |
getConnectionTimeout()
Returns connection timeout for SMTP connection from textfield
|
java.lang.String |
getEmlMessage()
Returns path to eml message to be sent
|
CollectionProperty |
getHeaderFields() |
java.lang.String |
getMailFrom()
Returns sender-address for e-mail from textfield
|
java.lang.String |
getMailReplyTo() |
java.lang.String |
getPassword() |
java.lang.String |
getPort()
Returns port of mail-server (standard 25 for SMTP/SMTP with StartTLS, 465
for SSL) from textfield
|
java.lang.String |
getReceiverBCC()
Returns receiver in field "bcc" from textfield
|
java.lang.String |
getReceiverCC()
Returns receiver in field "cc" from textfield
|
java.lang.String |
getReceiverTo()
Returns receiver in field "to" from textfield
|
SecuritySettingsPanel |
getSecuritySettingsPanel() |
java.lang.String |
getServer()
Returns mail-server to be used to send message (from textfield)
|
java.lang.String |
getSubject()
Returns subject of the e-mail from textfield
|
java.lang.String |
getTimeout()
Returns timeout for SMTP connection from textfield
|
java.lang.String |
getUsername() |
boolean |
isEnableDebug() |
boolean |
isIncludeTimestamp()
Returns if current timestamp is included in the subject (checkbox)
|
boolean |
isMessageSizeStatistics()
Returns if message size statistics are processed.
|
boolean |
isPlainBody()
Returns true if message body should be plain (i.e. not multipart/mixed)
|
boolean |
isSuppressSubject()
Returns true if subject header should be suppressed
|
boolean |
isUseAuth()
Returns if mail-server needs authentication (checkbox)
|
boolean |
isUseEmlMessage()
Returns if an .eml-message is sent instead of the content of message-text
area
|
void |
setAttachments(java.lang.String attachments)
Sets path of file to be attached in e-mail in textfield
|
void |
setBody(java.lang.String messageBodyText)
Sets message body, i.e. main-mime-part of message in textfield
|
void |
setConnectionTimeout(java.lang.String connectionTimeout)
Sets connection timeout (ms) for SMTP connection
|
void |
setEmlMessage(java.lang.String emlMessage)
Set path to eml message to be sent
|
void |
setEnableDebug(boolean selected) |
void |
setHeaderFields(CollectionProperty fields) |
void |
setIncludeTimestamp(boolean includeTimestamp)
Set timestamp to be included in the message-subject (checkbox)
|
void |
setMailFrom(java.lang.String mailFrom)
Sets sender-address of e-mail in textfield
|
void |
setMailReplyTo(java.lang.String replyTo) |
void |
setMessageSizeStatistic(boolean val)
Set message size to be calculated and included in sample result
(checkbox)
|
void |
setPassword(java.lang.String authPassword) |
void |
setPlainBody(boolean plainBody)
Sets the property that defines if the body should be plain (i.e. not multipart/mixed)
|
void |
setPort(java.lang.String port)
Sets port of mail-server
|
void |
setReceiverBCC(java.lang.String mailToBCC)
Sets receiver in textfield "bcc"
|
void |
setReceiverCC(java.lang.String mailToCC)
Sets receiver in textfield "cc"
|
void |
setReceiverTo(java.lang.String mailTo)
Sets receiver in textfield "to"
|
void |
setSecuritySettingsPanel(SecuritySettingsPanel securitySettingsPanel) |
void |
setServer(java.lang.String server)
Sets mail-server to be used to send message in textfield
|
void |
setSubject(java.lang.String subject)
Sets subject of the e-mail in textfield
|
void |
setSuppressSubject(boolean emptySubject)
Sets the property that defines if the subject header should be suppressed
|
void |
setTimeout(java.lang.String timeout)
Sets timeout (ms) for SMTP connection
|
void |
setUseAuth(boolean selected)
Set whether mail server needs auth.
|
void |
setUseEmlMessage(boolean useEmlMessage)
Set the use of an .eml-message instead of the content of message-text
area
|
void |
setUsername(java.lang.String username) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public SmtpPanel()
public java.lang.String getMailFrom()
public java.lang.String getReceiverTo()
public java.lang.String getReceiverCC()
public java.lang.String getReceiverBCC()
public java.lang.String getBody()
public void setBody(java.lang.String messageBodyText)
messageBodyText
- Message bodypublic void setMailFrom(java.lang.String mailFrom)
mailFrom
- Senderpublic void setReceiverTo(java.lang.String mailTo)
mailTo
- Receiver "to"public void setReceiverCC(java.lang.String mailToCC)
mailToCC
- Receiver "cc"public void setReceiverBCC(java.lang.String mailToBCC)
mailToBCC
- Receiver "bcc"public java.lang.String getAttachments()
public void setAttachments(java.lang.String attachments)
attachments
- File to attachpublic java.lang.String getPort()
public void setPort(java.lang.String port)
port
- Mail-server portpublic java.lang.String getServer()
public void setServer(java.lang.String server)
server
- FQDN or IP of mail-serverpublic java.lang.String getTimeout()
public void setTimeout(java.lang.String timeout)
timeout
- SMTP Timeout (ms)public java.lang.String getConnectionTimeout()
public void setConnectionTimeout(java.lang.String connectionTimeout)
connectionTimeout
- SMTP Connection Timeout (ms)public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject
- Subject of e-mailpublic boolean isSuppressSubject()
public void setSuppressSubject(boolean emptySubject)
emptySubject
- flag whether subject header should be suppressedpublic boolean isPlainBody()
public void setPlainBody(boolean plainBody)
plainBody
- whether to use a plain body (i.e. not multipart/mixed)public boolean isUseAuth()
public void setUseAuth(boolean selected)
selected
- flag whether mail server needs authpublic boolean isEnableDebug()
public void setEnableDebug(boolean selected)
public boolean isUseEmlMessage()
public void setUseEmlMessage(boolean useEmlMessage)
useEmlMessage
- Use eml messagepublic java.lang.String getEmlMessage()
public void setEmlMessage(java.lang.String emlMessage)
emlMessage
- path to eml message to be sentpublic boolean isIncludeTimestamp()
public void setIncludeTimestamp(boolean includeTimestamp)
includeTimestamp
- Should timestamp be included in subject?public boolean isMessageSizeStatistics()
public void setMessageSizeStatistic(boolean val)
val
- Should message size be calculated?public java.lang.String getPassword()
public void setPassword(java.lang.String authPassword)
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public CollectionProperty getHeaderFields()
public void setHeaderFields(CollectionProperty fields)
public java.lang.String getMailReplyTo()
public void setMailReplyTo(java.lang.String replyTo)
public void clear()
public SecuritySettingsPanel getSecuritySettingsPanel()
public void setSecuritySettingsPanel(SecuritySettingsPanel securitySettingsPanel)
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.