| Constructor and Description |
|---|
DefaultStepModel() |
DefaultStepModel(org.zkoss.zul.ListModelList<E> steps) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E item)
Adds a step at the end.
|
void |
add(int index,
E item)
Adds a step at the end.
|
boolean |
back()
Activate previous step if possible.
|
int |
getActiveIndex()
Return the index of the active step.
|
E |
getActiveStep()
Return the active step.
|
org.zkoss.zul.ListModel<E> |
getSteps()
Returns the step list model.
|
boolean |
next()
Activate next step if possible.
|
boolean |
remove(E item)
Removes the first occurrence of the specified step from this list, if it is present (optional operation).
|
E |
remove(int index)
Removes the step at the specified position in this list (optional operation).
|
void |
setActiveIndex(int index)
Sets the index of the active step.
|
void |
setActiveStep(E item)
Sets the active step.
|
int |
size()
Returns the length of the step list.
|
public DefaultStepModel()
public DefaultStepModel(org.zkoss.zul.ListModelList<E> steps)
public boolean back()
StepModelpublic boolean next()
StepModelpublic int getActiveIndex()
StepModelDefault: 0.
getActiveIndex in interface StepModel<E>public E getActiveStep()
StepModelDefault: first step.
getActiveStep in interface StepModel<E>public void setActiveIndex(int index)
StepModelsetActiveIndex in interface StepModel<E>index - the index of the active step.public void setActiveStep(E item)
StepModelsetActiveStep in interface StepModel<E>item - the active step.public void add(int index,
E item)
StepModelpublic E remove(int index)
StepModelpublic boolean remove(E item)
StepModelpublic org.zkoss.zul.ListModel<E> getSteps()
StepModelCopyright © 2026. All rights reserved.