public class AddEditOsUserWidget
extends com.google.gwt.user.client.ui.Composite
| Modifier and Type | Field and Description |
|---|---|
private InputDialog.Field |
acctDisabled
The account disabled field
|
private InputDialog.Field |
acctName
The account name field
|
private InputDialog.Field |
description
The account description field
|
private boolean |
edit
The edit boolean flag which true value indicates the edit use case.
|
private InputDialog |
inputDialog
The common input dialog
|
private com.google.inject.Provider<InputDialog> |
inputDialogProvider
The common input dialogs provider
|
private InputDialog.Field |
password
The new password field
|
private InputDialog.Field |
password2
The confirmed password field
|
private InputDialog.Field |
secSelect
The account security options field
|
| Constructor and Description |
|---|
AddEditOsUserWidget(com.google.inject.Provider<InputDialog> inputDialogProvider)
Creates the User Account Definition delegate.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
bindHandlers()
Attaches the dialog's input handlers
|
void |
build(OsUserDef uDef,
java.util.function.Consumer<java.lang.Boolean> doneHandler)
Builds the dialog's fields of the OS User Account Definition View.
|
private void |
buildStandardFields(OsUserDef uDef,
java.util.function.Consumer<java.util.ArrayList<InputDialog.Item>> doneHandler)
Builds the standard dialog's fields for the given OS user account definition.
|
private void |
buildStep2(OsUserDef uDef,
InputDialog.Item[] items,
java.util.function.Consumer<java.lang.Boolean> doneHandler)
Builds the extended OS user account fields.
|
private void |
saveUIData(OsUserDef target,
java.util.Map<InputDialog.Field,java.lang.Object> values)
Saves the user's input data into the target user account definition.
|
void |
show(com.google.gwt.user.client.ui.HasWidgets parent,
OsUserDef uDef,
java.util.function.Consumer<OsUserDef> doneHandler)
Shows the User Definition View dialog.
|
private void |
updateUIState()
Updates the input fields states depending on the custom authentication plugin input and
the selected password option.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringprivate final com.google.inject.Provider<InputDialog> inputDialogProvider
private boolean edit
private InputDialog inputDialog
private InputDialog.Field acctName
private InputDialog.Field description
private InputDialog.Field acctDisabled
private InputDialog.Field secSelect
private InputDialog.Field password
private InputDialog.Field password2
@Inject public AddEditOsUserWidget(com.google.inject.Provider<InputDialog> inputDialogProvider)
inputDialogProvider - The injected common input dialogs providerpublic void build(OsUserDef uDef, java.util.function.Consumer<java.lang.Boolean> doneHandler)
uDef - The given OS user account definitiondoneHandler - The completion consumerpublic void show(com.google.gwt.user.client.ui.HasWidgets parent,
OsUserDef uDef,
java.util.function.Consumer<OsUserDef> doneHandler)
parent - The parent container for the User Definition View dialoguDef - The OS user account definitiondoneHandler - The consumer of the OS user account modelprivate void buildStep2(OsUserDef uDef, InputDialog.Item[] items, java.util.function.Consumer<java.lang.Boolean> doneHandler)
uDef - The given OS user account definitionitems - The standard OS user account fieldsdoneHandler - The completion consumerprivate void buildStandardFields(OsUserDef uDef, java.util.function.Consumer<java.util.ArrayList<InputDialog.Item>> doneHandler)
uDef - The given OS user account definitiondoneHandler - The consumer of the dialog's fieldsprivate void bindHandlers()
private void saveUIData(OsUserDef target, java.util.Map<InputDialog.Field,java.lang.Object> values)
target - The target user account definitionvalues - The map of the dialog's fields to their valuesprivate void updateUIState()