Package jmri.jmrix
Class AbstractPortController.Option
- java.lang.Object
-
- jmri.jmrix.AbstractPortController.Option
-
- Enclosing class:
- AbstractPortController
protected static class AbstractPortController.Option extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractPortController.Option.Type
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Boolean
advancedOption
(package private) java.lang.String
configuredValue
As a heuristic, we consider the 1st non-null currentValue as the configured value.(package private) java.lang.String
currentValue
(package private) java.lang.String
displayText
(package private) java.lang.String[]
options
(package private) AbstractPortController.Option.Type
type
-
Constructor Summary
Constructors Constructor Description Option(java.lang.String displayText, java.lang.String[] options)
Option(java.lang.String displayText, java.lang.String[] options, boolean advanced)
Option(java.lang.String displayText, java.lang.String[] options, boolean advanced, AbstractPortController.Option.Type type)
Option(java.lang.String displayText, java.lang.String[] options, AbstractPortController.Option.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
configure(java.lang.String value)
(package private) java.lang.String
getCurrent()
(package private) java.lang.String
getDisplayText()
(package private) java.lang.String[]
getOptions()
(package private) AbstractPortController.Option.Type
getType()
(package private) boolean
isAdvanced()
(package private) boolean
isDirty()
-
-
-
Field Detail
-
currentValue
java.lang.String currentValue
-
configuredValue
java.lang.String configuredValue
As a heuristic, we consider the 1st non-null currentValue as the configured value. Changes away from that mark an Option object as "dirty".
-
displayText
java.lang.String displayText
-
options
java.lang.String[] options
-
advancedOption
java.lang.Boolean advancedOption
-
-
Constructor Detail
-
Option
public Option(java.lang.String displayText, @Nonnull java.lang.String[] options, boolean advanced, AbstractPortController.Option.Type type)
-
Option
public Option(java.lang.String displayText, java.lang.String[] options, boolean advanced)
-
Option
public Option(java.lang.String displayText, java.lang.String[] options, AbstractPortController.Option.Type type)
-
Option
public Option(java.lang.String displayText, java.lang.String[] options)
-
-
Method Detail
-
configure
void configure(java.lang.String value)
-
getCurrent
java.lang.String getCurrent()
-
getOptions
java.lang.String[] getOptions()
-
getType
AbstractPortController.Option.Type getType()
-
getDisplayText
java.lang.String getDisplayText()
-
isAdvanced
boolean isAdvanced()
-
isDirty
boolean isDirty()
-
-