Class AbstractAnalogExpressionSwing
- java.lang.Object
- 
- jmri.jmrit.logixng.swing.AbstractSwingConfigurator
- 
- jmri.jmrit.logixng.expressions.swing.AbstractAnalogExpressionSwing
 
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<SwingConfiguratorInterface>,- SwingConfiguratorInterface
 - Direct Known Subclasses:
- AnalogExpressionAnalogIOSwing,- AnalogExpressionConstantSwing,- AnalogExpressionLocalVariableSwing,- AnalogExpressionMemorySwing,- AnalogFormulaSwing,- TimeSinceMidnightSwing
 
 public abstract class AbstractAnalogExpressionSwing extends AbstractSwingConfigurator Abstract class for SwingConfiguratorInterface
- 
- 
Field SummaryFields Modifier and Type Field Description protected javax.swing.JPanelpanel
 - 
Constructor SummaryConstructors Constructor Description AbstractAnalogExpressionSwing()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcreatePanel(Base object, javax.swing.JPanel buttonPanel)voidexecuteEvaluate(Base object)Execute or evaluate an item that this object configures.java.lang.StringgetAutoSystemName()Create a new system name.javax.swing.JPanelgetConfigPanel(javax.swing.JPanel buttonPanel)Get a configuration panel when a new object is to be created and we don't have it yet.javax.swing.JPanelgetConfigPanel(Base object, javax.swing.JPanel buttonPanel)Get a configuration panel for an object.java.lang.StringgetExampleSystemName()Get an example of a system namejava.lang.StringgetExecuteEvaluateMenuText()Get the menu text for execute/evaluate.BaseManager<? extends NamedBean>getManager()Get the manager that handles the beans for the new object.- 
Methods inherited from class jmri.jmrit.logixng.swing.AbstractSwingConfiguratorgetAllSymbols, getJDialog, setJDialog
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jmri.jmrit.logixng.swing.SwingConfiguratorInterfacecanClose, compareTo, createNewObject, dispose, setDefaultValues, toString, updateObject, validate
 
- 
 
- 
- 
- 
Field Detail- 
panelprotected javax.swing.JPanel panel 
 
- 
 - 
Constructor Detail- 
AbstractAnalogExpressionSwingpublic AbstractAnalogExpressionSwing() 
 
- 
 - 
Method Detail- 
getExecuteEvaluateMenuTextpublic java.lang.String getExecuteEvaluateMenuText() Get the menu text for execute/evaluate.- Specified by:
- getExecuteEvaluateMenuTextin interface- SwingConfiguratorInterface
- Overrides:
- getExecuteEvaluateMenuTextin class- AbstractSwingConfigurator
- Returns:
- the menu text
 
 - 
executeEvaluatepublic void executeEvaluate(@Nonnull Base object) Execute or evaluate an item that this object configures.- Specified by:
- executeEvaluatein interface- SwingConfiguratorInterface
- Overrides:
- executeEvaluatein class- AbstractSwingConfigurator
- Parameters:
- object- the object to execute or evaluate
 
 - 
getManagerpublic BaseManager<? extends NamedBean> getManager() Get the manager that handles the beans for the new object. This is used for validation of the system name for the bean that this class creates.- Returns:
- the manager
 
 - 
getConfigPanelpublic javax.swing.JPanel getConfigPanel(@Nonnull javax.swing.JPanel buttonPanel) throws java.lang.IllegalArgumentException Get a configuration panel when a new object is to be created and we don't have it yet. This method initializes the panel with an empty configuration.- Parameters:
- buttonPanel- panel with the buttons
- Returns:
- a panel that configures this object
- Throws:
- java.lang.IllegalArgumentException- if this class does not support the class with the name given in parameter 'className'
 
 - 
getConfigPanelpublic javax.swing.JPanel getConfigPanel(@Nonnull Base object, @Nonnull javax.swing.JPanel buttonPanel) throws java.lang.IllegalArgumentException Get a configuration panel for an object. This method initializes the panel with the configuration of the object.- Parameters:
- object- the object for which to return a configuration panel
- buttonPanel- panel with the buttons
- Returns:
- a panel that configures this object
- Throws:
- java.lang.IllegalArgumentException- when needed
 
 - 
createPanelprotected abstract void createPanel(@CheckForNull Base object, @Nonnull javax.swing.JPanel buttonPanel) 
 - 
getExampleSystemNamepublic java.lang.String getExampleSystemName() Get an example of a system name- Returns:
- the system name
 
 - 
getAutoSystemNamepublic java.lang.String getAutoSystemName() Create a new system name.- Returns:
- a new system name
 
 
- 
 
-