java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
public class ConfigurationPanel
Extends:
javax.swing.JPanel
Author:
james todd [gonzo at jxta dot org]
Version:
$Id: ConfigurationPanel.java,v 1.8 2005/05/06 20:31:07 gonzo Exp $
| Field Summary |
private List |
A list of files to use as a configuration base line |
private boolean |
|
private JButton |
|
private JTextField |
The field that contains the name of the peer |
private JPasswordField |
The field for the password used for pse login |
private final static ResourceBundle |
|
private JPasswordField |
The field used to confirm the password for pse login |
| Constructor Summary |
public |
Create a new ConfigurationPanel |
| Method Summary |
private void |
|
private void |
|
public String |
Return the password the peer used to secure the pse
directory |
public String |
Return the peerName the peer signed on with. |
public boolean |
|
private boolean |
Validate user input and display a descriptive message
if the input is incorrect |
private void |
|
private void |
Construct the UI layout to
soliciated the login information |
private List configuration = null
A list of files to use as a configuration base line
private boolean isExit = false
private JButton ok = null
private JTextField peerName = null
The field that contains the name of the peer
private JPasswordField pwd = null
The field for the password used for pse login
private final static ResourceBundle STRINGS = Resources.getStrings()
private JPasswordField vpwd = null
The field used to confirm the password for pse login
public ConfigurationPanel(List configuration)
Create a new ConfigurationPanel
Parameters:
configuration file containing configuration information
private void clear()
private void exit()
public String getPassword()
Return the password the peer used to secure the pse
directory
Return:
the pse password
Exceptions:
IllegalStateException if the peer did not complete login
public String getPeerName()
Return the peerName the peer signed on with.
Return:
the peerName the peer signed on with
Exceptions:
IllegalStateException if the peer did not complete login
public boolean isExit()
private boolean isValidInput()
Validate user input and display a descriptive message
if the input is incorrect
private void setExit(boolean isExit)
private void ui()
Construct the UI layout to
soliciated the login information