org.jSyncManager.Conduit.Email

Class ConnectionsPanel


public class ConnectionsPanel
extends javax.swing.JPanel

The GUI configuration panel class for the Email jConduit. This class provides the panel for configuring the Email jConduit.

Constructor Summary

ConnectionsPanel()
Creates a new ConnectionsPanel panel object.
ConnectionsPanel(Vector connections)
Create a new ConnectionsPanel with Vector of EmailBase types.

Method Summary

javax.swing.ButtonGroup
getBgConnType()
Getter for property bgConnType.
javax.swing.JButton
getBtnAdd()
Getter for property btnAdd.
javax.swing.JButton
getBtnMod()
Getter for property btnMod.
javax.swing.JButton
getBtnRem()
Getter for property btnRem.
javax.swing.JPanel
getButtonPanel()
Getter for property ButtonPanel.
javax.swing.JList
getConnList()
Getter for property connList.
javax.swing.JPanel
getConnTypePanel()
Getter for property ConnTypePanel.
java.util.Vector
getConns()
Getter for property conns.
javax.swing.JLabel
getLblConnType()
Getter for property lblConnType.
javax.swing.JLabel
getLblFrom()
Getter for property lblFrom.
javax.swing.JLabel
getLblHost()
Getter for property lblHost.
javax.swing.JLabel
getLblName()
Getter for property lblName.
javax.swing.JLabel
getLblPort()
Getter for property lblPort.
javax.swing.JLabel
getLblPwd()
Getter for property lblPwd.
javax.swing.JLabel
getLblUser()
Getter for property lblUser.
javax.swing.JRadioButton
getRbPop3()
Getter for property rbPop3.
javax.swing.JRadioButton
getRbSmtp()
Getter for property rbSmtp.
protected String
getResourceBundleName()
Retrieves the name of the class to use as the Conduits Resource Bundle.
SmtpMail
getSMTPConn()
Getter for property conns, with SMTP set.
javax.swing.JPanel
getSettingsPanel()
Getter for property SettingsPanel.
javax.swing.JTextField
getTxtFrom()
Getter for property txtFrom.
javax.swing.JTextField
getTxtHost()
Getter for property txtHost.
javax.swing.JTextField
getTxtName()
Getter for property txtName.
javax.swing.JTextField
getTxtPort()
Getter for property txtPort.
javax.swing.JPasswordField
getTxtPwd()
Getter for property txtPwd.
javax.swing.JTextField
getTxtUser()
Getter for property txtUser.
boolean
isPop3()
Checks whether this is a Pop3Mail object.
static void
main(args[] )
Main test function.
void
setBgConnType(javax.swing.ButtonGroup bgConnType)
Setter for property bgConnType.
void
setBtnAdd(javax.swing.JButton btnAdd)
Setter for property btnAdd.
void
setBtnMod(javax.swing.JButton btnMod)
Setter for property btnMod.
void
setBtnRem(javax.swing.JButton btnRem)
Setter for property btnRem.
void
setButtonPanel(javax.swing.JPanel ButtonPanel)
Setter for property ButtonPanel.
void
setConnList(javax.swing.JList connList)
Setter for property connList.
void
setConnTypePanel(javax.swing.JPanel ConnTypePanel)
Setter for property ConnTypePanel.
void
setConns(java.util.Vector newconns)
Setter for property conns.
void
setConnsFromProperties()
Setter for property conns.
void
setLblConnType(javax.swing.JLabel lblConnType)
Setter for property lblConnType.
void
setLblFrom(javax.swing.JLabel lblFrom)
Setter for property lblFrom.
void
setLblHost(javax.swing.JLabel lblHost)
Setter for property lblHost.
void
setLblName(javax.swing.JLabel lblName)
Setter for property lblName.
void
setLblPort(javax.swing.JLabel lblPort)
Setter for property lblPort.
void
setLblPwd(javax.swing.JLabel lblPwd)
Setter for property lblPwd.
void
setLblUser(javax.swing.JLabel lblUser)
Setter for property lblUser.
void
setRbPop3(javax.swing.JRadioButton rbPop3)
Setter for property rbPop3.
void
setRbSmtp(javax.swing.JRadioButton rbSmtp)
Setter for property rbSmtp.
void
setSettingsPanel(javax.swing.JPanel SettingsPanel)
Setter for property SettingsPanel.
void
setTxtFrom(javax.swing.JTextField txtFrom)
Setter for property txtFrom.
void
setTxtHost(javax.swing.JTextField txtHost)
Setter for property txtHost.
void
setTxtName(javax.swing.JTextField txtName)
Setter for property txtName.
void
setTxtPort(javax.swing.JTextField txtPort)
Setter for property txtPort.
void
setTxtPwd(javax.swing.JPasswordField txtPwd)
Setter for property txtPwd.
void
setTxtUser(javax.swing.JTextField txtUser)
Setter for property txtUser.
String
writeEmailProperties()
Writer for property email_connections properties.

Constructor Details

ConnectionsPanel

public ConnectionsPanel()
Creates a new ConnectionsPanel panel object.

ConnectionsPanel

public ConnectionsPanel(Vector connections)
Create a new ConnectionsPanel with Vector of EmailBase types.
Parameters:
connections - Vector of EmailBase types for inclusion into connections list.

Method Details

getBgConnType

public javax.swing.ButtonGroup getBgConnType()
Getter for property bgConnType.
Returns:
Value of property bgConnType.

getBtnAdd

public javax.swing.JButton getBtnAdd()
Getter for property btnAdd.
Returns:
Value of property btnAdd.

getBtnMod

public javax.swing.JButton getBtnMod()
Getter for property btnMod.
Returns:
Value of property btnMod.

getBtnRem

public javax.swing.JButton getBtnRem()
Getter for property btnRem.
Returns:
Value of property btnRem.

getButtonPanel

public javax.swing.JPanel getButtonPanel()
Getter for property ButtonPanel.
Returns:
Value of property ButtonPanel.

getConnList

public javax.swing.JList getConnList()
Getter for property connList.
Returns:
Value of property connList.

getConnTypePanel

public javax.swing.JPanel getConnTypePanel()
Getter for property ConnTypePanel.
Returns:
Value of property ConnTypePanel.

getConns

public java.util.Vector getConns()
Getter for property conns.
Returns:
Value of property conns.

getLblConnType

public javax.swing.JLabel getLblConnType()
Getter for property lblConnType.
Returns:
Value of property lblConnType.

getLblFrom

public javax.swing.JLabel getLblFrom()
Getter for property lblFrom.
Returns:
Value of property lblFrom.

getLblHost

public javax.swing.JLabel getLblHost()
Getter for property lblHost.
Returns:
Value of property lblHost.

getLblName

public javax.swing.JLabel getLblName()
Getter for property lblName.
Returns:
Value of property lblName.

getLblPort

public javax.swing.JLabel getLblPort()
Getter for property lblPort.
Returns:
Value of property lblPort.

getLblPwd

public javax.swing.JLabel getLblPwd()
Getter for property lblPwd.
Returns:
Value of property lblPwd.

getLblUser

public javax.swing.JLabel getLblUser()
Getter for property lblUser.
Returns:
Value of property lblUser.

getRbPop3

public javax.swing.JRadioButton getRbPop3()
Getter for property rbPop3.
Returns:
Value of property rbPop3.

getRbSmtp

public javax.swing.JRadioButton getRbSmtp()
Getter for property rbSmtp.
Returns:
Value of property rbSmtp.

getResourceBundleName

protected String getResourceBundleName()
Retrieves the name of the class to use as the Conduits Resource Bundle.
Returns:
the fully-qualified classname of the class to use as this jConduits resource bundle.

getSMTPConn

public SmtpMail getSMTPConn()
Getter for property conns, with SMTP set.
Returns:
SmtpMail connection, or null if none exists.

getSettingsPanel

public javax.swing.JPanel getSettingsPanel()
Getter for property SettingsPanel.
Returns:
Value of property SettingsPanel.

getTxtFrom

public javax.swing.JTextField getTxtFrom()
Getter for property txtFrom.
Returns:
Value of property txtFrom.

getTxtHost

public javax.swing.JTextField getTxtHost()
Getter for property txtHost.
Returns:
Value of property txtHost.

getTxtName

public javax.swing.JTextField getTxtName()
Getter for property txtName.
Returns:
Value of property txtName.

getTxtPort

public javax.swing.JTextField getTxtPort()
Getter for property txtPort.
Returns:
Value of property txtPort.

getTxtPwd

public javax.swing.JPasswordField getTxtPwd()
Getter for property txtPwd.
Returns:
Value of property txtPwd.

getTxtUser

public javax.swing.JTextField getTxtUser()
Getter for property txtUser.
Returns:
Value of property txtUser.

isPop3

public boolean isPop3()
Checks whether this is a Pop3Mail object.
Returns:
true if this is a Pop3Mail object, false otherwise.

main

public static void main(args[] )
Main test function.
Parameters:

setBgConnType

public void setBgConnType(javax.swing.ButtonGroup bgConnType)
Setter for property bgConnType.
Parameters:
bgConnType - New value of property bgConnType.

setBtnAdd

public void setBtnAdd(javax.swing.JButton btnAdd)
Setter for property btnAdd.
Parameters:
btnAdd - New value of property btnAdd.

setBtnMod

public void setBtnMod(javax.swing.JButton btnMod)
Setter for property btnMod.
Parameters:
btnMod - New value of property btnMod.

setBtnRem

public void setBtnRem(javax.swing.JButton btnRem)
Setter for property btnRem.
Parameters:
btnRem - New value of property btnRem.

setButtonPanel

public void setButtonPanel(javax.swing.JPanel ButtonPanel)
Setter for property ButtonPanel.
Parameters:
ButtonPanel - New value of property ButtonPanel.

setConnList

public void setConnList(javax.swing.JList connList)
Setter for property connList.
Parameters:
connList - New value of property connList.

setConnTypePanel

public void setConnTypePanel(javax.swing.JPanel ConnTypePanel)
Setter for property ConnTypePanel.
Parameters:
ConnTypePanel - New value of property ConnTypePanel.

setConns

public void setConns(java.util.Vector newconns)
Setter for property conns.
Parameters:
newconns - New value of property conns.

setConnsFromProperties

public void setConnsFromProperties()
Setter for property conns.

setLblConnType

public void setLblConnType(javax.swing.JLabel lblConnType)
Setter for property lblConnType.
Parameters:
lblConnType - New value of property lblConnType.

setLblFrom

public void setLblFrom(javax.swing.JLabel lblFrom)
Setter for property lblFrom.
Parameters:
lblFrom - New value of property lblFrom.

setLblHost

public void setLblHost(javax.swing.JLabel lblHost)
Setter for property lblHost.
Parameters:
lblHost - New value of property lblHost.

setLblName

public void setLblName(javax.swing.JLabel lblName)
Setter for property lblName.
Parameters:
lblName - New value of property lblName.

setLblPort

public void setLblPort(javax.swing.JLabel lblPort)
Setter for property lblPort.
Parameters:
lblPort - New value of property lblPort.

setLblPwd

public void setLblPwd(javax.swing.JLabel lblPwd)
Setter for property lblPwd.
Parameters:
lblPwd - New value of property lblPwd.

setLblUser

public void setLblUser(javax.swing.JLabel lblUser)
Setter for property lblUser.
Parameters:
lblUser - New value of property lblUser.

setRbPop3

public void setRbPop3(javax.swing.JRadioButton rbPop3)
Setter for property rbPop3.
Parameters:
rbPop3 - New value of property rbPop3.

setRbSmtp

public void setRbSmtp(javax.swing.JRadioButton rbSmtp)
Setter for property rbSmtp.
Parameters:
rbSmtp - New value of property rbSmtp.

setSettingsPanel

public void setSettingsPanel(javax.swing.JPanel SettingsPanel)
Setter for property SettingsPanel.
Parameters:
SettingsPanel - New value of property SettingsPanel.

setTxtFrom

public void setTxtFrom(javax.swing.JTextField txtFrom)
Setter for property txtFrom.
Parameters:
txtFrom - New value of property txtFrom.

setTxtHost

public void setTxtHost(javax.swing.JTextField txtHost)
Setter for property txtHost.
Parameters:
txtHost - New value of property txtHost.

setTxtName

public void setTxtName(javax.swing.JTextField txtName)
Setter for property txtName.
Parameters:
txtName - New value of property txtName.

setTxtPort

public void setTxtPort(javax.swing.JTextField txtPort)
Setter for property txtPort.
Parameters:
txtPort - New value of property txtPort.

setTxtPwd

public void setTxtPwd(javax.swing.JPasswordField txtPwd)
Setter for property txtPwd.
Parameters:
txtPwd - New value of property txtPwd.

setTxtUser

public void setTxtUser(javax.swing.JTextField txtUser)
Setter for property txtUser.
Parameters:
txtUser - New value of property txtUser.

writeEmailProperties

public String writeEmailProperties()
            throws FileNotFoundException,
                   IOException
Writer for property email_connections properties.
Returns:
the name of the file we saved to.