Package jmri.jmrit.logixng.actions.swing
Class ActionEntryExitSwing
- java.lang.Object
- 
- jmri.jmrit.logixng.swing.AbstractSwingConfigurator
- 
- jmri.jmrit.logixng.actions.swing.AbstractDigitalActionSwing
- 
- jmri.jmrit.logixng.actions.swing.ActionEntryExitSwing
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<SwingConfiguratorInterface>,- SwingConfiguratorInterface
 
 public class ActionEntryExitSwing extends AbstractDigitalActionSwing Configures an EntryExit object with a Swing JPanel.
- 
- 
Field Summary- 
Fields inherited from class jmri.jmrit.logixng.actions.swing.AbstractDigitalActionSwingpanel
 
- 
 - 
Constructor SummaryConstructors Constructor Description ActionEntryExitSwing()ActionEntryExitSwing(javax.swing.JDialog dialog)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MaleSocketcreateNewObject(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 voidcreatePanel(Base object, javax.swing.JPanel buttonPanel)voiddispose()Dispose the panel and remove all the listeners that this class may have registered.java.lang.StringtoString()Returns the name of the class that this class configures.voidupdateObject(Base object)Updates the object with the data in the form.booleanvalidate(java.util.List<java.lang.String> errorMessages)Validate the form.- 
Methods inherited from class jmri.jmrit.logixng.actions.swing.AbstractDigitalActionSwingexecuteEvaluate, getAutoSystemName, getConfigPanel, getConfigPanel, getExampleSystemName, getExecuteEvaluateMenuText, getManager
 - 
Methods inherited from class jmri.jmrit.logixng.swing.AbstractSwingConfiguratorgetAllSymbols, getJDialog, setJDialog
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jmri.jmrit.logixng.swing.SwingConfiguratorInterfacecanClose, compareTo, setDefaultValues
 
- 
 
- 
- 
- 
Constructor Detail- 
ActionEntryExitSwingpublic ActionEntryExitSwing() 
 - 
ActionEntryExitSwingpublic ActionEntryExitSwing(javax.swing.JDialog dialog) 
 
- 
 - 
Method Detail- 
createPanelprotected void createPanel(@CheckForNull Base object, @Nonnull javax.swing.JPanel buttonPanel) - Specified by:
- createPanelin class- AbstractDigitalActionSwing
 
 - 
validatepublic 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
 
 - 
createNewObjectpublic 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 name
- userName- user name
- Returns:
- a male socket for the new object
 
 - 
updateObjectpublic void updateObject(@Nonnull Base object) Updates the object with the data in the form.- Parameters:
- object- the object to update
 
 - 
toStringpublic java.lang.String toString() Returns the name of the class that this class configures.- Specified by:
- toStringin interface- SwingConfiguratorInterface
- Overrides:
- toStringin class- java.lang.Object
- Returns:
- the name of the class this class configures.
 
 - 
disposepublic void dispose() Description copied from interface:SwingConfiguratorInterfaceDispose the panel and remove all the listeners that this class may have registered.
 
- 
 
-