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, makeReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaults, getFactory, getResultprotected CreateTransition(java.lang.String name,
DataObjectFactory<BDO> fac)
public void buildForm(Form f, AppContext c) throws TransitionException
TargetLessTransitionbuildForm in interface TargetLessTransition<BDO extends DataObject>f - Form to be builtc - AppContextTransitionExceptionpublic 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>TransitionExceptionpublic void postCreate(BDO dat, Form f) throws java.lang.Exception
CreateCustomizerpostCreate in interface CreateCustomizer<BDO extends DataObject>java.lang.Exceptionpublic void preCommit(BDO dat, Form f) throws DataException, ActionException
CreateCustomizerpreCommit in interface CreateCustomizer<BDO extends DataObject>dat - Object being createdf - Form providing parametersDataExceptionActionExceptionpublic java.lang.String getConfirm(Form f)
CreateTemplategetConfirm 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