Package jmri.jmrit.logixng.util
Class LogixNG_SelectDouble
java.lang.Object
jmri.jmrit.logixng.util.LogixNG_SelectDouble
- All Implemented Interfaces:
VetoableChangeListener,EventListener
Select a double for LogixNG actions and expressions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceFormat, parse and validate. -
Constructor Summary
ConstructorsConstructorDescriptionLogixNG_SelectDouble(AbstractBase base, int numDecimals, PropertyChangeListener listener) LogixNG_SelectDouble(AbstractBase base, int numDecimals, PropertyChangeListener listener, LogixNG_SelectDouble.FormatterParserValidator formatterParserValidator) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(LogixNG_SelectDouble copy) doubleevaluateValue(ConditionalNG conditionalNG) formatValue(double value) Format the valuegetDescription(Locale locale) booleandoublegetValue()booleanvoidRegister listeners if this object needs that.voidvoidsetAddressing(NamedBeanAddressing addressing) voidsetFormula(String formula) voidsetListenToMemory(boolean listenToMemory) voidsetLocalVariable(String localVariable) voidvoidvoidsetMemory(NamedBeanHandle<Memory> handle) voidsetReference(String reference) voidsetValue(double value) voidUnregister listeners if this object needs that.void
-
Constructor Details
-
LogixNG_SelectDouble
public LogixNG_SelectDouble(@Nonnull AbstractBase base, int numDecimals, @Nonnull PropertyChangeListener listener) -
LogixNG_SelectDouble
public LogixNG_SelectDouble(@Nonnull AbstractBase base, int numDecimals, @Nonnull PropertyChangeListener listener, @Nonnull LogixNG_SelectDouble.FormatterParserValidator formatterParserValidator)
-
-
Method Details
-
copy
- Throws:
ParserException
-
getFormatterParserValidator
-
setAddressing
- Throws:
ParserException
-
isDirectAddressing
-
getAddressing
-
setValue
-
getValue
-
setReference
-
getReference
-
setLocalVariable
-
getLocalVariable
-
setMemory
-
setMemory
-
setMemory
-
removeMemory
-
getMemory
-
setListenToMemory
-
getListenToMemory
-
setFormula
- Throws:
ParserException
-
getFormula
-
getSelectTable
-
evaluateValue
- Throws:
JmriException
-
formatValue
Format the value- Parameters:
value- The value- Returns:
- speed formatted as %1.3f
-
getDescription
-
registerListeners
Register listeners if this object needs that. -
unregisterListeners
Unregister listeners if this object needs that. -
vetoableChange
- Specified by:
vetoableChangein interfaceVetoableChangeListener- Throws:
PropertyVetoException
-