Package jmri.jmrit.logixng.util
Class LogixNG_SelectComboBox
- java.lang.Object
-
- jmri.jmrit.logixng.util.LogixNG_SelectComboBox
-
- All Implemented Interfaces:
java.beans.VetoableChangeListener
,java.util.EventListener
public class LogixNG_SelectComboBox extends java.lang.Object implements java.beans.VetoableChangeListener
Select an combo box value for LogixNG actions and expressions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LogixNG_SelectComboBox.Item
An item in the combo box.
-
Constructor Summary
Constructors Constructor Description LogixNG_SelectComboBox(AbstractBase base, LogixNG_SelectComboBox.Item[] valuesArray, LogixNG_SelectComboBox.Item initialValue, java.beans.PropertyChangeListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copy(LogixNG_SelectComboBox copy)
LogixNG_SelectComboBox.Item
evaluateValue(ConditionalNG conditionalNG)
NamedBeanAddressing
getAddressing()
java.lang.String
getDescription(java.util.Locale locale)
java.lang.String
getFormula()
boolean
getListenToMemory()
java.lang.String
getLocalVariable()
NamedBeanHandle<Memory>
getMemory()
java.lang.String
getReference()
LogixNG_SelectTable
getSelectTable()
LogixNG_SelectComboBox.Item
getValue()
LogixNG_SelectComboBox.Item
getValueByKey(java.lang.String key)
LogixNG_SelectComboBox.Item[]
getValues()
boolean
isDirectAddressing()
void
registerListeners()
Register listeners if this object needs that.void
removeMemory()
void
setAddressing(NamedBeanAddressing addressing)
void
setFormula(java.lang.String formula)
void
setListenToMemory(boolean listenToMemory)
void
setLocalVariable(java.lang.String localVariable)
void
setMemory(java.lang.String memoryName)
void
setMemory(Memory memory)
void
setMemory(NamedBeanHandle<Memory> handle)
void
setReference(java.lang.String reference)
void
setValue(java.lang.String key)
void
setValue(LogixNG_SelectComboBox.Item value)
void
setValues(LogixNG_SelectComboBox.Item[] valuesArray)
void
unregisterListeners()
Unregister listeners if this object needs that.void
vetoableChange(java.beans.PropertyChangeEvent evt)
-
-
-
Constructor Detail
-
LogixNG_SelectComboBox
public LogixNG_SelectComboBox(AbstractBase base, LogixNG_SelectComboBox.Item[] valuesArray, LogixNG_SelectComboBox.Item initialValue, java.beans.PropertyChangeListener listener)
-
-
Method Detail
-
copy
public void copy(LogixNG_SelectComboBox copy) throws ParserException
- Throws:
ParserException
-
setValues
public void setValues(LogixNG_SelectComboBox.Item[] valuesArray)
-
getValues
public LogixNG_SelectComboBox.Item[] getValues()
-
setAddressing
public void setAddressing(@Nonnull NamedBeanAddressing addressing) throws ParserException
- Throws:
ParserException
-
isDirectAddressing
public boolean isDirectAddressing()
-
getAddressing
public NamedBeanAddressing getAddressing()
-
setValue
public void setValue(LogixNG_SelectComboBox.Item value)
-
setValue
public void setValue(java.lang.String key)
-
getValue
@CheckForNull public LogixNG_SelectComboBox.Item getValue()
-
getValueByKey
public LogixNG_SelectComboBox.Item getValueByKey(java.lang.String key)
-
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 LogixNG_SelectComboBox.Item evaluateValue(ConditionalNG conditionalNG) throws JmriException
- Throws:
JmriException
-
getDescription
public java.lang.String getDescription(java.util.Locale locale)
-
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:
vetoableChange
in interfacejava.beans.VetoableChangeListener
- Throws:
java.beans.PropertyVetoException
-
-