Package org.zkoss.zkmax.zul
Class DefaultStepModel<E>
- java.lang.Object
-
- org.zkoss.zkmax.zul.DefaultStepModel<E>
-
-
Constructor Summary
Constructors Constructor Description DefaultStepModel()DefaultStepModel(org.zkoss.zul.ListModelList<E> steps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E item)Adds a step at the end.voidadd(E item)Adds a step at the end.booleanback()Activate previous step if possible.intgetActiveIndex()Return the index of the active step.EgetActiveStep()Return the active step.org.zkoss.zul.ListModel<E>getSteps()Returns the step list model.booleannext()Activate next step if possible.Eremove(int index)Removes the step at the specified position in this list (optional operation).booleanremove(E item)Removes the first occurrence of the specified step from this list, if it is present (optional operation).voidsetActiveIndex(int index)Sets the index of the active step.voidsetActiveStep(E item)Sets the active step.intsize()Returns the length of the step list.
-
-
-
Constructor Detail
-
DefaultStepModel
public DefaultStepModel()
-
DefaultStepModel
public DefaultStepModel(org.zkoss.zul.ListModelList<E> steps)
-
-
Method Detail
-
back
public boolean back()
Description copied from interface:StepModelActivate previous step if possible.
-
next
public boolean next()
Description copied from interface:StepModelActivate next step if possible.
-
getActiveIndex
public int getActiveIndex()
Description copied from interface:StepModelReturn the index of the active step.Default: 0.
- Specified by:
getActiveIndexin interfaceStepModel<E>- Returns:
- the index of the active step.
-
getActiveStep
public E getActiveStep()
Description copied from interface:StepModelReturn the active step.Default: first step.
- Specified by:
getActiveStepin interfaceStepModel<E>- Returns:
- the active step.
-
setActiveIndex
public void setActiveIndex(int index)
Description copied from interface:StepModelSets the index of the active step.- Specified by:
setActiveIndexin interfaceStepModel<E>- Parameters:
index- the index of the active step.
-
setActiveStep
public void setActiveStep(E item)
Description copied from interface:StepModelSets the active step.- Specified by:
setActiveStepin interfaceStepModel<E>- Parameters:
item- the active step.
-
add
public void add(int index, E item)Description copied from interface:StepModelAdds a step at the end. Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
-
remove
public E remove(int index)
Description copied from interface:StepModelRemoves the step at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the step that was removed from the list.
-
remove
public boolean remove(E item)
Description copied from interface:StepModelRemoves the first occurrence of the specified step from this list, if it is present (optional operation). If this list does not contain the step, it is unchanged.
-
getSteps
public org.zkoss.zul.ListModel<E> getSteps()
Description copied from interface:StepModelReturns the step list model.
-
-