Class WizardMgtPanel<T extends Serializable>
- java.lang.Object
-
- org.apache.wicket.Component
-
- org.apache.wicket.MarkupContainer
-
- org.apache.wicket.markup.html.WebMarkupContainer
-
- org.apache.wicket.markup.html.panel.Panel
-
- org.apache.syncope.client.ui.commons.wizards.AbstractWizardMgtPanel<T>
-
- org.apache.syncope.client.console.wizards.WizardMgtPanel<T>
-
- All Implemented Interfaces:
Serializable
,Iterable<org.apache.wicket.Component>
,org.apache.wicket.event.IEventSink
,org.apache.wicket.event.IEventSource
,org.apache.wicket.feedback.IFeedbackContributor
,org.apache.wicket.IConverterLocator
,org.apache.wicket.IMetadataContext<Serializable,org.apache.wicket.Component>
,org.apache.wicket.IQueueRegion
,org.apache.wicket.markup.html.IHeaderContributor
,org.apache.wicket.request.component.IRequestableComponent
,org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
DirectoryPanel
,JobActionPanel
,ListViewPanel
,Realm
,TogglePanel
public abstract class WizardMgtPanel<T extends Serializable> extends AbstractWizardMgtPanel<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WizardMgtPanel.Builder<T extends Serializable>
PanelInWizard abstract builder.static class
WizardMgtPanel.ExitEvent
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.wicket.ajax.markup.html.AjaxLink<?>
addAjaxLink
protected boolean
footerVisibility
protected org.apache.wicket.markup.html.panel.Fragment
initialFragment
protected BaseModal<T>
modal
protected ModalPanelBuilder<T>
newItemPanelBuilder
protected NotificationPanel
notificationPanel
protected org.apache.wicket.PageReference
pageRef
protected boolean
showResultPanel
protected org.apache.wicket.ajax.markup.html.AjaxLink<?>
utilityAjaxLink
protected org.apache.wicket.markup.html.basic.Label
utilityIcon
protected boolean
wizardInModal
-
Fields inherited from class org.apache.syncope.client.ui.commons.wizards.AbstractWizardMgtPanel
WIZARD_ID
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WizardMgtPanel(String id)
protected
WizardMgtPanel(String id, boolean wizardInModal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.wicket.MarkupContainer
addInnerObject(org.apache.wicket.Component... childs)
Add object inside the main container.protected <B extends ModalPanelBuilder<T>>
WizardMgtPanel<T>addNewItemPanelBuilder(B panelBuilder, boolean newItemDefaultButtonEnabled)
protected WizardMgtPanel<T>
addNotificationPanel(NotificationPanel notificationPanel)
org.apache.wicket.MarkupContainer
addOrReplaceInnerObject(org.apache.wicket.Component... childs)
Add or replace object inside the main container.WizardMgtPanel<T>
addOuterObject(org.apache.wicket.Component... childs)
Add object outside the main container.protected void
customActionCallback(org.apache.wicket.ajax.AjaxRequestTarget target)
Custom action to perform on create/edit action callback.protected void
customActionOnCancelCallback(org.apache.wicket.ajax.AjaxRequestTarget target)
Custom action to perform on close callback on cancel event.protected void
customActionOnFinishCallback(org.apache.wicket.ajax.AjaxRequestTarget target)
Custom action to perform on close callback on finish event.protected org.apache.wicket.markup.html.panel.Panel
customResultBody(String panelId, T item, Serializable result)
protected WizardMgtPanel<T>
disableContainerAutoRefresh()
protected WizardMgtPanel<T>
enableUtilityButton()
Show utility button sending ExitEvent payload by default.String
getActualId()
boolean
isReadOnly()
void
onEvent(org.apache.wicket.event.IEvent<?> event)
WizardMgtPanel<T>
setFooterVisibility(boolean footerVisibility)
<B extends ModalPanelBuilder<T>>
WizardMgtPanel<T>setPageRef(org.apache.wicket.PageReference pageRef)
void
setReadOnly(boolean readOnly)
<B extends ModalPanelBuilder<T>>
WizardMgtPanel<T>setShowResultPanel(boolean showResultPanel)
protected void
setWindowClosedReloadCallback(BaseModal<?> modal)
Set window close callback for the given modal.-
Methods inherited from class org.apache.wicket.markup.html.panel.Panel
getRegionMarkup, newMarkupSourcingStrategy
-
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
-
Methods inherited from class org.apache.wicket.MarkupContainer
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, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
-
Methods inherited from class org.apache.wicket.Component
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, getMarkupTag, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
initialFragment
protected final org.apache.wicket.markup.html.panel.Fragment initialFragment
-
wizardInModal
protected final boolean wizardInModal
-
pageRef
protected org.apache.wicket.PageReference pageRef
-
addAjaxLink
protected final org.apache.wicket.ajax.markup.html.AjaxLink<?> addAjaxLink
-
utilityIcon
protected org.apache.wicket.markup.html.basic.Label utilityIcon
-
utilityAjaxLink
protected org.apache.wicket.ajax.markup.html.AjaxLink<?> utilityAjaxLink
-
newItemPanelBuilder
protected ModalPanelBuilder<T extends Serializable> newItemPanelBuilder
-
notificationPanel
protected NotificationPanel notificationPanel
-
footerVisibility
protected boolean footerVisibility
-
showResultPanel
protected boolean showResultPanel
-
modal
protected final BaseModal<T extends Serializable> modal
-
-
Method Detail
-
getActualId
public String getActualId()
-
onEvent
public void onEvent(org.apache.wicket.event.IEvent<?> event)
- Specified by:
onEvent
in interfaceorg.apache.wicket.event.IEventSink
- Overrides:
onEvent
in classorg.apache.wicket.Component
-
disableContainerAutoRefresh
protected final WizardMgtPanel<T> disableContainerAutoRefresh()
-
customResultBody
protected org.apache.wicket.markup.html.panel.Panel customResultBody(String panelId, T item, Serializable result)
-
enableUtilityButton
protected final WizardMgtPanel<T> enableUtilityButton()
Show utility button sending ExitEvent payload by default.- Returns:
- the current instance.
-
addInnerObject
public org.apache.wicket.MarkupContainer addInnerObject(org.apache.wicket.Component... childs)
Add object inside the main container.- Parameters:
childs
- components to be added.- Returns:
- the current panel instance.
-
addOrReplaceInnerObject
public org.apache.wicket.MarkupContainer addOrReplaceInnerObject(org.apache.wicket.Component... childs)
Add or replace object inside the main container.- Parameters:
childs
- components to be added.- Returns:
- the current panel instance.
-
addOuterObject
public final WizardMgtPanel<T> addOuterObject(org.apache.wicket.Component... childs)
Add object outside the main container. Use this method just to be not influenced by specific inner object css'. Be sure to provideouter
as id.- Parameters:
childs
- components to be added.- Returns:
- the current panel instance.
-
setPageRef
public <B extends ModalPanelBuilder<T>> WizardMgtPanel<T> setPageRef(org.apache.wicket.PageReference pageRef)
-
setShowResultPanel
public <B extends ModalPanelBuilder<T>> WizardMgtPanel<T> setShowResultPanel(boolean showResultPanel)
-
addNewItemPanelBuilder
protected <B extends ModalPanelBuilder<T>> WizardMgtPanel<T> addNewItemPanelBuilder(B panelBuilder, boolean newItemDefaultButtonEnabled)
-
addNotificationPanel
protected WizardMgtPanel<T> addNotificationPanel(NotificationPanel notificationPanel)
-
setFooterVisibility
public WizardMgtPanel<T> setFooterVisibility(boolean footerVisibility)
-
setWindowClosedReloadCallback
protected void setWindowClosedReloadCallback(BaseModal<?> modal)
Set window close callback for the given modal.- Parameters:
modal
- target modal.
-
customActionCallback
protected void customActionCallback(org.apache.wicket.ajax.AjaxRequestTarget target)
Custom action to perform on create/edit action callback.- Parameters:
target
- Ajax request target.
-
customActionOnFinishCallback
protected void customActionOnFinishCallback(org.apache.wicket.ajax.AjaxRequestTarget target)
Custom action to perform on close callback on finish event.- Parameters:
target
- Ajax request target.
-
customActionOnCancelCallback
protected void customActionOnCancelCallback(org.apache.wicket.ajax.AjaxRequestTarget target)
Custom action to perform on close callback on cancel event.- Parameters:
target
- Ajax request target.
-
isReadOnly
public boolean isReadOnly()
-
setReadOnly
public void setReadOnly(boolean readOnly)
-
-