Class MockEditorChain<C>
- java.lang.Object
-
- com.google.gwt.editor.client.testing.MockEditorChain<C>
-
- Type Parameters:
C
- the type being edited
- All Implemented Interfaces:
CompositeEditor.EditorChain<C,FakeLeafValueEditor<C>>
public class MockEditorChain<C> extends java.lang.Object implements CompositeEditor.EditorChain<C,FakeLeafValueEditor<C>>
A Mock implementation ofCompositeEditor.EditorChain
.
-
-
Constructor Summary
Constructors Constructor Description MockEditorChain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attach(C object, FakeLeafValueEditor<C> subEditor)
Editors attached to the chain will be automatically flushed as if they were a statically-defined sub-Editor.void
detach(FakeLeafValueEditor<C> subEditor)
Detach a sub-Editor from the editor chain.C
getValue(FakeLeafValueEditor<C> subEditor)
Retrieves the value associated with the editor.boolean
isAttached(FakeLeafValueEditor<C> subEditor)
-
-
-
Method Detail
-
attach
public void attach(C object, FakeLeafValueEditor<C> subEditor)
Description copied from interface:CompositeEditor.EditorChain
Editors attached to the chain will be automatically flushed as if they were a statically-defined sub-Editor.- Specified by:
attach
in interfaceCompositeEditor.EditorChain<C,FakeLeafValueEditor<C>>
- Parameters:
object
- the object to editsubEditor
- the Editor to populate
-
detach
public void detach(FakeLeafValueEditor<C> subEditor)
Description copied from interface:CompositeEditor.EditorChain
Detach a sub-Editor from the editor chain.- Specified by:
detach
in interfaceCompositeEditor.EditorChain<C,FakeLeafValueEditor<C>>
- Parameters:
subEditor
- an Editor previously passed intoCompositeEditor.EditorChain.attach(C, E)
-
getValue
public C getValue(FakeLeafValueEditor<C> subEditor)
Description copied from interface:CompositeEditor.EditorChain
Retrieves the value associated with the editor.- Specified by:
getValue
in interfaceCompositeEditor.EditorChain<C,FakeLeafValueEditor<C>>
- Parameters:
subEditor
- an Editor previously passed intoCompositeEditor.EditorChain.attach(C, E)
- Returns:
- the value associated with the editor
-
isAttached
public boolean isAttached(FakeLeafValueEditor<C> subEditor)
-
-