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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(C object, FakeLeafValueEditor<C> subEditor) Editors attached to the chain will be automatically flushed as if they were a statically-defined sub-Editor.voiddetach(FakeLeafValueEditor<C> subEditor) Detach a sub-Editor from the editor chain.getValue(FakeLeafValueEditor<C> subEditor) Retrieves the value associated with the editor.booleanisAttached(FakeLeafValueEditor<C> subEditor)
-
Constructor Details
-
MockEditorChain
public MockEditorChain()
-
-
Method Details
-
attach
Description copied from interface:CompositeEditor.EditorChainEditors attached to the chain will be automatically flushed as if they were a statically-defined sub-Editor.- Specified by:
attachin interfaceCompositeEditor.EditorChain<C,FakeLeafValueEditor<C>> - Parameters:
object- the object to editsubEditor- the Editor to populate
-
detach
Description copied from interface:CompositeEditor.EditorChainDetach a sub-Editor from the editor chain.- Specified by:
detachin interfaceCompositeEditor.EditorChain<C,FakeLeafValueEditor<C>> - Parameters:
subEditor- an Editor previously passed intoCompositeEditor.EditorChain.attach(C, E)
-
getValue
Description copied from interface:CompositeEditor.EditorChainRetrieves the value associated with the editor.- Specified by:
getValuein interfaceCompositeEditor.EditorChain<C,FakeLeafValueEditor<C>> - Parameters:
subEditor- an Editor previously passed intoCompositeEditor.EditorChain.attach(C, E)- Returns:
- the value associated with the editor
-
isAttached
-