P
- the type of ProxyE
- the type of Editorpublic abstract class RequestFactoryEditorDelegate<P,E extends Editor<P>> extends AbstractEditorDelegate<P,E>
AbstractEditorDelegate.Chain<R,S extends Editor<R>>
Modifier and Type | Field and Description |
---|---|
protected EventBus |
eventBus |
protected RequestFactory |
factory |
protected RequestContext |
request |
Constructor and Description |
---|
RequestFactoryEditorDelegate() |
Modifier and Type | Method and Description |
---|---|
protected <R,S extends Editor<R>> |
addSubDelegate(AbstractEditorDelegate<R,S> subDelegate,
String path,
S subEditor)
Initialize a sub-delegate whenever one is added to the editor hierarchy.
|
protected EditorVisitor |
createInitializerVisitor() |
protected <T> T |
ensureMutable(T object) |
protected void |
initialize(EventBus eventBus,
RequestFactory factory,
String pathSoFar,
E editor) |
protected void |
initialize(String pathSoFar,
E editor)
Must call four-arg version instead.
|
void |
setRequestContext(RequestContext request) |
protected boolean |
shouldFlush()
Indicates whether or not calls to
#flush are expected as part of
normal operation. |
HandlerRegistration |
subscribe()
Register for notifications if object being edited is updated.
|
accept, appendPath, appendPath, createChain, createComposedDelegate, getEditor, getEditorChain, getErrors, getObject, getPath, initializeSubDelegates, isDirty, recordError, recordError, setDirty, setEditor, setObject
protected EventBus eventBus
protected RequestFactory factory
protected RequestContext request
public void setRequestContext(RequestContext request)
public HandlerRegistration subscribe()
EditorDelegate
null
.
The notification will occur via ValueAwareEditor.onPropertyChange(java.lang.String...)
if the backend supports in-place property updates, otherwise updates will
be passed via ValueAwareEditor.setValue(T)
.
subscribe
in interface EditorDelegate<P>
subscribe
in class AbstractEditorDelegate<P,E extends Editor<P>>
null
if the delegate does not support subscriptionprotected <R,S extends Editor<R>> void addSubDelegate(AbstractEditorDelegate<R,S> subDelegate, String path, S subEditor)
AbstractEditorDelegate
addSubDelegate
in class AbstractEditorDelegate<P,E extends Editor<P>>
protected EditorVisitor createInitializerVisitor()
createInitializerVisitor
in class AbstractEditorDelegate<P,E extends Editor<P>>
protected <T> T ensureMutable(T object)
ensureMutable
in class AbstractEditorDelegate<P,E extends Editor<P>>
protected void initialize(EventBus eventBus, RequestFactory factory, String pathSoFar, E editor)
protected void initialize(String pathSoFar, E editor)
initialize
in class AbstractEditorDelegate<P,E extends Editor<P>>
protected boolean shouldFlush()
AbstractEditorDelegate
#flush
are expected as part of
normal operation.shouldFlush
in class AbstractEditorDelegate<P,E extends Editor<P>>
Copyright © 2016. All rights reserved.