|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.jdesktop.swingx.JXPanel
org.jdesktop.swingx.JXImagePanel
com.ehsbe.commons.gui.JxLoginPanel
public class JxLoginPanel
JxLoginPanel is a JPanel that implements a Login dialog with support for saving passwords supplied for future use in a secure manner. It is intended to work with LoginService and PasswordStore and UserNameStore to obtain the values for the appropriate controls.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jdesktop.swingx.JXImagePanel |
---|
org.jdesktop.swingx.JXImagePanel.Style |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
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 |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JxLoginPanel()
Create a login panel with no pusername and password store controls enabled. |
|
JxLoginPanel(org.jdesktop.swingx.auth.UserNameStore userStore,
org.jdesktop.swingx.auth.LoginService service,
org.jdesktop.swingx.auth.PasswordStore passwordStore)
Create a new login panel. |
Method Summary | |
---|---|
org.jdesktop.swingx.auth.LoginService |
getLoginService()
Get the service used to find the server url |
char[] |
getPassword()
Gets the Password for this panel. |
org.jdesktop.swingx.auth.PasswordStore |
getPasswordStore()
Get the PasswordStore for this panel. |
String |
getUserName()
Gets the User name entered/selected in the user name field/list. |
org.jdesktop.swingx.auth.UserNameStore |
getUserNameStore()
Get the UserNameStore for this panel. |
boolean |
isSaveEnabled()
Check, whether the username/password should be saved. |
void |
setLoginService(org.jdesktop.swingx.auth.LoginService service)
Set the login service, used to retrieve the server url, which is in turn used to retrieve the correct user name list/password from the user name and password store. |
void |
setPassword(char[] password)
Sets the Password for this panel. |
void |
setPasswordStore(org.jdesktop.swingx.auth.PasswordStore store)
Sets the PasswordStore used to retrieve stored passwords. |
void |
setSaveEnable(boolean enable)
Explicitly enable/disable username/password saving. |
void |
setUserName(String username)
Populate the User name field with the given name or select it from the given list (which has been generated from the user name store). |
void |
setUserNameStore(org.jdesktop.swingx.auth.UserNameStore store)
Sets the UserNameStore used to retrieve user names for the user name combo selection box. |
Methods inherited from class org.jdesktop.swingx.JXImagePanel |
---|
getImage, getPreferredSize, getStyle, isEditable, paintComponent, setDefaultImage, setEditable, setImage, setImageLoader, setStyle |
Methods inherited from class org.jdesktop.swingx.JXPanel |
---|
getAlpha, getBackgroundPainter, getEffectiveAlpha, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, isInheritAlpha, isPaintBorderInsets, paint, setAlpha, setBackground, setBackgroundPainter, setInheritAlpha, setPaintBorderInsets, setScrollableTracksViewportHeight, setScrollableTracksViewportWidth |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JxLoginPanel()
public JxLoginPanel(org.jdesktop.swingx.auth.UserNameStore userStore, org.jdesktop.swingx.auth.LoginService service, org.jdesktop.swingx.auth.PasswordStore passwordStore)
userStore
- where to obtain user names for combo selection boxservice
- where to obtain the server aka url for login, which is
in turn used, to get password information from the password storepasswordStore
- where to obtain stored passwords.Method Detail |
---|
public void setSaveEnable(boolean enable)
isSaveEnabled()
.
enable
- true
if username/password saving should be
enabled.public void setUserName(String username)
username
- User namepublic String getUserName()
null
public void setPasswordStore(org.jdesktop.swingx.auth.PasswordStore store)
store
- a PasswordStore, which might be null
public org.jdesktop.swingx.auth.PasswordStore getPasswordStore()
null
if not set, the password store otherwise.public void setUserNameStore(org.jdesktop.swingx.auth.UserNameStore store)
store
- a store, which might be null
public org.jdesktop.swingx.auth.UserNameStore getUserNameStore()
null
if not set, the username store otherwise.public void setLoginService(org.jdesktop.swingx.auth.LoginService service)
service
- service to use, might be null
public org.jdesktop.swingx.auth.LoginService getLoginService()
null
if not set, the service otherwise.public void setPassword(char[] password)
password
- Passwordpublic char[] getPassword()
public boolean isSaveEnabled()
true
, if the corresponding checkox is selected.
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |