com.partnersoft.v3x.gadgets
Class CascadingEditor

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

public class CascadingEditor
extends RecordEditor

An editor that for an object that has subobjects that also need to be edited.


Constructor Summary
CascadingEditor()
           
 
Method Summary
 void addSubEditor(java.lang.String propertyName, Editor sub)
           
 void addSubEditorFor(java.lang.String propertyName)
           
 Editor getSubEditorFor(java.lang.String fieldName)
           
 void reset()
          Reset the editor to reflect the state of the object the last time it was saved.
 void save()
          Save changes to the object if there are any.
 void setEdited(java.lang.Object newEdited)
          Set the object to be edited.
 
Methods inherited from class com.partnersoft.v3x.gadgets.RecordEditor
addSpecifier, addViewer, applyChanges, autosaveOn, forceSave, getCurrentSpecifiedValues, getEdited, isAutosaving, isForcedSaving, listSpecifiersFor, listViewersFor, setAutosaving, setForcedSaving
 
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

CascadingEditor

public CascadingEditor()
Method Detail

addSubEditorFor

public void addSubEditorFor(java.lang.String propertyName)

addSubEditor

public void addSubEditor(java.lang.String propertyName,
                         Editor sub)

save

public void save()
Description copied from class: RecordEditor
Save changes to the object if there are any.

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

reset

public void reset()
Description copied from class: RecordEditor
Reset the editor to reflect the state of the object the last time it was saved.

Specified by:
reset in interface Editor
Overrides:
reset in class RecordEditor

getSubEditorFor

public Editor getSubEditorFor(java.lang.String fieldName)

setEdited

public void setEdited(java.lang.Object newEdited)
Description copied from class: RecordEditor
Set the object to be edited.

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