com.partnersoft.v3x.gadgets
Class SimpleDictionaryEditor

java.lang.Object
  extended by com.partnersoft.v3x.gadgets.EditorGadget
      extended by com.partnersoft.v3x.gadgets.SimpleDictionaryEditor
All Implemented Interfaces:
Editor

public class SimpleDictionaryEditor
extends EditorGadget

A simple editor for Maps. Pick the key, then specify the value for that key with a specifier.


Constructor Summary
SimpleDictionaryEditor(Selector picker, Specifier grinner)
          Create a new SimpleDictionaryEditor from the given Selector and Specifier.
 
Method Summary
 java.lang.Object getEdited()
           
 void reset()
          Restore working copy of dictionary to match state of edited dictionary at last save.
 void save()
          Save changes to the set.
 void setEdited(java.lang.Object newVictim)
          Set the edited object.
 
Methods inherited from class com.partnersoft.v3x.gadgets.EditorGadget
addEditListener, delete, fireChanged, removeEditListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDictionaryEditor

public SimpleDictionaryEditor(Selector picker,
                              Specifier grinner)
Create a new SimpleDictionaryEditor from the given Selector and Specifier.

Method Detail

save

public void save()
Save changes to the set.

Specified by:
save in interface Editor
Overrides:
save in class EditorGadget

reset

public void reset()
Restore working copy of dictionary to match state of edited dictionary at last save.


setEdited

public void setEdited(java.lang.Object newVictim)
Description copied from class: EditorGadget
Set the edited object. Subclasses should call this if they override it (and they should probably override it).

Specified by:
setEdited in interface Editor
Overrides:
setEdited in class EditorGadget

getEdited

public java.lang.Object getEdited()