T - the type being editedpublic class MockEditorDelegate<T> extends java.lang.Object implements EditorDelegate<T>
EditorDelegate.| Constructor and Description |
|---|
MockEditorDelegate() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPath()
Returns a zero-length string or the last value passed to
setPath(java.lang.String). |
boolean |
isDirty()
Returns
false or the last value passed to
setDirty(boolean). |
void |
recordError(java.lang.String message,
java.lang.Object value,
java.lang.Object userData)
No-op.
|
void |
setDirty(boolean dirty)
Records the value of
dirty which can be retrieved from
isDirty(). |
void |
setPath(java.lang.String path)
Controls the return value of
getPath(). |
HandlerRegistration |
subscribe()
Returns a no-op HandlerRegistration instance.
|
public java.lang.String getPath()
setPath(java.lang.String).getPath in interface EditorDelegate<T>public boolean isDirty()
false or the last value passed to
setDirty(boolean).public void recordError(java.lang.String message,
java.lang.Object value,
java.lang.Object userData)
recordError in interface EditorDelegate<T>message - a textual description of the errorvalue - the value to be returned by EditorError.getValue() or
null if the value currently associated with the
Editor should be useduserData - an arbitrary object, possibly null, that can
be retrieved with EditorError.getUserData()public void setDirty(boolean dirty)
dirty which can be retrieved from
isDirty().setDirty in interface EditorDelegate<T>dirty - the dirty state of the Editorpublic void setPath(java.lang.String path)
getPath().public HandlerRegistration subscribe()
subscribe in interface EditorDelegate<T>null if the delegate does not support subscription