Module wicket.bootstrap.extensions
Class SpinnerAjaxLink<T>
java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.link.AbstractLink
org.apache.wicket.ajax.markup.html.AjaxLink<T>
de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>
de.agilecoders.wicket.extensions.markup.html.bootstrap.spinner.SpinnerAjaxLink<T>
- All Implemented Interfaces:
de.agilecoders.wicket.core.markup.html.bootstrap.button.IBootstrapButton<de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>>,Serializable,Iterable<Component>,IAjaxLink,IEventSink,IEventSource,IFeedbackContributor,IConverterLocator,IGenericComponent<T,,AjaxLink<T>> IMetadataContext<Serializable,,Component> IHeaderContributor,IRequestableComponent,IHierarchical<Component>,IClusterable
public abstract class SpinnerAjaxLink<T>
extends de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>
A specialization of
BootstrapAjaxLink
that disables itself during the Ajax call and shows a loading spinner- See Also:
-
Field Summary
Fields inherited from class org.apache.wicket.Component
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 Summary
ConstructorsConstructorDescriptionSpinnerAjaxLink(String id, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type) Constructor.SpinnerAjaxLink(String id, IModel<T> model, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type) Constructor.SpinnerAjaxLink(String id, IModel<T> model, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type, IModel<L> labelModel) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected <L extends Serializable>
Componentprotected voidprotected voidsetEffect(SpinnerBehavior.Effect effect) Sets the effect to useSets the color for the spinnerprotected voidupdateAjaxAttributes(AjaxRequestAttributes attributes) Methods inherited from class de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink
detachModel, newIcon, newMarkupSourcingStrategy, newSplitter, setIconType, setLabel, setSize, setType, useSplitterMethods inherited from class org.apache.wicket.ajax.markup.html.AjaxLink
getStatelessHint, newAjaxEventBehavior, onClick, onComponentTagMethods inherited from class org.apache.wicket.markup.html.link.AbstractLink
disableLink, getBody, onComponentTagBody, onDetach, setBodyMethods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionMethods inherited from class org.apache.wicket.MarkupContainer
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildrenMethods inherited from class org.apache.wicket.Component
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, 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, 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, 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, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.wicket.IGenericComponent
getDefaultModel, getDefaultModelObject, getModel, getModelObject, setDefaultModel, setDefaultModelObject, setModel, setModelObjectMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SpinnerAjaxLink
public SpinnerAjaxLink(String id, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type) Constructor.- Parameters:
id- The component idtype- The Bootstrap type of the button
-
SpinnerAjaxLink
public SpinnerAjaxLink(String id, IModel<T> model, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type) Constructor.- Parameters:
id- The component idmodel- The model to use for the labeltype- The Bootstrap type of the button
-
SpinnerAjaxLink
public SpinnerAjaxLink(String id, IModel<T> model, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type, IModel<L> labelModel) Constructor.- Parameters:
id- The component idmodel- The model to use for the labeltype- The Bootstrap type of the buttonlabelModel- The model for the link's label
-
-
Method Details
-
onInitialize
protected void onInitialize()- Overrides:
onInitializein classde.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>
-
setEffect
Sets the effect to use- Parameters:
effect- The effect to use- Returns:
this, for chaining
-
setSpinnerColor
Sets the color for the spinner- Parameters:
color- The color for the spinner- Returns:
this, for chaining
-
updateAjaxAttributes
- Overrides:
updateAjaxAttributesin classAjaxLink<T>
-
newLabel
- Overrides:
newLabelin classde.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>
-
onConfigure
protected void onConfigure()- Overrides:
onConfigurein classde.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>
-