|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
net.java.sip.communicator.util.swing.SIPCommDialog
net.java.sip.communicator.util.swing.AuthenticationWindow
public class AuthenticationWindow
The AuthenticationWindow is the window where the user should type his user identifier and password to login.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.java.sip.communicator.util.swing.SIPCommDialog |
|---|
SIPCommDialog.DialogWindowAdapter |
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| 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.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AuthenticationWindow(Dialog owner,
String userName,
char[] password,
String server,
boolean isUserNameEditable,
ImageIcon icon)
Creates an instance of the LoginWindow. |
|
AuthenticationWindow(String server,
boolean isUserNameEditable,
ImageIcon icon)
Creates an instance of the LoginWindow. |
|
AuthenticationWindow(String userName,
char[] password,
String server,
boolean isUserNameEditable,
ImageIcon icon)
Creates an instance of the LoginWindow. |
|
AuthenticationWindow(String userName,
char[] password,
String server,
boolean isUserNameEditable,
ImageIcon icon,
String errorMessage)
Creates an instance of the LoginWindow. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent evt)
Handles the ActionEvent triggered when one of the buttons is clicked. |
protected void |
close(boolean isEscaped)
Automatically clicks the cancel button, when this window is closed. |
char[] |
getPassword()
Returns the password entered by the user. |
String |
getUserName()
Returns the user name entered by the user or previously set if the user name is not editable. |
boolean |
isCanceled()
Indicates if this window has been canceled. |
boolean |
isRememberPassword()
Indicates if the password should be remembered. |
void |
setAllowSavePassword(boolean allow)
Shows or hides the "save password" checkbox. |
void |
setVisible(boolean isVisible)
Shows this modal dialog. |
| Methods inherited from class net.java.sip.communicator.util.swing.SIPCommDialog |
|---|
addKeyBinding, dispose |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationWindow(String server,
boolean isUserNameEditable,
ImageIcon icon)
server - the server nameisUserNameEditable - indicates if the user name is editableicon - the icon to display on the left of the authentication window
public AuthenticationWindow(String userName,
char[] password,
String server,
boolean isUserNameEditable,
ImageIcon icon,
String errorMessage)
userName - the user name to set by defaultpassword - the password to set by defaultserver - the server name this authentication window is aboutisUserNameEditable - indicates if the user name should be editable
by the user or noticon - the icon displayed on the left of the authentication windowerrorMessage - an error message explaining a reason for opening
the authentication dialog (when a wrong password was provided, etc.)
public AuthenticationWindow(String userName,
char[] password,
String server,
boolean isUserNameEditable,
ImageIcon icon)
userName - the user name to set by defaultpassword - the password to set by defaultserver - the server name this authentication window is aboutisUserNameEditable - indicates if the user name should be editable
by the user or noticon - the icon displayed on the left of the authentication window
public AuthenticationWindow(Dialog owner,
String userName,
char[] password,
String server,
boolean isUserNameEditable,
ImageIcon icon)
owner - the owner of this dialoguserName - the user name to set by defaultpassword - the password to set by defaultserver - the server name this authentication window is aboutisUserNameEditable - indicates if the user name should be editable
by the user or noticon - the icon displayed on the left of the authentication window| Method Detail |
|---|
public void setAllowSavePassword(boolean allow)
allow - the checkbox is shown when allow is truepublic void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerevt - the action event that has just occurred.protected void close(boolean isEscaped)
close in class SIPCommDialogisEscaped - indicates if the window has been closed by pressing the
Esc keypublic void setVisible(boolean isVisible)
setVisible in class SIPCommDialogisVisible - specifies whether we should be showing or hiding the
window.public boolean isCanceled()
public String getUserName()
public char[] getPassword()
public boolean isRememberPassword()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||