T - the generic type of the model object.public abstract class SwapFragmentPanel<T>
extends de.alpharogroup.wicket.base.BasePanel<T>
SwapFragmentPanel holds two Fragments that can be swapped.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
LOGGER
The Constant logger.
|
ENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
SwapFragmentPanel(String id,
org.apache.wicket.model.IModel<T> model)
Instantiates a new
SwapFragmentPanel. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.wicket.markup.html.panel.Fragment |
newEditFragment(String id)
Abstract factory method for creating the new
Fragment for the editable
Component. |
SwapAnimation |
newSwapAnimation()
Factory method for creating the new
SwapAnimation for the animations when swapping. |
protected abstract org.apache.wicket.markup.html.panel.Fragment |
newViewFragment(String id)
Factory method for creating the new
Fragment for the view(not editable)
Component. |
void |
onSwapToEdit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
Swaps from the view fragment to the edit fragment.
|
void |
onSwapToView(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
Swaps from the edit fragment to the view fragment.
|
protected void |
swapFragments(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
Swaps the fragments.
|
getModel, getModelObject, setModel, setModelObjectgetRegionMarkup, newMarkupSourcingStrategygetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, 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, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SwapFragmentPanel(String id, org.apache.wicket.model.IModel<T> model)
SwapFragmentPanel.id - the idmodel - the modelpublic SwapAnimation newSwapAnimation()
SwapAnimation for the animations when swapping.
This method is invoked in the constructor from the derived classes and have to be overridden
so users can provide their own version of a new SwapAnimation for the animations when swapping.SwapAnimation object.protected abstract org.apache.wicket.markup.html.panel.Fragment newEditFragment(String id)
Fragment for the editable
Component. This method is invoked in the constructor from the derived classes and
have to be overridden so users can provide their own version of a new Fragment for
the view.id - the idFragment for the view.protected abstract org.apache.wicket.markup.html.panel.Fragment newViewFragment(String id)
Fragment for the view(not editable)
Component. This method is invoked in the constructor from the derived classes and
have to be overridden so users can provide their own version of a new Fragment for
the view(not editable) Component.id - the idFragment for the view(not editable) Component.public void onSwapToEdit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
target - the targetform - the formpublic void onSwapToView(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
target - the targetform - the formprotected void swapFragments(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.markup.html.form.Form<?> form)
target - the targetform - the formCopyright © 2010–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.