Package org.zkoss.stateless.sul
Interface IProgressmeter
-
- All Superinterfaces:
IAnyGroup<IProgressmeter>,IComponent<IProgressmeter>,IHtmlBasedComponent<IProgressmeter>,IXulElement<IProgressmeter>
public interface IProgressmeter extends IXulElement<IProgressmeter>, IAnyGroup<IProgressmeter>
ImmutableProgressmetercomponentA progress meter is a bar that indicates how much of a task has been completed.
- Author:
- katherine
- See Also:
Progressmeter
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIProgressmeter.BuilderBuilds instances of typeIProgressmeter.static classIProgressmeter.UpdaterBuilds an updater of typeIProgressmeterforUiAgent.smartUpdate(Locator, SmartUpdater).
-
Field Summary
Fields Modifier and Type Field Description static IProgressmeterDEFAULTConstant for default attributes of this immutable component.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetValue()Returns the current value of the progress meter.default java.lang.StringgetWidgetClass()Returns the client widget class.default java.lang.StringgetWidth()Returns the width.default booleanisIndeterminate()Returns the indeterminate state of the progress meter.static IProgressmeterof(int value)Returns the instance with the given value.static IProgressmeterofId(java.lang.String id)Returns the instance with the given id.static IProgressmeterofWidth(java.lang.String width)Returns the instance with the given width.IProgressmeterwithIndeterminate(boolean indeterminate)Returns a copy ofthisimmutable component with the specifiedindeterminate.IProgressmeterwithValue(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, withWidgetOverrides
-
Methods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndex
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Field Detail
-
DEFAULT
static final IProgressmeter DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String 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
IProgressmeter withValue(int value)
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
IProgressmeter withIndeterminate(boolean indeterminate)
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
default java.lang.String getWidth()
Returns the width.Default:
"100px"- Specified by:
getWidthin interfaceIHtmlBasedComponent<IProgressmeter>
-
of
static IProgressmeter of(int value)
Returns the instance with the given value.- Parameters:
value- The current value of the progress meter.- Returns:
-
ofWidth
static IProgressmeter ofWidth(java.lang.String width)
Returns the instance with the given width.- Parameters:
width- The width of the component.
-
ofId
static IProgressmeter ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
-