public class AjaxIndicatingButtonBehavior extends ButtonBehavior
JQueryBehavior
with an ajax indicatorModifier and Type | Field and Description |
---|---|
static String |
CSS_INDICATOR |
METHOD
Modifier | Constructor and Description |
---|---|
protected |
AjaxIndicatingButtonBehavior(String selector,
String icon,
IndicatingAjaxButton.Position position)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
$() |
static org.apache.wicket.markup.head.HeaderItem |
newIndicatorCssHeaderItem()
Build the
CssHeaderItem with the indicator style |
protected com.googlecode.wicket.jquery.core.Options |
newOnAjaxStopOptions()
Gets the new
Button 's Options to be used on when ajax stops |
protected com.googlecode.wicket.jquery.core.Options |
newOnClickOptions()
Gets the new
Button 's Options to be used on click |
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
destroy, onConfigure, onDestroy, widget, widget, widget, widget
$, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelector
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
public static final String CSS_INDICATOR
protected AjaxIndicatingButtonBehavior(String selector, String icon, IndicatingAjaxButton.Position position)
selector
- the html selector (ie: "#myId")icon
- the button's iconposition
- the Position
of the ajax-indicatorpublic void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
renderHead
in class com.googlecode.wicket.jquery.core.JQueryBehavior
protected String $()
$
in class com.googlecode.wicket.jquery.core.JQueryBehavior
public static org.apache.wicket.markup.head.HeaderItem newIndicatorCssHeaderItem()
CssHeaderItem
with the indicator styleHeaderItem
protected com.googlecode.wicket.jquery.core.Options newOnClickOptions()
Button
's Options
to be used on clickOptions
protected com.googlecode.wicket.jquery.core.Options newOnAjaxStopOptions()
Button
's Options
to be used on when ajax stopsOptions
Copyright © 2017 7thWeb. All rights reserved.