Package org.zkoss.zkmax.zul
Class DefaultStepModel<E>
- java.lang.Object
-
- org.zkoss.zkmax.zul.DefaultStepModel<E>
-
-
Constructor Summary
Constructors Constructor Description DefaultStepModel()
DefaultStepModel(ListModelList<E> steps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, E item)
Adds a step at the end.void
add(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.ListModel<E>
getSteps()
Returns the step list model.boolean
next()
Activate next step if possible.E
remove(int index)
Removes the step at the specified position in this list (optional operation).boolean
remove(E item)
Removes the first occurrence of the specified step from this list, if it is present (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.
-
-
-
Constructor Detail
-
DefaultStepModel
public DefaultStepModel()
-
DefaultStepModel
public DefaultStepModel(ListModelList<E> steps)
-
-
Method Detail
-
back
public boolean back()
Description copied from interface:StepModel
Activate previous step if possible.
-
next
public boolean next()
Description copied from interface:StepModel
Activate next step if possible.
-
getActiveIndex
public int getActiveIndex()
Description copied from interface:StepModel
Return the index of the active step.Default: 0.
- Specified by:
getActiveIndex
in interfaceStepModel<E>
- Returns:
- the index of the active step.
-
getActiveStep
public E getActiveStep()
Description copied from interface:StepModel
Return the active step.Default: first step.
- Specified by:
getActiveStep
in interfaceStepModel<E>
- Returns:
- the active step.
-
setActiveIndex
public void setActiveIndex(int index)
Description copied from interface:StepModel
Sets the index of the active step.- Specified by:
setActiveIndex
in interfaceStepModel<E>
- Parameters:
index
- the index of the active step.
-
setActiveStep
public void setActiveStep(E item)
Description copied from interface:StepModel
Sets the active step.- Specified by:
setActiveStep
in interfaceStepModel<E>
- Parameters:
item
- the active step.
-
add
public void add(int index, E item)
Description copied from interface:StepModel
Adds 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:StepModel
Removes 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:StepModel
Removes 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 ListModel<E> getSteps()
Description copied from interface:StepModel
Returns the step list model.
-
-