public abstract class AjaxWizard<T extends Serializable> extends Wizard implements SubmitableModalPanel, WizardModalPanel<T>
Modifier and Type | Class and Description |
---|---|
static class |
AjaxWizard.EditItemActionEvent<T extends Serializable> |
static class |
AjaxWizard.Mode |
static class |
AjaxWizard.NewItemActionEvent<T extends Serializable> |
static class |
AjaxWizard.NewItemCancelEvent<T extends Serializable> |
static class |
AjaxWizard.NewItemEvent<T extends Serializable> |
static class |
AjaxWizard.NewItemFinishEvent<T extends Serializable> |
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
BUTTONS_ID, FEEDBACK_ID, FORM_ID, HEADER_ID, OVERVIEW_ID, VIEW_ID
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS
Constructor and Description |
---|
AjaxWizard(String id,
T item,
WizardModel model,
AjaxWizard.Mode mode,
boolean async,
PageReference pageRef)
Construct.
|
Modifier and Type | Method and Description |
---|---|
AjaxWizard<T> |
addOuterObject(List<Component> childs)
Add object outside the main container.
|
T |
getItem() |
protected void |
init(IWizardModel wizardModel) |
protected Component |
newButtonBar(String id) |
protected abstract Pair<Serializable,Serializable> |
onApplyInternal(AjaxRequestTarget target)
Apply operation
|
void |
onCancel() |
protected abstract void |
onCancelInternal() |
void |
onError(AjaxRequestTarget target) |
void |
onFinish() |
void |
onSubmit(AjaxRequestTarget target) |
protected AjaxWizard<T> |
setEventSink(IEventSink eventSink) |
AjaxWizard<T> |
setItem(T item)
Replaces the default value provided with the constructor.
|
getActiveStep, getForm, getWizardModel, isVersioned, newFeedbackPanel, newForm, newOverviewBar, onActiveStepChanged
getRegionMarkup, newMarkupSourcingStrategy
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, onDetach, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canCallListenerAfterExpiry, detach, get, getBehaviorById, getBehaviorId, getId, getPage, getPageRelativePath
dequeue, newDequeueContext
forEach, spliterator
public AjaxWizard(String id, T item, WizardModel model, AjaxWizard.Mode mode, boolean async, PageReference pageRef)
id
- The component iditem
- model objectmodel
- wizard modelmode
- modeasync
- should apply go async or not?pageRef
- caller page reference.public final AjaxWizard<T> addOuterObject(List<Component> childs)
childs
- components to be added.protected AjaxWizard<T> setEventSink(IEventSink eventSink)
protected void init(IWizardModel wizardModel)
protected Component newButtonBar(String id)
newButtonBar
in class Wizard
protected abstract void onCancelInternal()
protected abstract Pair<Serializable,Serializable> onApplyInternal(AjaxRequestTarget target)
target
- request targetpublic final void onCancel()
onCancel
in interface IWizardModelListener
onCancel
in class Wizard
Wizard.onCancel()
public final void onFinish()
onFinish
in interface IWizardModelListener
onFinish
in class Wizard
Wizard.onFinish()
public T getItem()
getItem
in interface WizardModalPanel<T extends Serializable>
public AjaxWizard<T> setItem(T item)
item
- new value.public void onSubmit(AjaxRequestTarget target)
onSubmit
in interface SubmitableModalPanel
public void onError(AjaxRequestTarget target)
onError
in interface SubmitableModalPanel
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.