public abstract class WizardMgtPanel<T extends Serializable> extends Panel implements IEventSource
Modifier and Type | Class and Description |
---|---|
static class |
WizardMgtPanel.Builder<T extends Serializable>
PanelInWizard abstract builder.
|
static class |
WizardMgtPanel.ExitEvent |
Modifier and Type | Field and Description |
---|---|
protected AjaxLink<?> |
addAjaxLink |
protected AjaxLink<?> |
exitAjaxLink |
protected boolean |
footerVisibility |
protected BaseModal<T> |
modal |
protected ModalPanelBuilder<T> |
newItemPanelBuilder |
protected NotificationPanel |
notificationPanel |
protected PageReference |
pageRef |
protected boolean |
showResultPage |
protected static String |
WIZARD_ID |
protected boolean |
wizardInModal |
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
Modifier | Constructor and Description |
---|---|
protected |
WizardMgtPanel(String id) |
protected |
WizardMgtPanel(String id,
boolean wizardInModal) |
Modifier and Type | Method and Description |
---|---|
MarkupContainer |
addInnerObject(Component... childs)
Add object inside the main container.
|
protected <B extends ModalPanelBuilder<T>> |
addNewItemPanelBuilder(B panelBuilder,
boolean newItemDefaultButtonEnabled) |
protected WizardMgtPanel<T> |
addNotificationPanel(NotificationPanel notificationPanel) |
MarkupContainer |
addOrReplaceInnerObject(Component... childs)
Add or replace object inside the main container.
|
WizardMgtPanel<T> |
addOuterObject(Component... childs)
Add object outside the main container.
|
protected void |
customActionCallback(AjaxRequestTarget target)
Custom action to perform on create/edit action callback.
|
protected void |
customActionOnCancelCallback(AjaxRequestTarget target)
Custom action to perform on close callback on cancel event.
|
protected void |
customActionOnFinishCallback(AjaxRequestTarget target)
Custom action to perform on close callback on finish event.
|
protected Panel |
customResultBody(String panelId,
T item,
Serializable result) |
protected WizardMgtPanel<T> |
disableContainerAutoRefresh() |
protected WizardMgtPanel<T> |
enableExitButton()
Show exit button sending ExitEvent paylad.
|
String |
getActualId() |
ModalPanelBuilder<T> |
getNewItemPanelBuilder() |
boolean |
isNewItemDefaultButtonEnabled() |
boolean |
isReadOnly() |
boolean |
isWizardInModal() |
void |
onEvent(IEvent<?> event) |
WizardMgtPanel<T> |
setFooterVisibility(boolean footerVisibility) |
<B extends ModalPanelBuilder<T>> |
setPageRef(PageReference pageRef) |
void |
setReadOnly(boolean readOnly) |
<B extends ModalPanelBuilder<T>> |
setShowResultPage(boolean showResultPage) |
protected void |
setWindowClosedReloadCallback(BaseModal<?> modal)
Set window close callback for the given modal.
|
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, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, 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
send
dequeue, newDequeueContext
forEach, spliterator
protected static final String WIZARD_ID
protected final boolean wizardInModal
protected PageReference pageRef
protected final AjaxLink<?> addAjaxLink
protected final AjaxLink<?> exitAjaxLink
protected ModalPanelBuilder<T extends Serializable> newItemPanelBuilder
protected NotificationPanel notificationPanel
protected boolean footerVisibility
protected boolean showResultPage
protected final BaseModal<T extends Serializable> modal
protected WizardMgtPanel(String id)
protected WizardMgtPanel(String id, boolean wizardInModal)
public String getActualId()
public boolean isWizardInModal()
public ModalPanelBuilder<T> getNewItemPanelBuilder()
public boolean isNewItemDefaultButtonEnabled()
public void onEvent(IEvent<?> event)
onEvent
in interface IEventSink
onEvent
in class Component
protected final WizardMgtPanel<T> disableContainerAutoRefresh()
protected Panel customResultBody(String panelId, T item, Serializable result)
protected final WizardMgtPanel<T> enableExitButton()
public MarkupContainer addInnerObject(Component... childs)
childs
- components to be added.public MarkupContainer addOrReplaceInnerObject(Component... childs)
childs
- components to be added.public final WizardMgtPanel<T> addOuterObject(Component... childs)
childs
- components to be added.public <B extends ModalPanelBuilder<T>> WizardMgtPanel<T> setPageRef(PageReference pageRef)
public <B extends ModalPanelBuilder<T>> WizardMgtPanel<T> setShowResultPage(boolean showResultPage)
protected <B extends ModalPanelBuilder<T>> WizardMgtPanel<T> addNewItemPanelBuilder(B panelBuilder, boolean newItemDefaultButtonEnabled)
protected WizardMgtPanel<T> addNotificationPanel(NotificationPanel notificationPanel)
public WizardMgtPanel<T> setFooterVisibility(boolean footerVisibility)
protected void setWindowClosedReloadCallback(BaseModal<?> modal)
modal
- target modal.protected void customActionCallback(AjaxRequestTarget target)
target
- Ajax request target.protected void customActionOnFinishCallback(AjaxRequestTarget target)
target
- Ajax request target.protected void customActionOnCancelCallback(AjaxRequestTarget target)
target
- Ajax request target.public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.