public abstract class LaddaAjaxLink<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
| Constructor and Description |
|---|
LaddaAjaxLink(String id,
de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type)
Constructor.
|
LaddaAjaxLink(String id,
org.apache.wicket.model.IModel<T> model,
de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.wicket.Component |
newLabel(String markupId,
org.apache.wicket.model.IModel<T> model) |
protected void |
onInitialize() |
LaddaAjaxLink<T> |
setEffect(LaddaBehavior.Effect effect)
Sets the effect to use
|
LaddaAjaxLink<T> |
setSpinnerColor(String color)
Sets the color for the spinner
|
LaddaAjaxLink<T> |
setSpinnerSize(int size)
Sets the size of the spinner in pixels
|
protected void |
updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes) |
newIcon, newMarkupSourcingStrategy, newSplitter, onConfigure, setIconType, setLabel, setSize, setTypegetChannel, getModel, getModelObject, newAjaxEventBehavior, onClick, onComponentTag, setModel, setModelObjectdisableLink, getAfterDisabledLink, getBeforeDisabledLink, getBody, isLinkEnabled, onBeforeRender, onComponentTagBody, onDetach, setAfterDisabledLink, setBeforeDisabledLink, setBodygetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, 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, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onEvent, 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, wrappublic LaddaAjaxLink(String id, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type)
Constructor.
id - The component idtype - The Bootstrap type of the buttonprotected void onInitialize()
onInitialize in class org.apache.wicket.ajax.markup.html.AjaxLink<T>public LaddaAjaxLink<T> setEffect(LaddaBehavior.Effect effect)
Sets the effect to use
effect - The effect to usethis, for chainingpublic LaddaAjaxLink<T> setSpinnerColor(String color)
Sets the color for the spinner
color - The color for the spinnerthis, for chainingpublic LaddaAjaxLink<T> setSpinnerSize(int size)
Sets the size of the spinner in pixels
size - The size of the spinner in pixelsthis, for chainingprotected void updateAjaxAttributes(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)
updateAjaxAttributes in class org.apache.wicket.ajax.markup.html.AjaxLink<T>Copyright © 2011–2014 AgileCoders. All rights reserved.