Package jmri.jmrit.logixng.util
Class LogixNG_SelectInteger
- java.lang.Object
-
- jmri.jmrit.logixng.util.LogixNG_SelectInteger
-
- All Implemented Interfaces:
java.beans.VetoableChangeListener,java.util.EventListener
public class LogixNG_SelectInteger extends java.lang.Object implements java.beans.VetoableChangeListener
Select an integer for LogixNG actions and expressions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogixNG_SelectInteger.DefaultFormatterParserValidatorstatic interfaceLogixNG_SelectInteger.FormatterParserValidatorFormat, parse and validate.
-
Constructor Summary
Constructors Constructor Description LogixNG_SelectInteger(AbstractBase base, java.beans.PropertyChangeListener listener)LogixNG_SelectInteger(AbstractBase base, java.beans.PropertyChangeListener listener, LogixNG_SelectInteger.FormatterParserValidator formatterParserValidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(LogixNG_SelectInteger copy)intevaluateValue(ConditionalNG conditionalNG)NamedBeanAddressinggetAddressing()java.lang.StringgetDescription(java.util.Locale locale)java.lang.StringgetDescription(java.util.Locale locale, boolean thousandsSeparator)LogixNG_SelectInteger.FormatterParserValidatorgetFormatterParserValidator()java.lang.StringgetFormula()booleangetListenToMemory()java.lang.StringgetLocalVariable()NamedBeanHandle<Memory>getMemory()java.lang.StringgetReference()LogixNG_SelectTablegetSelectTable()intgetValue()booleanisDirectAddressing()voidregisterListeners()Register listeners if this object needs that.voidremoveMemory()voidsetAddressing(NamedBeanAddressing addressing)voidsetFormula(java.lang.String formula)voidsetListenToMemory(boolean listenToMemory)voidsetLocalVariable(java.lang.String localVariable)voidsetMemory(java.lang.String memoryName)voidsetMemory(Memory memory)voidsetMemory(NamedBeanHandle<Memory> handle)voidsetReference(java.lang.String reference)voidsetValue(int value)voidunregisterListeners()Unregister listeners if this object needs that.voidvetoableChange(java.beans.PropertyChangeEvent evt)
-
-
-
Constructor Detail
-
LogixNG_SelectInteger
public LogixNG_SelectInteger(@Nonnull AbstractBase base, @Nonnull java.beans.PropertyChangeListener listener)
-
LogixNG_SelectInteger
public LogixNG_SelectInteger(@Nonnull AbstractBase base, @Nonnull java.beans.PropertyChangeListener listener, @Nonnull LogixNG_SelectInteger.FormatterParserValidator formatterParserValidator)
-
-
Method Detail
-
copy
public void copy(LogixNG_SelectInteger copy) throws ParserException
- Throws:
ParserException
-
getFormatterParserValidator
@Nonnull public LogixNG_SelectInteger.FormatterParserValidator getFormatterParserValidator()
-
setAddressing
public void setAddressing(@Nonnull NamedBeanAddressing addressing) throws ParserException
- Throws:
ParserException
-
isDirectAddressing
public boolean isDirectAddressing()
-
getAddressing
public NamedBeanAddressing getAddressing()
-
setValue
public void setValue(int value)
-
getValue
public int getValue()
-
setReference
public void setReference(@Nonnull java.lang.String reference)
-
getReference
public java.lang.String getReference()
-
setMemory
public void setMemory(@Nonnull NamedBeanHandle<Memory> handle)
-
removeMemory
public void removeMemory()
-
getMemory
public NamedBeanHandle<Memory> getMemory()
-
setListenToMemory
public void setListenToMemory(boolean listenToMemory)
-
getListenToMemory
public boolean getListenToMemory()
-
setLocalVariable
public void setLocalVariable(@Nonnull java.lang.String localVariable)
-
getLocalVariable
public java.lang.String getLocalVariable()
-
setFormula
public void setFormula(@Nonnull java.lang.String formula) throws ParserException
- Throws:
ParserException
-
getFormula
public java.lang.String getFormula()
-
getSelectTable
public LogixNG_SelectTable getSelectTable()
-
evaluateValue
public int evaluateValue(ConditionalNG conditionalNG) throws JmriException
- Throws:
JmriException
-
getDescription
public java.lang.String getDescription(java.util.Locale locale)
-
getDescription
public java.lang.String getDescription(java.util.Locale locale, boolean thousandsSeparator)
-
registerListeners
public void registerListeners()
Register listeners if this object needs that.
-
unregisterListeners
public void unregisterListeners()
Unregister listeners if this object needs that.
-
vetoableChange
public void vetoableChange(java.beans.PropertyChangeEvent evt) throws java.beans.PropertyVetoException
- Specified by:
vetoableChangein interfacejava.beans.VetoableChangeListener- Throws:
java.beans.PropertyVetoException
-
-