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
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)
java.lang.String
getConfiguredValue()
(package private) java.lang.String
getCurrent()
java.lang.String
getCurrentValue()
(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()
void
setConfiguredValue(java.lang.String configuredValue)
void
setCurrentValue(java.lang.String currentValue)
-
-
-
Field Detail
-
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()
-
getCurrentValue
public java.lang.String getCurrentValue()
-
setCurrentValue
public void setCurrentValue(java.lang.String currentValue)
-
getConfiguredValue
public java.lang.String getConfiguredValue()
-
setConfiguredValue
public void setConfiguredValue(java.lang.String configuredValue)
-
-