Public Member Functions | |
CurrentScrollPosition (int position, String value) | |
CurrentScrollPosition (String text) | |
int | getPosition () |
String | getValue () |
String | toString () |
boolean | equals (Object o) |
int | hashCode () |
void | setTextValue (Object txt) |
Represents a scroll position as used by ScrollChoiceMenuItems, it holds the position and the current string value.
com.thecoderscorner.menu.domain.state.CurrentScrollPosition.CurrentScrollPosition | ( | int | position, |
String | value | ||
) |
Create from the position and value
position | the current position |
value | the current value |
com.thecoderscorner.menu.domain.state.CurrentScrollPosition.CurrentScrollPosition | ( | String | text | ) |
Create from a textual representation in the form, position-value, EG 1-Pizza
text | the text form of the object to parse |
int com.thecoderscorner.menu.domain.state.CurrentScrollPosition.getPosition | ( | ) |
String com.thecoderscorner.menu.domain.state.CurrentScrollPosition.getValue | ( | ) |
void com.thecoderscorner.menu.domain.state.CurrentScrollPosition.setTextValue | ( | Object | txt | ) |
Allows the value to be changed just after creation, this is for local UIs where the setting happens just after creation of the state.
txt | the new value |