public abstract class AjaxWizardBuilder<T extends Serializable> extends AbstractModalPanelBuilder<T>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
protected AjaxWizard.Mode |
mode |
protected List<org.apache.wicket.Component> |
outerObjects |
eventSink, pageRef| Constructor and Description |
|---|
AjaxWizardBuilder(T defaultItem,
org.apache.wicket.PageReference pageRef)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
AjaxWizardBuilder<T> |
addOuterObject(org.apache.wicket.Component... childs) |
AjaxWizard<T> |
build(AjaxWizard.Mode mode)
Build the wizard with a default wizard id.
|
AjaxWizard<T> |
build(String id,
AjaxWizard.Mode mode)
Build the wizard.
|
AjaxWizard<T> |
build(String id,
int index,
AjaxWizard.Mode mode)
Build the wizard.
|
protected abstract org.apache.wicket.extensions.wizard.WizardModel |
buildModelSteps(T modelObject,
org.apache.wicket.extensions.wizard.WizardModel wizardModel) |
protected abstract Future<org.apache.commons.lang3.tuple.Pair<Serializable,Serializable>> |
execute(Callable<org.apache.commons.lang3.tuple.Pair<Serializable,Serializable>> future) |
protected Serializable |
getCreateCustomPayloadEvent(Serializable afterObject,
org.apache.wicket.ajax.AjaxRequestTarget target)
Override to send custom events after create.
|
protected Serializable |
getEditCustomPayloadEvent(Serializable afterObject,
org.apache.wicket.ajax.AjaxRequestTarget target)
Override to send custom events after edit.
|
protected abstract long |
getMaxWaitTimeInSeconds() |
protected abstract void |
sendError(Exception exception) |
protected abstract void |
sendWarning(String message) |
getDefaultItem, getEventSink, getOriginalItem, getPageReference, newModelObject, onApplyInternal, onCancelInternal, setEventSink, setItemprotected static final org.slf4j.Logger LOG
protected AjaxWizard.Mode mode
protected final List<org.apache.wicket.Component> outerObjects
public AjaxWizardBuilder(T defaultItem, org.apache.wicket.PageReference pageRef)
defaultItem - default item.pageRef - Caller page reference.public AjaxWizardBuilder<T> addOuterObject(org.apache.wicket.Component... childs)
public AjaxWizard<T> build(String id, int index, AjaxWizard.Mode mode)
ModalPanelBuilderid - component id.index - step index.mode - mode.public AjaxWizard<T> build(AjaxWizard.Mode mode)
mode - wizard mode.public AjaxWizard<T> build(String id, AjaxWizard.Mode mode)
id - component id.mode - wizard mode.protected abstract org.apache.wicket.extensions.wizard.WizardModel buildModelSteps(T modelObject, org.apache.wicket.extensions.wizard.WizardModel wizardModel)
protected Serializable getCreateCustomPayloadEvent(Serializable afterObject, org.apache.wicket.ajax.AjaxRequestTarget target)
afterObject - after applied changes object.target - ajax request targetprotected abstract long getMaxWaitTimeInSeconds()
protected abstract void sendError(Exception exception)
protected abstract void sendWarning(String message)
protected abstract Future<org.apache.commons.lang3.tuple.Pair<Serializable,Serializable>> execute(Callable<org.apache.commons.lang3.tuple.Pair<Serializable,Serializable>> future)
protected Serializable getEditCustomPayloadEvent(Serializable afterObject, org.apache.wicket.ajax.AjaxRequestTarget target)
afterObject - after applied changes object.target - ajax request targetCopyright © 2020–2023. All rights reserved.