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 voidattach(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.CgetValue(FakeLeafValueEditor<C> subEditor)Retrieves the value associated with the editor.booleanisAttached(FakeLeafValueEditor<C> subEditor)
-
-
-
Method Detail
-
attach
public void attach(C object, FakeLeafValueEditor<C> subEditor)
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
public void detach(FakeLeafValueEditor<C> subEditor)
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
public C getValue(FakeLeafValueEditor<C> subEditor)
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
public boolean isAttached(FakeLeafValueEditor<C> subEditor)
-
-