Class ExpressionReporterSwing
java.lang.Object
jmri.jmrit.logixng.swing.AbstractSwingConfigurator
jmri.jmrit.logixng.expressions.swing.AbstractDigitalExpressionSwing
jmri.jmrit.logixng.expressions.swing.ExpressionReporterSwing
- All Implemented Interfaces:
Comparable<SwingConfiguratorInterface>,SwingConfiguratorInterface
Configures an ExpressionReporter object with a Swing JPanel.
-
Field Summary
Fields inherited from class jmri.jmrit.logixng.expressions.swing.AbstractDigitalExpressionSwing
panel -
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 voidcreatePanel(Base object, JPanel buttonPanel) voiddispose()Dispose the panel and remove all the listeners that this class may have registered.voidSet default values for this dialog.toString()Returns the name of the class that this class configures.voidupdateObject(Base object) Updates the object with the data in the form.booleanValidate the form.Methods inherited from class jmri.jmrit.logixng.expressions.swing.AbstractDigitalExpressionSwing
executeEvaluate, getAutoSystemName, getConfigPanel, getConfigPanel, getExampleSystemName, getExecuteEvaluateMenuText, getManagerMethods inherited from class jmri.jmrit.logixng.swing.AbstractSwingConfigurator
getAllSymbols, 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
-
Constructor Details
-
ExpressionReporterSwing
public ExpressionReporterSwing()
-
-
Method Details
-
createPanel
- Specified by:
createPanelin classAbstractDigitalExpressionSwing
-
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
-
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
-
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.
-
setDefaultValues
Description copied from interface:SwingConfiguratorInterfaceSet default values for this dialog. This method is used by tests to be able to run validation without knowing which data that needs to be entered for the validation to pass. -
dispose
Description copied from interface:SwingConfiguratorInterfaceDispose the panel and remove all the listeners that this class may have registered.
-