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>
public class FakeEditorContext<T> extends java.lang.Object implements 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
Constructors Constructor Description FakeEditorContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeEditor<T,?,?>asCompositeEditor()Returnsnull.HasEditorDelegate<T>asHasEditorDelegate()Returnsnull.HasEditorErrors<T>asHasEditorErrors()Returnsnull.LeafValueEditor<T>asLeafValueEditor()Returnsnull.ValueAwareEditor<T>asValueAwareEditor()Returnsnull.booleancanSetInModel()Returnsfalse.TcheckAssignment(java.lang.Object value)Returnsvaluevia an unchecked generic cast.java.lang.StringgetAbsolutePath()ReturnsEditorContext.ROOT_PATH.java.lang.Class<T>getEditedType()Returnsnull.Editor<T>getEditor()Returnsnull.EditorDelegate<T>getEditorDelegate()Returnsnull.TgetFromModel()Returnsnull.voidsetInModel(T data)A no-op.voidtraverseSyntheticCompositeEditor(EditorVisitor visitor)No-op.
-
-
-
Method Detail
-
asCompositeEditor
public CompositeEditor<T,?,?> asCompositeEditor()
Returnsnull.- Specified by:
asCompositeEditorin interfaceEditorContext<T>
-
asHasEditorDelegate
public HasEditorDelegate<T> asHasEditorDelegate()
Returnsnull.- Specified by:
asHasEditorDelegatein interfaceEditorContext<T>
-
asHasEditorErrors
public HasEditorErrors<T> asHasEditorErrors()
Returnsnull.- Specified by:
asHasEditorErrorsin interfaceEditorContext<T>
-
asLeafValueEditor
public LeafValueEditor<T> asLeafValueEditor()
Returnsnull.- Specified by:
asLeafValueEditorin interfaceEditorContext<T>
-
asValueAwareEditor
public ValueAwareEditor<T> asValueAwareEditor()
Returnsnull.- Specified by:
asValueAwareEditorin interfaceEditorContext<T>
-
canSetInModel
public boolean canSetInModel()
Returnsfalse.- Specified by:
canSetInModelin interfaceEditorContext<T>
-
checkAssignment
public T checkAssignment(java.lang.Object value)
Returnsvaluevia an unchecked generic cast.- Specified by:
checkAssignmentin interfaceEditorContext<T>- Parameters:
value- any value, includingnull- Returns:
valuecast to theTtype
-
getAbsolutePath
public java.lang.String getAbsolutePath()
ReturnsEditorContext.ROOT_PATH.- Specified by:
getAbsolutePathin interfaceEditorContext<T>
-
getEditedType
public java.lang.Class<T> getEditedType()
Returnsnull.- Specified by:
getEditedTypein interfaceEditorContext<T>
-
getEditor
public Editor<T> getEditor()
Returnsnull.- Specified by:
getEditorin interfaceEditorContext<T>
-
getEditorDelegate
public EditorDelegate<T> getEditorDelegate()
Returnsnull.- Specified by:
getEditorDelegatein interfaceEditorContext<T>
-
getFromModel
public T getFromModel()
Returnsnull.- Specified by:
getFromModelin interfaceEditorContext<T>
-
setInModel
public void setInModel(T data)
A no-op.- Specified by:
setInModelin interfaceEditorContext<T>
-
traverseSyntheticCompositeEditor
public void traverseSyntheticCompositeEditor(EditorVisitor visitor)
No-op.- Specified by:
traverseSyntheticCompositeEditorin interfaceEditorContext<T>
-
-