public abstract class AsyncUpdatePanel<V,T> extends BaseSimplePanel
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TIMER_DURATION
Duration in seconds.
|
protected Future<T> |
future |
Constructor and Description |
---|
AsyncUpdatePanel(String id,
org.apache.wicket.model.IModel<V> callableParameterModel) |
AsyncUpdatePanel(String id,
org.apache.wicket.model.IModel<V> callableParameterModel,
org.apache.wicket.util.time.Duration durationSecs) |
Modifier and Type | Method and Description |
---|---|
protected abstract Callable<T> |
createCallable(org.apache.wicket.model.IModel<V> callableParameterModel)
Create a callable that encapsulates the actual fetching of the data needed
by the panel for rendering.
|
protected org.apache.wicket.Component |
getLoadingComponent(String markupId) |
protected abstract org.apache.wicket.Component |
getMainComponent(String markupId) |
protected void |
initLayout() |
protected boolean |
isLoadingVisible() |
protected void |
onPostSuccess(org.apache.wicket.ajax.AjaxRequestTarget target) |
protected void |
onUpdateError(org.apache.wicket.ajax.AjaxRequestTarget target,
Exception ex) |
createComponentPath, createModel, createStringResource, createStringResource, createStringResource, createStringResource, getModel, getString
getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, 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, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, 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, wrap
public static final int DEFAULT_TIMER_DURATION
public AsyncUpdatePanel(String id, org.apache.wicket.model.IModel<V> callableParameterModel)
protected void initLayout()
initLayout
in class BaseSimplePanel
protected void onPostSuccess(org.apache.wicket.ajax.AjaxRequestTarget target)
protected void onUpdateError(org.apache.wicket.ajax.AjaxRequestTarget target, Exception ex)
protected boolean isLoadingVisible()
protected org.apache.wicket.Component getLoadingComponent(String markupId)
protected abstract org.apache.wicket.Component getMainComponent(String markupId)
protected abstract Callable<T> createCallable(org.apache.wicket.model.IModel<V> callableParameterModel)
callableParameterModel
- Model providing access to parameters needed by the callableCopyright © 2013 evolveum. All rights reserved.