Module is.codion.swing.common.ui
Package is.codion.swing.common.ui.dialog
Interface LoginDialogBuilder
- All Superinterfaces:
DialogBuilder<LoginDialogBuilder>
A login dialog builder.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Validates a login attempt. -
Method Summary
Modifier and TypeMethodDescriptiondefaultUser
(User defaultUser) inputFieldColumns
(int inputFieldColumns) show()
southComponent
(JComponent southComponent) validator
(LoginDialogBuilder.LoginValidator validator) Methods inherited from interface is.codion.swing.common.ui.dialog.DialogBuilder
icon, keyEvent, location, locationRelativeTo, owner, owner, title, titleProvider
-
Method Details
-
defaultUser
- Parameters:
defaultUser
- the default user credentials to display- Returns:
- this LoginDialogBuilder instance
-
validator
- Parameters:
validator
- the login validator to use- Returns:
- this LoginDialogBuilder instance
-
southComponent
- Parameters:
southComponent
- a component to add to the south of the credentials input fields- Returns:
- this LoginDialogBuilder instance
-
inputFieldColumns
- Parameters:
inputFieldColumns
- the number of columns to display in the input fields (username/password), 8 by default- Returns:
- this LoginDialogBuilder instance
-
show
User show()- Returns:
- the logged-in user
- Throws:
CancelException
- in case the login is cancelled
-