com.partnersoft.v3x.gadgets
Class EditorGadget

java.lang.Object
  extended by com.partnersoft.v3x.gadgets.EditorGadget
All Implemented Interfaces:
Editor
Direct Known Subclasses:
CollectionEditor, DictionaryEditor, RecordEditor, SetEditor, ShoppingList, SimpleCollectionEditor, SimpleDictionaryEditor, SublistEditor

public abstract class EditorGadget
extends java.lang.Object
implements Editor

A handy default implementation of Editor.


Constructor Summary
EditorGadget()
           
 
Method Summary
 void addEditListener(EditListener listener)
           
 void delete()
          Mark the object as deleted.
 void fireChanged()
           
 void removeEditListener(EditListener listener)
           
 void save()
          Save changes to the object.
 void setEdited(java.lang.Object newEdited)
          Set the edited object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.partnersoft.v3x.gadgets.Editor
getEdited, reset
 

Constructor Detail

EditorGadget

public EditorGadget()
Method Detail

fireChanged

public void fireChanged()

save

public void save()
Save changes to the object. Subclasses should call this if they override it. (and they should probably override it).

Specified by:
save in interface Editor

delete

public void delete()
Mark the object as deleted. Subclasses should call this if they override it.

Specified by:
delete in interface Editor

setEdited

public void setEdited(java.lang.Object newEdited)
Set the edited object. Subclasses should call this if they override it (and they should probably override it).

Specified by:
setEdited in interface Editor

addEditListener

public void addEditListener(EditListener listener)
Specified by:
addEditListener in interface Editor

removeEditListener

public void removeEditListener(EditListener listener)
Specified by:
removeEditListener in interface Editor