public class TextFileOverlay.TextFileUpdator extends java.lang.Object implements StandAloneFormUpdate<T>, UpdateTemplate<T>
Constructor and Description |
---|
TextFileUpdator() |
Modifier and Type | Method and Description |
---|---|
void |
buildSelectForm(Form f,
java.lang.String label,
T dat)
Build a form to select object to edit
|
void |
buildUpdateForm(java.lang.String type_name,
Form f,
T dat,
SessionService<?> operator)
Build a form for updating an object including the action buttons.
|
AppContext |
getContext() |
FormResult |
getResult(java.lang.String typeName,
T dat,
Form f)
select the
FormResult after an update. |
T |
getSelected(Form f)
read the Object to edit out of the validated Selector form.
|
void |
preCommit(T dat,
Form f,
java.util.Map<java.lang.String,java.lang.Object> orig)
extension point for update side effects that should be applied before the commit.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postUpdate
public void buildSelectForm(Form f, java.lang.String label, T dat)
FormUpdate
buildSelectForm
in interface FormUpdate<T extends TextFileOverlay.TextFile>
f
- Form to buildlabel
- label to use for selectordat
- default Object to edit if we know it alreadypublic void buildUpdateForm(java.lang.String type_name, Form f, T dat, SessionService<?> operator) throws DataException
EditFormBuilder
buildUpdateForm
in interface EditFormBuilder<T extends TextFileOverlay.TextFile>
type_name
- String name of target type to be presented to userf
- Form to builddat
- Object we are editing.operator
- person editing the formDataException
public T getSelected(Form f)
FormUpdate
getSelected
in interface FormUpdate<T extends TextFileOverlay.TextFile>
public AppContext getContext()
getContext
in interface FormFactory
getContext
in interface UpdateTemplate<T extends TextFileOverlay.TextFile>
public FormResult getResult(java.lang.String typeName, T dat, Form f)
UpdateTemplate
FormResult
after an update.getResult
in interface UpdateTemplate<T extends TextFileOverlay.TextFile>
public void preCommit(T dat, Form f, java.util.Map<java.lang.String,java.lang.Object> orig) throws DataException
UpdateTemplate
preCommit
in interface UpdateTemplate<T extends TextFileOverlay.TextFile>
DataException