|
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.FakeEditorContext<T>
T
- the type of data not being editedpublic class FakeEditorContext<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 | |
---|---|
FakeEditorContext()
|
Method Summary | |
---|---|
CompositeEditor<T,?,?> |
asCompositeEditor()
Returns null . |
HasEditorDelegate<T> |
asHasEditorDelegate()
Returns null . |
HasEditorErrors<T> |
asHasEditorErrors()
Returns null . |
LeafValueEditor<T> |
asLeafValueEditor()
Returns null . |
ValueAwareEditor<T> |
asValueAwareEditor()
Returns null . |
boolean |
canSetInModel()
Returns false . |
T |
checkAssignment(java.lang.Object value)
Returns value via an unchecked generic cast. |
java.lang.String |
getAbsolutePath()
Returns EditorContext.ROOT_PATH . |
java.lang.Class<T> |
getEditedType()
Returns null . |
Editor<T> |
getEditor()
Returns null . |
EditorDelegate<T> |
getEditorDelegate()
Returns null . |
T |
getFromModel()
Returns null . |
void |
setInModel(T data)
A no-op. |
void |
traverseSyntheticCompositeEditor(EditorVisitor visitor)
No-op. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FakeEditorContext()
Method Detail |
---|
public CompositeEditor<T,?,?> asCompositeEditor()
null
.
asCompositeEditor
in interface EditorContext<T>
public HasEditorDelegate<T> asHasEditorDelegate()
null
.
asHasEditorDelegate
in interface EditorContext<T>
public HasEditorErrors<T> asHasEditorErrors()
null
.
asHasEditorErrors
in interface EditorContext<T>
public LeafValueEditor<T> asLeafValueEditor()
null
.
asLeafValueEditor
in interface EditorContext<T>
public ValueAwareEditor<T> asValueAwareEditor()
null
.
asValueAwareEditor
in interface EditorContext<T>
public boolean canSetInModel()
false
.
canSetInModel
in interface EditorContext<T>
public T checkAssignment(java.lang.Object value)
value
via an unchecked generic cast.
checkAssignment
in interface EditorContext<T>
value
- any value, including null
value
cast to the T
typepublic java.lang.String getAbsolutePath()
EditorContext.ROOT_PATH
.
getAbsolutePath
in interface EditorContext<T>
public java.lang.Class<T> getEditedType()
null
.
getEditedType
in interface EditorContext<T>
public Editor<T> getEditor()
null
.
getEditor
in interface EditorContext<T>
public EditorDelegate<T> getEditorDelegate()
null
.
getEditorDelegate
in interface EditorContext<T>
public T getFromModel()
null
.
getFromModel
in interface EditorContext<T>
public void setInModel(T data)
setInModel
in interface EditorContext<T>
public void traverseSyntheticCompositeEditor(EditorVisitor visitor)
traverseSyntheticCompositeEditor
in interface EditorContext<T>
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |