@JavaBean public class DefaultUserNameStore extends UserNameStore
| Constructor and Description |
|---|
DefaultUserNameStore()
Creates a new instance of DefaultUserNameStore
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUserName(String name)
Add a username to the store.
|
boolean |
containsUserName(String name) |
Preferences |
getPreferences() |
String[] |
getUserNames()
Gets the current list of users.
|
void |
loadUserNames()
Loads the user names from Preferences
|
void |
removeUserName(String name)
Removes a username from the list.
|
void |
saveUserNames()
Saves the user names to Preferences
|
void |
setPreferences(Preferences prefs) |
void |
setUserNames(String[] userNames) |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic DefaultUserNameStore()
public void loadUserNames()
loadUserNames in class UserNameStorepublic void saveUserNames()
saveUserNames in class UserNameStorepublic String[] getUserNames()
getUserNames in class UserNameStorepublic void setUserNames(String[] userNames)
setUserNames in class UserNameStorepublic void addUserName(String name)
addUserName in class UserNameStorename - public void removeUserName(String name)
removeUserName in class UserNameStorename - public boolean containsUserName(String name)
containsUserName in class UserNameStorepublic Preferences getPreferences()
public void setPreferences(Preferences prefs)
prefs - the Preferences node to store the user names in. If null,
or undefined, then they are stored in /org/jdesktop/swingx/auth/DefaultUserNameStore.Copyright © 2017. All Rights Reserved.