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 Object
implements CompositeEditor.EditorChain<C,FakeLeafValueEditor<C>>
A Mock implementation of
CompositeEditor.EditorChain
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.getValue
(FakeLeafValueEditor<C> subEditor) Retrieves the value associated with the editor.boolean
isAttached
(FakeLeafValueEditor<C> subEditor)
-
Constructor Details
-
MockEditorChain
public MockEditorChain()
-
-
Method Details
-
attach
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
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
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
-