Package org.zkoss.stateless.sul
Interface IProgressmeter
- All Superinterfaces:
IAnyGroup<IProgressmeter>,IComponent<IProgressmeter>,IHtmlBasedComponent<IProgressmeter>,IXulElement<IProgressmeter>
Immutable
Progressmeter component
A progress meter is a bar that indicates how much of a task has been completed.
- Author:
- katherine
- See Also:
-
Progressmeter
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIProgressmeter.static classBuilds an updater of typeIProgressmeterforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IProgressmeterConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault intgetValue()Returns the current value of the progress meter.default StringReturns the client widget class.default StringgetWidth()Returns the width.default booleanReturns the indeterminate state of the progress meter.static IProgressmeterof(int value) Returns the instance with the given value.static IProgressmeterReturns the instance with the given id.static IProgressmeterReturns the instance with the given width.withIndeterminate(boolean indeterminate) Returns a copy ofthisimmutable component with the specifiedindeterminate.withValue(int value) Returns a copy ofthisimmutable component with the specifiedvalue.Methods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
zul.wgt.Progressmeter"- Specified by:
getWidgetClassin interfaceIComponent<IProgressmeter>
-
getValue
default int getValue()Returns the current value of the progress meter. -
withValue
Returns a copy ofthisimmutable component with the specifiedvalue.Sets the current value of the progress meter.
- Parameters:
value- The current value of the progress meter.Default:
0.- Returns:
- A modified copy of the
thisobject
-
isIndeterminate
default boolean isIndeterminate()Returns the indeterminate state of the progress meter.(default false) -
withIndeterminate
Returns a copy ofthisimmutable component with the specifiedindeterminate.Sets the indeterminate state of the progress meter.
- Parameters:
indeterminate- The indeterminate state of the progress meter.Default:
false.- Returns:
- A modified copy of the
thisobject
-
getWidth
Returns the width.Default:
"100px"- Specified by:
getWidthin interfaceIHtmlBasedComponent<IProgressmeter>
-
of
Returns the instance with the given value.- Parameters:
value- The current value of the progress meter.- Returns:
-
ofWidth
Returns the instance with the given width.- Parameters:
width- The width of the component.
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-