Class FakeEditorContext<T>
java.lang.Object
com.google.gwt.editor.client.testing.FakeEditorContext<T>
- Type Parameters:
T
- the type of data not being edited
- All Implemented Interfaces:
EditorContext<T>
A no-op implementation of EditorContext for testing.
-
Field Summary
Fields inherited from interface com.google.gwt.editor.client.EditorContext
ROOT_PATH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompositeEditor
<T, ?, ?> Returnsnull
.Returnsnull
.Returnsnull
.Returnsnull
.Returnsnull
.boolean
Returnsfalse
.checkAssignment
(Object value) Returnsvalue
via an unchecked generic cast.ReturnsEditorContext.ROOT_PATH
.Returnsnull
.Returnsnull
.Returnsnull
.Returnsnull
.void
setInModel
(T data) A no-op.void
No-op.
-
Constructor Details
-
FakeEditorContext
public FakeEditorContext()
-
-
Method Details
-
asCompositeEditor
Returnsnull
.- Specified by:
asCompositeEditor
in interfaceEditorContext<T>
-
asHasEditorDelegate
Returnsnull
.- Specified by:
asHasEditorDelegate
in interfaceEditorContext<T>
-
asHasEditorErrors
Returnsnull
.- Specified by:
asHasEditorErrors
in interfaceEditorContext<T>
-
asLeafValueEditor
Returnsnull
.- Specified by:
asLeafValueEditor
in interfaceEditorContext<T>
-
asValueAwareEditor
Returnsnull
.- Specified by:
asValueAwareEditor
in interfaceEditorContext<T>
-
canSetInModel
public boolean canSetInModel()Returnsfalse
.- Specified by:
canSetInModel
in interfaceEditorContext<T>
-
checkAssignment
Returnsvalue
via an unchecked generic cast.- Specified by:
checkAssignment
in interfaceEditorContext<T>
- Parameters:
value
- any value, includingnull
- Returns:
value
cast to theT
type
-
getAbsolutePath
ReturnsEditorContext.ROOT_PATH
.- Specified by:
getAbsolutePath
in interfaceEditorContext<T>
-
getEditedType
Returnsnull
.- Specified by:
getEditedType
in interfaceEditorContext<T>
-
getEditor
Returnsnull
.- Specified by:
getEditor
in interfaceEditorContext<T>
-
getEditorDelegate
Returnsnull
.- Specified by:
getEditorDelegate
in interfaceEditorContext<T>
-
getFromModel
Returnsnull
.- Specified by:
getFromModel
in interfaceEditorContext<T>
-
setInModel
A no-op.- Specified by:
setInModel
in interfaceEditorContext<T>
-
traverseSyntheticCompositeEditor
No-op.- Specified by:
traverseSyntheticCompositeEditor
in interfaceEditorContext<T>
-