public class Stepbar
extends org.zkoss.zul.impl.XulElement
Only support browsers that support Flex. (IE11, Edge, Chrome, Firefox, Safari)
Default getZclass(): z-stepbar.
| Constructor and Description |
|---|
Stepbar() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
back()
Activate previous step if possible.
|
void |
beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component insertBefore) |
int |
getActiveIndex()
Return the index of the active step.
|
Step |
getActiveStep()
Return the active step.
|
StepModel<?> |
getModel()
Returns the step model associated with this stepbar, or null if this stepbar is not associated with any step model.
|
StepRenderer |
getStepRenderer() |
List<Step> |
getSteps()
Returns the steps in this stepbar.
|
String |
getZclass() |
boolean |
insertBefore(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild) |
boolean |
isLinear()
Returns whether the steps in this stepbar are displayed by order.
|
boolean |
isWrappedLabels()
Returns whether the labels in children steps is wrapped.
|
boolean |
next()
Activate next step if possible.
|
void |
onInitRender() |
void |
onPageAttached(org.zkoss.zk.ui.Page newpage,
org.zkoss.zk.ui.Page oldpage) |
void |
onPageDetached(org.zkoss.zk.ui.Page page) |
boolean |
removeChild(org.zkoss.zk.ui.Component child) |
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
service(org.zkoss.zk.au.AuRequest request,
boolean everError) |
void |
setActiveIndex(int activeIndex)
Sets the index of the active step.
|
void |
setActiveStep(Step step)
Sets the active step.
|
void |
setLinear(boolean linear)
Sets whether the steps in this stepbar are displayed by order.
|
void |
setModel(StepModel<?> model)
Sets the step model associated with this stepbar.
|
void |
setStepRenderer(StepRenderer stepRenderer) |
void |
setWrappedLabels(boolean wrappedLabels)
Sets whether the labels in children steps is wrapped.
|
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributesaddSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializepublic boolean isWrappedLabels()
Default: false.
public void setWrappedLabels(boolean wrappedLabels)
wrappedLabels - the labels in children steps is wrapped.public boolean isLinear()
Default: true.
public void setLinear(boolean linear)
linear - whether the steps in this stepbar are displayed by order.public int getActiveIndex()
Default: 0.
public void setActiveIndex(int activeIndex)
activeIndex - the index of the active step.public Step getActiveStep()
Default: first step.
public void setActiveStep(Step step)
step - the active step.public StepRenderer getStepRenderer()
public void setStepRenderer(StepRenderer stepRenderer)
public StepModel<?> getModel()
Default: null.
public void setModel(StepModel<?> model)
model - the stepbar model to associate, or null to dis-associate any previous model.org.zkoss.zk.ui.UiException - if failed to initialize with the modelpublic void onInitRender()
public void onPageAttached(org.zkoss.zk.ui.Page newpage,
org.zkoss.zk.ui.Page oldpage)
onPageAttached in interface org.zkoss.zk.ui.sys.ComponentCtrlonPageAttached in class org.zkoss.zk.ui.AbstractComponentpublic void onPageDetached(org.zkoss.zk.ui.Page page)
onPageDetached in interface org.zkoss.zk.ui.sys.ComponentCtrlonPageDetached in class org.zkoss.zk.ui.AbstractComponentpublic boolean next()
public boolean back()
public List<Step> getSteps()
It is the same as AbstractComponent.getChildren().
public void beforeChildAdded(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component insertBefore)
beforeChildAdded in interface org.zkoss.zk.ui.sys.ComponentCtrlbeforeChildAdded in class org.zkoss.zk.ui.AbstractComponentpublic boolean insertBefore(org.zkoss.zk.ui.Component newChild,
org.zkoss.zk.ui.Component refChild)
insertBefore in interface org.zkoss.zk.ui.ComponentinsertBefore in class org.zkoss.zk.ui.AbstractComponentpublic boolean removeChild(org.zkoss.zk.ui.Component child)
removeChild in interface org.zkoss.zk.ui.ComponentremoveChild in class org.zkoss.zk.ui.AbstractComponentprotected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class org.zkoss.zul.impl.XulElementIOExceptionpublic void service(org.zkoss.zk.au.AuRequest request,
boolean everError)
service in interface org.zkoss.zk.ui.sys.ComponentCtrlservice in class org.zkoss.zk.ui.HtmlBasedComponentpublic String getZclass()
getZclass in class org.zkoss.zk.ui.HtmlBasedComponentCopyright © 2026. All rights reserved.