|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.editor.client.testing.MockEditorDelegate<T>
T
- the type being editedpublic class MockEditorDelegate<T>
A mock implementation of EditorDelegate
.
Constructor Summary | |
---|---|
MockEditorDelegate()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockEditorDelegate()
Method Detail |
---|
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
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |