public class ProgressBar extends JQueryContainer implements IJQueryAjaxAware, IValueChangedListener
JQueryContainer
IJQueryWidget.JQueryWidget
widgetBehavior
Constructor and Description |
---|
ProgressBar(String id)
Constructor
|
ProgressBar(String id,
org.apache.wicket.model.IModel<Integer> model)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
backward(org.apache.wicket.ajax.AjaxRequestTarget target)
Decrements the progress-bar value by 1
|
void |
backward(org.apache.wicket.ajax.AjaxRequestTarget target,
int step)
Decrements the progress-bar value by the specified step value
|
void |
forward(org.apache.wicket.ajax.AjaxRequestTarget target)
Increments the progress-bar value by 1
|
void |
forward(org.apache.wicket.ajax.AjaxRequestTarget target,
int step)
Increments the progress-bar value by the specified step value
|
org.apache.wicket.model.IModel<Integer> |
getModel()
Gets the model (wrapping the value)
|
Integer |
getModelObject()
Gets the model object
|
JQueryBehavior |
newWidgetBehavior(String selector) |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event) |
protected void |
onComplete(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the value reach
MAX |
protected void |
onModelChanged() |
void |
onValueChanged(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the value changed
|
void |
respond(org.apache.wicket.ajax.AjaxRequestTarget target)
Re-attaches the widget behavior to the specified target, causing the progress-bar to refresh.
This method is needed to be called after the model object changed. But It is not required to be called when calling forward or backward methods. |
void |
setModelObject(Integer value)
Sets the progress-bar value
|
onBeforeRender, onConfigure, onInitialize
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, 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, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, 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 ProgressBar(String id)
id
- the markup idpublic org.apache.wicket.model.IModel<Integer> getModel()
IModel
public Integer getModelObject()
public void setModelObject(Integer value)
public void forward(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
public final void forward(org.apache.wicket.ajax.AjaxRequestTarget target, int step)
target
- the AjaxRequestTarget
step
- the valuepublic final void backward(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
public final void backward(org.apache.wicket.ajax.AjaxRequestTarget target, int step)
target
- the AjaxRequestTarget
step
- the valuepublic final void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, JQueryEvent event)
onAjax
in interface IJQueryAjaxAware
public void onValueChanged(org.apache.wicket.ajax.AjaxRequestTarget target)
onValueChanged
in interface IValueChangedListener
target
- the AjaxRequestTarget
protected void onComplete(org.apache.wicket.ajax.AjaxRequestTarget target)
MAX
target
- the AjaxRequestTarget
protected void onModelChanged()
onModelChanged
in class org.apache.wicket.Component
public JQueryBehavior newWidgetBehavior(String selector)
newWidgetBehavior
in interface IJQueryWidget
Copyright © 2014 7thWeb. All Rights Reserved.