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 |
eventSink, pageRef
Constructor and Description |
---|
AjaxWizardBuilder(T defaultItem,
PageReference pageRef)
Construct.
|
Modifier and Type | Method and Description |
---|---|
AjaxWizardBuilder<T> |
addOuterObject(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 WizardModel |
buildModelSteps(T modelObject,
WizardModel wizardModel) |
protected Serializable |
getCreateCustomPayloadEvent(Serializable afterObject,
AjaxRequestTarget target)
Override to send custom events after create.
|
protected Serializable |
getEditCustomPayloadEvent(Serializable afterObject,
AjaxRequestTarget target)
Override to send custom events after edit.
|
AjaxWizardBuilder<T> |
setAsync(boolean async) |
getDefaultItem, getEventSink, getOriginalItem, getPageReference, newModelObject, onApplyInternal, onCancelInternal, setEventSink, setItem
protected static final org.slf4j.Logger LOG
protected AjaxWizard.Mode mode
public AjaxWizardBuilder(T defaultItem, PageReference pageRef)
defaultItem
- default item.pageRef
- Caller page reference.public AjaxWizardBuilder<T> setAsync(boolean async)
public AjaxWizardBuilder<T> addOuterObject(Component... childs)
public AjaxWizard<T> build(String id, int index, AjaxWizard.Mode mode)
id
- 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 WizardModel buildModelSteps(T modelObject, WizardModel wizardModel)
protected Serializable getCreateCustomPayloadEvent(Serializable afterObject, AjaxRequestTarget target)
afterObject
- after applied changes object.target
- ajax request targetprotected Serializable getEditCustomPayloadEvent(Serializable afterObject, AjaxRequestTarget target)
afterObject
- after applied changes object.target
- ajax request targetCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.