Package jmri.managers
Class JmriUserPreferencesManager.MultipleChoice
- java.lang.Object
-
- jmri.managers.JmriUserPreferencesManager.MultipleChoice
-
- Enclosing class:
- JmriUserPreferencesManager
protected static final class JmriUserPreferencesManager.MultipleChoice extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
defaultOption
(package private) java.lang.String
item
(package private) java.lang.String
optionDescription
(package private) java.util.HashMap<java.lang.Integer,java.lang.String>
options
(package private) int
value
-
Constructor Summary
Constructors Constructor Description MultipleChoice(java.lang.String item, int value)
MultipleChoice(java.lang.String description, java.lang.String item, java.util.HashMap<java.lang.Integer,java.lang.String> options, int defaultOption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getDefaultValue()
(package private) java.lang.String
getItem()
(package private) java.lang.String
getOptionDescription()
(package private) java.util.HashMap<java.lang.Integer,java.lang.String>
getOptions()
(package private) int
getValue()
(package private) void
setMessageItems(java.lang.String description, java.util.HashMap<java.lang.Integer,java.lang.String> options, int defaultOption)
(package private) void
setValue(int value)
(package private) void
setValue(java.lang.String value)
-
-
-
Field Detail
-
options
java.util.HashMap<java.lang.Integer,java.lang.String> options
-
optionDescription
java.lang.String optionDescription
-
item
java.lang.String item
-
value
int value
-
defaultOption
int defaultOption
-
-
Constructor Detail
-
MultipleChoice
MultipleChoice(java.lang.String description, java.lang.String item, java.util.HashMap<java.lang.Integer,java.lang.String> options, int defaultOption)
-
MultipleChoice
MultipleChoice(java.lang.String item, int value)
-
-
Method Detail
-
setValue
void setValue(int value)
-
setValue
void setValue(java.lang.String value)
-
setMessageItems
void setMessageItems(java.lang.String description, java.util.HashMap<java.lang.Integer,java.lang.String> options, int defaultOption)
-
getValue
int getValue()
-
getDefaultValue
int getDefaultValue()
-
getItem
java.lang.String getItem()
-
getOptionDescription
java.lang.String getOptionDescription()
-
getOptions
java.util.HashMap<java.lang.Integer,java.lang.String> getOptions()
-
-