|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JXPanel jhomenet.server.auth.swingx.JHSLoginPanel
public class JHSLoginPanel
TODO: Class description.
Id: $Id: $
Nested Class Summary | |
---|---|
static class |
JHSLoginPanel.ComboNamePanel
If a UserNameStore is used, then this combo box is presented allowing the user to select a previous login name, or type in a new login name |
protected class |
JHSLoginPanel.LoginListenerImpl
Listener class to track state in the LoginService. |
static interface |
JHSLoginPanel.NameComponent
|
static class |
JHSLoginPanel.SaveMode
The JXLoginPanel can attempt to save certain user information such as the username, password, or both to their respective stores. |
static class |
JHSLoginPanel.SimpleNamePanel
If a UserNameStore is not used, then this text field is presented allowing the user to simply enter their user name |
static class |
JHSLoginPanel.Status
Returns the status of the login process |
Field Summary | |
---|---|
static java.lang.String |
CANCEL_LOGIN_ACTION_COMMAND
Action key for an Action in the ActionMap that cancels the Login procedure |
static java.lang.String |
LOGIN_ACTION_COMMAND
Action key for an Action in the ActionMap that initiates the Login procedure |
Constructor Summary | |
---|---|
JHSLoginPanel()
|
|
JHSLoginPanel(JHSLoginService loginService)
|
|
JHSLoginPanel(JHSLoginService loginService,
PasswordStore ps,
UserNameStore us)
|
|
JHSLoginPanel(JHSLoginService loginService,
PasswordStore passwordStore,
UserNameStore userStore,
java.util.List<java.lang.String> servers)
|
Method Summary | |
---|---|
protected void |
cancelLogin()
Cancels the login procedure. |
protected javax.swing.Action |
createCancelAction()
Create and return an Action for canceling login |
protected javax.swing.Action |
createLoginAction()
Create and return an Action for logging in |
JHSLoginService |
getLoginService()
Gets the LoginService for this panel. |
char[] |
getPassword()
Gets the Password for this panel. |
PasswordStore |
getPasswordStore()
Gets the PasswordStore for this panel. |
JHSLoginPanel.SaveMode |
getSaveMode()
|
java.util.List<java.lang.String> |
getServers()
|
JHSLoginPanel.Status |
getStatus()
Returns the panel's status |
java.lang.String |
getUserName()
Gets the User name for this panel. |
protected void |
recreateLoginPanel()
|
protected void |
replacePanels(JXPanel panelToRemove,
JXPanel panelToAdd)
|
protected void |
savePassword()
TODO |
void |
setLoginService(JHSLoginService service)
Sets the LoginService for this panel. |
void |
setPassword(char[] password)
Sets the Password for this panel. |
void |
setPasswordStore(PasswordStore store)
Sets the PasswordStore for this panel. |
void |
setSaveMode(JHSLoginPanel.SaveMode saveMode)
The save mode indicates whether the "save" password is checked by default. |
void |
setServers(java.util.List<java.lang.String> servers)
Sets the list of servers. |
protected void |
setStatus(JHSLoginPanel.Status newStatus)
Change the status |
void |
setUserName(java.lang.String username)
Sets the User name for this panel. |
protected void |
startLogin()
Initiates the login procedure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOGIN_ACTION_COMMAND
public static final java.lang.String CANCEL_LOGIN_ACTION_COMMAND
Constructor Detail |
---|
public JHSLoginPanel()
public JHSLoginPanel(JHSLoginService loginService)
service
- public JHSLoginPanel(JHSLoginService loginService, PasswordStore ps, UserNameStore us)
service
- ps
- us
- public JHSLoginPanel(JHSLoginService loginService, PasswordStore passwordStore, UserNameStore userStore, java.util.List<java.lang.String> servers)
service
- passwordStore
- userStore
- servers
- Method Detail |
---|
protected void recreateLoginPanel()
protected void replacePanels(JXPanel panelToRemove, JXPanel panelToAdd)
panelToRemove
- panelToAdd
- public JHSLoginPanel.SaveMode getSaveMode()
public void setSaveMode(JHSLoginPanel.SaveMode saveMode)
saveMode
- The saveMode to set either SAVE_NONE, SAVE_PASSWORD or SAVE_USERNAMEpublic java.util.List<java.lang.String> getServers()
public void setServers(java.util.List<java.lang.String> servers)
public void setLoginService(JHSLoginService service)
service
- servicepublic JHSLoginService getLoginService()
public void setPasswordStore(PasswordStore store)
store
- PasswordStorepublic PasswordStore getPasswordStore()
public void setUserName(java.lang.String username)
username
- User namepublic java.lang.String getUserName()
public void setPassword(char[] password)
password
- Passwordpublic char[] getPassword()
public JHSLoginPanel.Status getStatus()
protected void setStatus(JHSLoginPanel.Status newStatus)
protected javax.swing.Action createLoginAction()
protected javax.swing.Action createCancelAction()
protected void startLogin()
protected void cancelLogin()
protected void savePassword()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |