Package jmri.jmrit.logixng.actions.swing
Class AbstractStringActionSwing
java.lang.Object
jmri.jmrit.logixng.swing.AbstractSwingConfigurator
jmri.jmrit.logixng.actions.swing.AbstractStringActionSwing
- All Implemented Interfaces:
Comparable<SwingConfiguratorInterface>,SwingConfiguratorInterface
- Direct Known Subclasses:
StringActionMemorySwing,StringActionStringIOSwing,StringManySwing
Abstract class for SwingConfiguratorInterface
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcreatePanel(Base object, JPanel buttonPanel) voidexecuteEvaluate(Base object) Execute or evaluate an item that this object configures.Create a new system name.getConfigPanel(JPanel buttonPanel) Get a configuration panel when a new object is to be created and we don't have it yet.getConfigPanel(Base object, JPanel buttonPanel) Get a configuration panel for an object.Get an example of a system nameGet the menu text for execute/evaluate.BaseManager<? extends NamedBean>Get the manager that handles the beans for the new object.Methods inherited from class jmri.jmrit.logixng.swing.AbstractSwingConfigurator
getAllSymbols, getJDialog, setJDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.jmrit.logixng.swing.SwingConfiguratorInterface
canClose, compareTo, createNewObject, dispose, setDefaultValues, toString, updateObject, validate
-
Field Details
-
panel
-
-
Constructor Details
-
AbstractStringActionSwing
public AbstractStringActionSwing()
-
-
Method Details
-
getExecuteEvaluateMenuText
Get the menu text for execute/evaluate.- Specified by:
getExecuteEvaluateMenuTextin interfaceSwingConfiguratorInterface- Overrides:
getExecuteEvaluateMenuTextin classAbstractSwingConfigurator- Returns:
- the menu text
-
executeEvaluate
Execute or evaluate an item that this object configures.- Specified by:
executeEvaluatein interfaceSwingConfiguratorInterface- Overrides:
executeEvaluatein classAbstractSwingConfigurator- Parameters:
object- the object to execute or evaluate
-
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
-
getConfigPanel
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:
IllegalArgumentException- if this class does not support the class with the name given in parameter 'className'
-
getConfigPanel
public JPanel getConfigPanel(@Nonnull Base object, @Nonnull JPanel buttonPanel) throws 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 panelbuttonPanel- panel with the buttons- Returns:
- a panel that configures this object
- Throws:
IllegalArgumentException- when needed
-
createPanel
-
getExampleSystemName
Get an example of a system name- Returns:
- the system name
-
getAutoSystemName
Create a new system name.- Returns:
- a new system name
-