Package jmri.util.startup
Class PerformActionModel
- java.lang.Object
-
- jmri.util.startup.AbstractActionModel
-
- jmri.util.startup.PerformActionModel
-
- All Implemented Interfaces:
StartupModel
public class PerformActionModel extends AbstractActionModel
Invokes a Swing Action when the program is started.The list of actions available is defined in the
AbstractActionModel
superclass.This is a separate class, even though it has no additional behavior, so that persistence systems realize the type of data being stored.
This class remains in the
apps
package for historical reasons related to preferences storage.- See Also:
PerformActionModelFactory
-
-
Constructor Summary
Constructors Constructor Description PerformActionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
performAction(javax.swing.Action action)
-
Methods inherited from class jmri.util.startup.AbstractActionModel
addException, getClassName, getExceptions, getName, getSystemPrefix, isEnabled, isSystemConnectionAction, isValid, performAction, setClassName, setEnabled, setName, setSystemPrefix, toString
-
-
-
-
Constructor Detail
-
PerformActionModel
public PerformActionModel()
-
-
Method Detail
-
performAction
protected void performAction(javax.swing.Action action) throws JmriException
- Specified by:
performAction
in classAbstractActionModel
- Throws:
JmriException
-
-