Package org.zkoss.stateless.sul
Interface IStepbar
- All Superinterfaces:
IAnyGroup<IStepbar>,IChildable<IStepbar,,IStep> IComponent<IStepbar>,IHtmlBasedComponent<IStepbar>,IXulElement<IStepbar>
public interface IStepbar
extends IXulElement<IStepbar>, IChildable<IStepbar,IStep>, IAnyGroup<IStepbar>
Immutable
Stepbar component
A stepbar. Shows several steps that represent sequential navigation.
Support @Action
| Name | Action Type |
|---|---|
| onChange |
- Author:
- katherine
- See Also:
-
Stepbar
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIStepbar.static classBuilds an updater of typeIStepbarforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault intReturn the index of the active step.default StringReturns the client widget class.default booleanisLinear()Returns whether the steps in this stepbar are displayed by order.default booleanReturns whether the labels in children steps is wrapped.static IStepbarReturns the instance with the givenIStepchildren.static IStepbarReturns the instance with the givenIStepchildren.static IStepbarReturns the instance with the given id.withActiveIndex(int activeIndex) Returns a copy ofthisimmutable component with the specifiedactiveIndex.withLinear(boolean linear) Returns a copy ofthisimmutable component with the specifiedlinear.withWrappedLabels(boolean wrappedLabels) Returns a copy ofthisimmutable component with the specifiedwrappedLabels.Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildrenMethods 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, getWidth, 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:
"zkmax.wgt.Stepbar"- Specified by:
getWidgetClassin interfaceIComponent<IStepbar>
-
isWrappedLabels
default boolean isWrappedLabels()Returns whether the labels in children steps is wrapped.Default:
false. -
withWrappedLabels
Returns a copy ofthisimmutable component with the specifiedwrappedLabels.Sets whether the labels in children steps is wrapped.
- Parameters:
wrappedLabels- Whether the labels in children steps is wrapped.Default:
false.- Returns:
- A modified copy of the
thisobject
-
isLinear
default boolean isLinear()Returns whether the steps in this stepbar are displayed by order.Default:
true. -
withLinear
Returns a copy ofthisimmutable component with the specifiedlinear.Sets whether the steps in this stepbar are displayed by order
- Parameters:
linear- Whether the steps in this stepbar are displayed by orderDefault:
true.- Returns:
- A modified copy of the
thisobject
-
getActiveIndex
default int getActiveIndex()Return the index of the active step.Default:
0. -
withActiveIndex
Returns a copy ofthisimmutable component with the specifiedactiveIndex.Sets the index of the active step.
- Parameters:
activeIndex- The index of the active step.Default:
0.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the givenIStepchildren.- Parameters:
children- The children ofIStep
-
of
Returns the instance with the givenIStepchildren.- Parameters:
children- The children ofIStep
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-