public final class PasswordDialog
extends java.lang.Object
implements java.beans.PropertyChangeListener
PasswordDialog
class is used to retrieve information from a user.Modifier and Type | Field and Description |
---|---|
javax.swing.Action |
nextFocusAction
Move to focus forward action.
|
javax.swing.Action |
prevFocusAction
Moves the focus backwards in the dialog.
|
Constructor and Description |
---|
PasswordDialog()
Empty Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInput(java.lang.String title,
java.lang.String description,
javax.swing.Icon icon,
int width,
int height)
Returns the input from a user.
|
java.lang.String |
getPassword(java.lang.String title,
java.lang.String description,
javax.swing.Icon icon,
java.awt.Component parent)
Prompt and return input.
|
boolean |
isCheckboxSelected() |
void |
propertyChange(java.beans.PropertyChangeEvent e) |
void |
savePassword(java.lang.String roomName,
java.lang.String password) |
void |
setPasswordField(java.lang.String password) |
public javax.swing.Action nextFocusAction
public javax.swing.Action prevFocusAction
public void setPasswordField(java.lang.String password)
public boolean isCheckboxSelected()
public void savePassword(java.lang.String roomName, java.lang.String password)
public java.lang.String getInput(java.lang.String title, java.lang.String description, javax.swing.Icon icon, int width, int height)
title
- the title of the dialog.description
- the dialog description.icon
- the icon to use.width
- the dialog widthheight
- the dialog heightpublic java.lang.String getPassword(java.lang.String title, java.lang.String description, javax.swing.Icon icon, java.awt.Component parent)
title
- the title of the dialog.description
- the dialog description.icon
- the icon to use.parent
- the parent to use.public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener