Class AbstractDebuggerMaleSocketSwing
java.lang.Object
jmri.jmrit.logixng.swing.AbstractSwingConfigurator
jmri.jmrit.logixng.tools.debugger.swing.AbstractDebuggerMaleSocketSwing
- All Implemented Interfaces:
Comparable<SwingConfiguratorInterface>,SwingConfiguratorInterface
- Direct Known Subclasses:
DebuggerMaleAnalogActionSocketSwing,DebuggerMaleAnalogExpressionSocketSwing,DebuggerMaleDigitalActionSocketSwing,DebuggerMaleDigitalBooleanActionSocketSwing,DebuggerMaleDigitalExpressionSocketSwing,DebuggerMaleStringActionSocketSwing,DebuggerMaleStringExpressionSocketSwing
Abstract class for SwingConfiguratorInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNewObject(String systemName, String userName) Create a new object with the data entered.This method must also register the object in its manager.protected final voidcreatePanel(Base object, JPanel buttonPanel) protected JPanelcreateSubPanel(Base object, JPanel buttonPanel) The sub class may override this method to add more detail to the panel.final voiddispose()Dispose the panel and remove all the listeners that this class may have registered.Create a new system name.final JPanelgetConfigPanel(JPanel buttonPanel) Get a configuration panel when a new object is to be created and we don't have it yet.final JPanelgetConfigPanel(Base object, JPanel buttonPanel) Get a configuration panel for an object.Get an example of a system nameBaseManager<? extends NamedBean>Get the manager that handles the beans for the new object.toString()Returns the name of the class that this class configures.final voidupdateObject(Base object) Updates the object with the data in the form.final booleanValidate the form.booleanvalidateSubPanel(List<String> errorMessages) If the sub class overrides createSubPanel(), it may use this method to validate the sub panel.Methods inherited from class jmri.jmrit.logixng.swing.AbstractSwingConfigurator
executeEvaluate, getAllSymbols, getExecuteEvaluateMenuText, getJDialog, setJDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jmri.jmrit.logixng.swing.SwingConfiguratorInterface
canClose, compareTo, setDefaultValues
-
Constructor Details
-
AbstractDebuggerMaleSocketSwing
public AbstractDebuggerMaleSocketSwing()
-
-
Method Details
-
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 final 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
-
validate
Validate the form.The parameter errorMessage is used to give the error message in case of an error. If there are errors, the error messages is added to the list errorMessage.
- Parameters:
errorMessages- the error messages in case of an error- Returns:
- true if data in the form is valid, false otherwise
-
createSubPanel
The sub class may override this method to add more detail to the panel.- Parameters:
object- the object for which to return a configuration panelbuttonPanel- panel with the buttons- Returns:
- a panel that configures this object
-
validateSubPanel
If the sub class overrides createSubPanel(), it may use this method to validate the sub panel.The parameter errorMessage is used to give the error message in case of an error. If there are errors, the error messages is added to the list errorMessage.
- Parameters:
errorMessages- the error messages in case of an error- Returns:
- true if data in the form is valid, false otherwise
-
createNewObject
Create a new object with the data entered.This method must also register the object in its manager.- Parameters:
systemName- system nameuserName- user name- Returns:
- a male socket for the new object
-
updateObject
Updates the object with the data in the form.- Parameters:
object- the object to update
-
getExampleSystemName
Get an example of a system name- Returns:
- the system name
-
getAutoSystemName
Create a new system name.- Returns:
- a new system name
-
toString
Returns the name of the class that this class configures.- Specified by:
toStringin interfaceSwingConfiguratorInterface- Overrides:
toStringin classObject- Returns:
- the name of the class this class configures.
-
dispose
Description copied from interface:SwingConfiguratorInterfaceDispose the panel and remove all the listeners that this class may have registered.
-