public class

MockEditorDelegate

extends Object
implements EditorDelegate<T>
java.lang.Object
   ↳ com.google.gwt.editor.client.testing.MockEditorDelegate<T>

Class Overview

A mock implementation of EditorDelegate.

Summary

Public Constructors
MockEditorDelegate()
Public Methods
String getPath()
Returns a zero-length string or the last value passed to setPath(String).
void recordError(String message, Object value, Object userData)
No-op.
void setPath(String path)
Controls the return value of getPath().
HandlerRegistration subscribe()
Returns a no-op HandlerRegistration instance.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.editor.client.EditorDelegate

Public Constructors

public MockEditorDelegate ()

Public Methods

public String getPath ()

Returns a zero-length string or the last value passed to setPath(String).

Returns
  • the path as a String

public void recordError (String message, Object value, Object userData)

No-op.

Parameters
message a textual description of the error
value the value to be returned by EditorError#getValue() or null if the value currently associated with the Editor should be used
userData an arbitrary object, possibly null, that can be retrieved with EditorError#getUserData()

public void setPath (String path)

Controls the return value of getPath().

public HandlerRegistration subscribe ()

Returns a no-op HandlerRegistration instance.

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