public class ProcessAccountDefinition
extends com.google.gwt.user.client.ui.Composite
Modifier and Type | Class and Description |
---|---|
static class |
ProcessAccountDefinition.ProcessData
Process Account model
|
private static class |
ProcessAccountDefinition.UIData
Holds the peer certificates.
|
Modifier and Type | Field and Description |
---|---|
private InputDialog.Field |
acctDisabled
The account disabled field
|
(package private) AccountExtension |
acctExtension
The account extension
|
private InputDialog.Field |
acctName
The account name field
|
private AdminServiceAsync |
adminService
The administration server interface
|
private Alarm |
alarm
The server alarm manager
|
private InputDialog.Field |
certificates
The peer certificates 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 |
master
The master mode field
|
private InputDialog.Field |
server
The server mode field
|
Constructor and Description |
---|
ProcessAccountDefinition(com.google.inject.Provider<InputDialog> inputDialogProvider,
AdminServiceAsync adminService,
Alarm alarm)
Creates the Process Account Definition delegate.
|
Modifier and Type | Method and Description |
---|---|
void |
build(ProcessDef pDef,
java.util.function.Consumer<java.lang.Boolean> doneHandler)
Builds the dialog's fields of the Process Account Definition View.
|
private void |
buildStandardFields(ProcessDef pDef,
java.util.function.Consumer<java.util.ArrayList<InputDialog.Item>> doneHandler)
Builds the standard dialog's fields for the given process account definition.
|
private void |
buildStep2(ProcessDef pDef,
InputDialog.Item[] items,
java.util.function.Consumer<java.lang.Boolean> doneHandler)
Builds the extended process account fields.
|
private void |
loadUIData(java.util.function.Consumer<ProcessAccountDefinition.UIData> doneHandler)
Loads UIData asynchronously and invokes the given result's consumer if this action is
completed successfully.
|
private void |
saveUIData(ProcessDef target,
java.util.Map<InputDialog.Field,java.lang.Object> values)
Saves the user's input data into the target process account definition.
|
void |
show(com.google.gwt.user.client.ui.HasWidgets parent,
ProcessDef pDef,
java.util.function.Consumer<ProcessAccountDefinition.ProcessData> doneHandler)
Shows the Process Definition View dialog.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, 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, toString
@Inject(optional=true) AccountExtension acctExtension
private final com.google.inject.Provider<InputDialog> inputDialogProvider
private final AdminServiceAsync adminService
private final Alarm alarm
private boolean edit
private InputDialog inputDialog
private InputDialog.Field acctName
private InputDialog.Field acctDisabled
private InputDialog.Field description
private InputDialog.Field certificates
private InputDialog.Field server
private InputDialog.Field master
@Inject public ProcessAccountDefinition(com.google.inject.Provider<InputDialog> inputDialogProvider, AdminServiceAsync adminService, Alarm alarm)
inputDialogProvider
- The injected common input dialogs provideradminService
- The injected administration server interfacealarm
- The injected server alarm managerpublic void build(ProcessDef pDef, java.util.function.Consumer<java.lang.Boolean> doneHandler)
pDef
- The given process account definitiondoneHandler
- The completion consumerpublic void show(com.google.gwt.user.client.ui.HasWidgets parent, ProcessDef pDef, java.util.function.Consumer<ProcessAccountDefinition.ProcessData> doneHandler)
parent
- The parent container for the Process Definition View dialogpDef
- The process account definitiondoneHandler
- The consumer of the process account modelprivate void buildStep2(ProcessDef pDef, InputDialog.Item[] items, java.util.function.Consumer<java.lang.Boolean> doneHandler)
pDef
- The given process account definitionitems
- The standard process account fieldsdoneHandler
- The completion consumerprivate void buildStandardFields(ProcessDef pDef, java.util.function.Consumer<java.util.ArrayList<InputDialog.Item>> doneHandler)
pDef
- The given process account definitiondoneHandler
- The consumer of the dialog's fieldsprivate void loadUIData(java.util.function.Consumer<ProcessAccountDefinition.UIData> doneHandler)
doneHandler
- The given result's consumerprivate void saveUIData(ProcessDef target, java.util.Map<InputDialog.Field,java.lang.Object> values)
target
- The target process account definitionvalues
- The map of the dialog's fields to their values