Module wicket.bootstrap.core
Class ProgressBar
java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.panel.Panel
org.apache.wicket.markup.html.panel.GenericPanel<Integer>
de.agilecoders.wicket.core.markup.html.bootstrap.components.progress.ProgressBar
- All Implemented Interfaces:
Serializable,Iterable<Component>,IEventSink,IEventSource,IFeedbackContributor,IConverterLocator,IGenericComponent<Integer,,GenericPanel<Integer>> IMetadataContext<Serializable,,Component> IQueueRegion,IHeaderContributor,IRequestableComponent,IHierarchical<Component>,IClusterable
- Direct Known Subclasses:
UpdatableProgressBar
A component for Progress bars
- See Also:
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionProgressBar(String id) Constructor.ProgressBar(String id, IModel<Integer> model) Constructor.ProgressBar(String id, IModel<Integer> model, boolean labeled) Constructor.ProgressBar(String id, IModel<Integer> model, BackgroundColorBehavior.Color color) Constructor.ProgressBar(String id, IModel<Integer> model, BackgroundColorBehavior.Color color, boolean labeled) Constructor.ProgressBar(String id, IModel<Integer> model, BackgroundColorBehavior.Color color, boolean labeled, boolean animated, boolean striped) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()active(boolean value) Adds stacks to this progress bar.final booleancomplete()Returns whether the progress bar is complete or not.Generates a safe component id for a stack in this progress barprotected voidvoidrenderHead(IHeaderResponse response) booleanstriped()striped(boolean value) value()Returns the current value of the progress.Sets a new value for the progress.Sets a new value for the progress.Methods inherited from class org.apache.wicket.markup.html.panel.Panel
getRegionMarkup, newMarkupSourcingStrategyMethods 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, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, onDetach, onInitialize, 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, 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, getMarkupTag, 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, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, 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 org.apache.wicket.IQueueRegion
dequeue, newDequeueContextMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
MIN
public static final int MIN- See Also:
-
MAX
public static final int MAX- See Also:
-
-
Constructor Details
-
ProgressBar
Constructor. Creates an empty progress bar. Use addStacks(Stack...) to add stacks to it -
ProgressBar
Constructor. Creates a progress bar with a stack that uses the given model, default type and is not labeled.- Parameters:
id- The component idmodel- The model that will be used for the default stack.- See Also:
-
ProgressBar
Constructor. Creates a progress bar with a stack that uses the given model, type and is not labeled.- Parameters:
id- The component idmodel- The model that will be used for the default stack.color- The color of the stack- See Also:
-
ProgressBar
Constructor. Creates a progress bar with a stack that uses the given model, default type and it is labeled or not.- Parameters:
id- The component idmodel- The model that will be used for the default stack.labeled- A flag whether the stack should be labeled or not- See Also:
-
ProgressBar
public ProgressBar(String id, IModel<Integer> model, BackgroundColorBehavior.Color color, boolean labeled) Constructor. Creates a progress bar with a stack that uses the given model, type and is labeled or not.- Parameters:
id- The component idmodel- The model that will be used for the default stack.color- The color of the stacklabeled- A flag whether the stack should be labeled or not- See Also:
-
ProgressBar
public ProgressBar(String id, IModel<Integer> model, BackgroundColorBehavior.Color color, boolean labeled, boolean animated, boolean striped) Constructor. Creates a progress bar with a stack that uses the given model, type, is labeled or not, is animated or not, is striped or not.- Parameters:
id- The component idmodel- The model that will be used for the default stack.color- The color of the stacklabeled- A flag whether the stack should be labeled or notanimated- A flag indicating whether the stack is active/active.striped- A flag indicating whether the stack is striped.- See Also:
-
-
Method Details
-
getStackId
Generates a safe component id for a stack in this progress bar- Returns:
- a component id for a stack
-
addStacks
Adds stacks to this progress bar.- Parameters:
_stacks- The stacks to add- Returns:
- this instance, for method chaining
-
striped
public boolean striped() -
striped
-
active
public boolean active() -
active
-
complete
public final boolean complete()Returns whether the progress bar is complete or not. Useful only when used with the default stack, i.e. only when a constructor different than ProgressBar(String) is used!- Returns:
trueif the progress bar is complete.
-
value
Sets a new value for the progress. Useful only when used with the default stack, i.e. only when a constructor different than ProgressBar(String) is used!- Returns:
- this instance, for method chaining.
-
value
Sets a new value for the progress. Useful only when used with the default stack, i.e. only when a constructor different than ProgressBar(String) is used!- Returns:
- this instance, for method chaining.
-
value
Returns the current value of the progress. Useful only when used with the default stack, i.e. only when a constructor different than ProgressBar(String) is used!- Returns:
- the current value of the progress.
-
onComponentTag
- Overrides:
onComponentTagin classComponent
-
renderHead
- Specified by:
renderHeadin interfaceIHeaderContributor- Overrides:
renderHeadin classComponent
-