C
- the type being editedpublic class MockEditorChain<C> extends java.lang.Object implements CompositeEditor.EditorChain<C,FakeLeafValueEditor<C>>
CompositeEditor.EditorChain
.Constructor and Description |
---|
MockEditorChain() |
Modifier and Type | Method and 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) |
public void attach(C object, FakeLeafValueEditor<C> subEditor)
CompositeEditor.EditorChain
attach
in interface CompositeEditor.EditorChain<C,FakeLeafValueEditor<C>>
object
- the object to editsubEditor
- the Editor to populatepublic void detach(FakeLeafValueEditor<C> subEditor)
CompositeEditor.EditorChain
detach
in interface CompositeEditor.EditorChain<C,FakeLeafValueEditor<C>>
subEditor
- an Editor previously passed into CompositeEditor.EditorChain.attach(C, E)
public C getValue(FakeLeafValueEditor<C> subEditor)
CompositeEditor.EditorChain
getValue
in interface CompositeEditor.EditorChain<C,FakeLeafValueEditor<C>>
subEditor
- an Editor previously passed into CompositeEditor.EditorChain.attach(C, E)
public boolean isAttached(FakeLeafValueEditor<C> subEditor)