|
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
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
com.ehsbe.commons.gui.JxDialog
com.ehsbe.commons.gui.JxLoginDialog
public class JxLoginDialog
A standard login dialog that provides a reasonable amount of flexibility while also providing ease of use and a professional look.
Nested Class Summary | |
---|---|
static class |
JxLoginDialog.State
The states (progress) for this dialog. |
Nested classes/interfaces inherited from class com.ehsbe.commons.gui.JxDialog |
---|
JxDialog.CloseAction |
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 | |
---|---|
static String |
STOP_LOGIN_CMD
the action command of the action/button, used to stop a running login process. |
Fields inherited from class com.ehsbe.commons.gui.JxDialog |
---|
BORDER_WIDTH, CLOSE_ACTION_CMD, COL_GAP, ROW_GAP |
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 | |
---|---|
JxLoginDialog(Dialog parent,
org.jdesktop.swingx.auth.LoginService service,
org.jdesktop.swingx.auth.PasswordStore ps,
org.jdesktop.swingx.auth.UserNameStore us)
Create a login dialog using the given stores and services. |
|
JxLoginDialog(Frame parent,
org.jdesktop.swingx.auth.LoginService service,
org.jdesktop.swingx.auth.PasswordStore ps,
org.jdesktop.swingx.auth.UserNameStore us)
Create a login dialog using the given stores and services. |
Method Summary | |
---|---|
static JxLoginDialog |
getDialog(Component parent,
org.jdesktop.swingx.auth.LoginService service,
org.jdesktop.swingx.auth.PasswordStore ps,
org.jdesktop.swingx.auth.UserNameStore us)
Create a login dialog using the given stores and services. |
GuiErrorHandler |
getErrorHandler()
Get the gui error handler to be used on login errors. |
org.jdesktop.swingx.auth.LoginService |
getLoginService()
Get the service used to find the server url and finally to use for authentication. |
org.jdesktop.swingx.auth.PasswordStore |
getPasswordStore()
Get the PasswordStore for this panel. |
JxLoginDialog.State |
getState()
Get the current state (progress) for this dialog. |
org.jdesktop.swingx.auth.UserNameStore |
getUserNameStore()
Get the UserNameStore for this panel. |
protected void |
processWindowEvent(WindowEvent e)
|
void |
setErrorHandler(GuiErrorHandler errorHandler)
Set the gui error handler to be used on login errors. |
void |
setLoginService(org.jdesktop.swingx.auth.LoginService service)
Set the login service, used to retrieve the server url and finally to use for authentication. |
void |
setPasswordStore(org.jdesktop.swingx.auth.PasswordStore store)
Sets the PasswordStore used to retrieve and store passwords. |
void |
setUserNameStore(org.jdesktop.swingx.auth.UserNameStore store)
Sets the UserNameStore used to retrieve and store user names. |
void |
setVisible(boolean b)
|
Methods inherited from class com.ehsbe.commons.gui.JxDialog |
---|
addButton, close, getButtonPanel, getDefaultMessageBorder, removeButton, setButtonPanel, setHelp |
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 |
Field Detail |
---|
public static final String STOP_LOGIN_CMD
Constructor Detail |
---|
public JxLoginDialog(Frame parent, org.jdesktop.swingx.auth.LoginService service, org.jdesktop.swingx.auth.PasswordStore ps, org.jdesktop.swingx.auth.UserNameStore us)
parent
- determines the frame in which the dialog is displayed; if the
parentComponent
has no Frame
, a
default Frame
is usedservice
- service to use for authentication and retrieving the server
urlps
- password store to use for storing passwords. Might be
null
us
- username store to use ofr retrieving/storing usernames. Might
be null
public JxLoginDialog(Dialog parent, org.jdesktop.swingx.auth.LoginService service, org.jdesktop.swingx.auth.PasswordStore ps, org.jdesktop.swingx.auth.UserNameStore us)
parent
- determines the frame in which the dialog is displayed; if the
parentComponent
has no Frame
, a
default Frame
is usedservice
- service to use for authentication and retrieving the server
urlps
- password store to use for storing passwords. Might be
null
us
- username store to use ofr retrieving/storing usernames. Might
be null
Method Detail |
---|
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 static JxLoginDialog getDialog(Component parent, org.jdesktop.swingx.auth.LoginService service, org.jdesktop.swingx.auth.PasswordStore ps, org.jdesktop.swingx.auth.UserNameStore us)
parent
- determines the frame in which the dialog is displayed; if the
parentComponent
has no Frame
, a
default Frame
is usedservice
- service to use for authentication and retrieving the server
urlps
- password store to use for storing passwords. Might be
null
us
- username store to use ofr retrieving/storing usernames. Might
be null
public JxLoginDialog.State getState()
null
stateprotected void processWindowEvent(WindowEvent e)
processWindowEvent
in class JDialog
public void setVisible(boolean b)
setVisible
in class Dialog
public GuiErrorHandler getErrorHandler()
null
if not set, the handler otherwise.public void setErrorHandler(GuiErrorHandler errorHandler)
errorHandler
- null
if the default should be used, the handler
otherwise.GuiErrorHandler.handleStandard(java.awt.Component, Throwable)
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |