public class Toggle extends Object
Constructor and Description |
---|
Toggle() |
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns the index of the current value.
|
String |
getValue()
Returns the current value of the toggle.
|
void |
next()
Sets the next element in the list.
|
void |
setIndex(int newIndex)
Set the current index of the toggle
|
void |
setItems(List<String> newItems)
Setting items to the toggle.
|
void |
setItems(String newItems)
Setting items to the toggle.
|
public void next()
public String getValue()
public void setIndex(int newIndex)
newIndex
- the new current indexpublic int getIndex()
public void setItems(String newItems)
newItems
- the new items to be added.© 1998- 2018 Stibo DX