Class ExpressionScriptSwing
- java.lang.Object
-
- jmri.jmrit.logixng.swing.AbstractSwingConfigurator
-
- jmri.jmrit.logixng.expressions.swing.AbstractDigitalExpressionSwing
-
- jmri.jmrit.logixng.expressions.swing.ExpressionScriptSwing
-
- All Implemented Interfaces:
java.lang.Comparable<SwingConfiguratorInterface>
,SwingConfiguratorInterface
public class ExpressionScriptSwing extends AbstractDigitalExpressionSwing
Configures an ExpressionScript object with a Swing JPanel.
-
-
Field Summary
Fields Modifier and Type Field Description static int
NUM_COLUMNS_TEXT_FIELDS
-
Fields inherited from class jmri.jmrit.logixng.expressions.swing.AbstractDigitalExpressionSwing
panel
-
-
Constructor Summary
Constructors Constructor Description ExpressionScriptSwing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaleSocket
createNewObject(java.lang.String systemName, java.lang.String userName)
Create a new object with the data entered.This method must also register the object in its manager.protected void
createPanel(Base object, javax.swing.JPanel buttonPanel)
void
dispose()
Dispose the panel and remove all the listeners that this class may have registered.java.lang.String
toString()
Returns the name of the class that this class configures.void
updateObject(Base object)
Updates the object with the data in the form.boolean
validate(java.util.List<java.lang.String> errorMessages)
Validate the form.-
Methods inherited from class jmri.jmrit.logixng.expressions.swing.AbstractDigitalExpressionSwing
executeEvaluate, getAutoSystemName, getConfigPanel, getConfigPanel, getExampleSystemName, getExecuteEvaluateMenuText, getManager
-
Methods inherited from class jmri.jmrit.logixng.swing.AbstractSwingConfigurator
getAllSymbols, getJDialog, setJDialog
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.jmrit.logixng.swing.SwingConfiguratorInterface
canClose, compareTo, setDefaultValues
-
-
-
-
Field Detail
-
NUM_COLUMNS_TEXT_FIELDS
public static final int NUM_COLUMNS_TEXT_FIELDS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExpressionScriptSwing
public ExpressionScriptSwing()
-
-
Method Detail
-
createPanel
protected void createPanel(@CheckForNull Base object, @Nonnull javax.swing.JPanel buttonPanel)
- Specified by:
createPanel
in classAbstractDigitalExpressionSwing
-
validate
public boolean validate(@Nonnull java.util.List<java.lang.String> errorMessages)
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
public MaleSocket createNewObject(@Nonnull java.lang.String systemName, @CheckForNull java.lang.String userName)
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
public void updateObject(@Nonnull Base object)
Updates the object with the data in the form.- Parameters:
object
- the object to update
-
toString
public java.lang.String toString()
Returns the name of the class that this class configures.- Specified by:
toString
in interfaceSwingConfiguratorInterface
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the name of the class this class configures.
-
dispose
public void dispose()
Description copied from interface:SwingConfiguratorInterface
Dispose the panel and remove all the listeners that this class may have registered.
-
-