Constructor and Description |
---|
DefaultStepModel() |
DefaultStepModel(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.
|
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(ListModelList<E> steps)
public boolean back()
StepModel
public boolean next()
StepModel
public int getActiveIndex()
StepModel
Default: 0.
getActiveIndex
in interface StepModel<E>
public E getActiveStep()
StepModel
Default: first step.
getActiveStep
in interface StepModel<E>
public void setActiveIndex(int index)
StepModel
setActiveIndex
in interface StepModel<E>
index
- the index of the active step.public void setActiveStep(E item)
StepModel
setActiveStep
in interface StepModel<E>
item
- the active step.public void add(int index, E item)
StepModel
public E remove(int index)
StepModel
public boolean remove(E item)
StepModel
public ListModel<E> getSteps()
StepModel
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.