public abstract class

RequestFactoryEditorDelegate

extends AbstractEditorDelegate<T, E extends Editor<T>>
java.lang.Object
   ↳ com.google.gwt.editor.client.impl.AbstractEditorDelegate<T, E extends com.google.gwt.editor.client.Editor<T>>
     ↳ com.google.gwt.requestfactory.client.impl.RequestFactoryEditorDelegate<P, E extends com.google.gwt.editor.client.Editor<P>>

Class Overview

Base class for generated EditorDelegates using a RequestFactory as the backend.

Summary

Fields
protected EventBus eventBus
protected RequestFactory factory
protected RequestContext request
[Expand]
Inherited Fields
From class com.google.gwt.editor.client.impl.AbstractEditorDelegate
Public Constructors
RequestFactoryEditorDelegate()
Public Methods
void initialize(EventBus eventBus, RequestFactory factory, String pathSoFar, P object, E editor, DelegateMap delegateMap, RequestContext editRequest)
HandlerRegistration subscribe()
Register for notifications if object being edited is updated.
Protected Methods
<T> T ensureMutable(T object)
<R, S extends Editor<R>> void initializeSubDelegate(AbstractEditorDelegate<R, S> subDelegate, String path, R object, S subEditor, DelegateMap delegateMap)
Initialize a sub-delegate returned from createComposedDelegate().
boolean shouldFlush()
Indicates whether or not calls to flush(List) are expected as part of normal operation.
[Expand]
Inherited Methods
From class com.google.gwt.editor.client.impl.AbstractEditorDelegate
From class java.lang.Object
From interface com.google.gwt.editor.client.EditorDelegate

Fields

protected EventBus eventBus

protected RequestFactory factory

protected RequestContext request

Public Constructors

public RequestFactoryEditorDelegate ()

Public Methods

public void initialize (EventBus eventBus, RequestFactory factory, String pathSoFar, P object, E editor, DelegateMap delegateMap, RequestContext editRequest)

public HandlerRegistration subscribe ()

Register for notifications if object being edited is updated. Not all backends support subscriptions and will return null.

The notification will occur via onPropertyChange(String...) if the backend supports in-place property updates, otherwise updates will be passed via setValue(T).

Returns
  • a HandlerRegistration to unsubscribe from the notifications or null if the delegate does not support subscription

Protected Methods

protected T ensureMutable (T object)

protected void initializeSubDelegate (AbstractEditorDelegate<R, S> subDelegate, String path, R object, S subEditor, DelegateMap delegateMap)

Initialize a sub-delegate returned from createComposedDelegate().

protected boolean shouldFlush ()

Indicates whether or not calls to flush(List) are expected as part of normal operation.