BDO
- public abstract class CreateTransition<BDO extends DataObject> extends DataObjectFormFactory<BDO> implements TargetLessTransition<BDO>, CreateTemplate<BDO>
Creator
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
DEFAULT_FORBID_HTML, factory
Modifier | Constructor and Description |
---|---|
protected |
CreateTransition(java.lang.String name,
DataObjectFactory<BDO> fac) |
Modifier and Type | Method and Description |
---|---|
void |
buildForm(Form f,
AppContext c)
Build the transition form.
|
void |
customiseCreationForm(Form f)
Perform target specific customisation of a creation Form.
|
java.lang.Object |
getActionText()
Override the text for the create button
|
java.lang.String |
getConfirm(Form f)
should a confirm dialog be presented.
|
FormResult |
getResult(TransitionVisitor<BDO> vis) |
void |
postCreate(BDO dat,
Form f)
Take any action after object commit.
|
void |
preCommit(BDO dat,
Form f)
Populate target from creation form.
|
addOptionalFromComposites, addSelectors, addTranslations, buildForm, buildForm, buildForm, buildForm, buildForm, customiseForm, find, find, getContext, getDefaults, getFactory, getFieldConstraints, getFieldHelp, getFields, getID, getIndex, getInputFromName, getInputFromType, getLogger, getOptional, getSelectors, getSupress, getTarget, getTranslations, isMyReference, makeReference, makeReference
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaults, getFactory, getResult
protected CreateTransition(java.lang.String name, DataObjectFactory<BDO> fac)
public void buildForm(Form f, AppContext c) throws TransitionException
TargetLessTransition
buildForm
in interface TargetLessTransition<BDO extends DataObject>
f
- Form to be builtc
- AppContextTransitionException
public java.lang.Object getActionText()
public FormResult getResult(TransitionVisitor<BDO> vis) throws TransitionException
getResult
in interface TargetLessTransition<BDO extends DataObject>
getResult
in interface Transition<BDO extends DataObject>
TransitionException
public void postCreate(BDO dat, Form f) throws java.lang.Exception
CreateCustomizer
postCreate
in interface CreateCustomizer<BDO extends DataObject>
java.lang.Exception
public void preCommit(BDO dat, Form f) throws DataException, ActionException
CreateCustomizer
preCommit
in interface CreateCustomizer<BDO extends DataObject>
dat
- Object being createdf
- Form
providing parametersDataException
ActionException
public java.lang.String getConfirm(Form f)
CreateTemplate
getConfirm
in interface CreateTemplate<BDO extends DataObject>
public void customiseCreationForm(Form f) throws java.lang.Exception
customiseCreationForm
in interface CreateCustomizer<BDO extends DataObject>
f
- Form to be modifiedjava.lang.Exception