Package jmri.util.startup
Class PerformScriptModelFactory
- java.lang.Object
-
- jmri.util.startup.AbstractFileModelFactory
-
- jmri.util.startup.PerformScriptModelFactory
-
- All Implemented Interfaces:
JmriServiceProviderInterface
,StartupModelFactory
public class PerformScriptModelFactory extends AbstractFileModelFactory
-
-
Constructor Summary
Constructors Constructor Description PerformScriptModelFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends StartupModel>
getModelClass()
Get theClass
that is generated by this factory.PerformScriptModel
newModel()
Create a new instance of the model.protected javax.swing.JFileChooser
setFileChooser()
This factory simply displays aJFileChooser
to allow users to configure the action.-
Methods inherited from class jmri.util.startup.AbstractFileModelFactory
editModel, getActionText, getDescription, initialize
-
-
-
-
Constructor Detail
-
PerformScriptModelFactory
public PerformScriptModelFactory()
-
-
Method Detail
-
getModelClass
public java.lang.Class<? extends StartupModel> getModelClass()
Description copied from interface:StartupModelFactory
Get theClass
that is generated by this factory. The Class must be a subclass ofStartupModel
.- Returns:
- The class this factory generates.
-
newModel
public PerformScriptModel newModel()
Description copied from interface:StartupModelFactory
Create a new instance of the model.- Returns:
- the new instance
-
setFileChooser
protected javax.swing.JFileChooser setFileChooser()
Description copied from class:AbstractFileModelFactory
This factory simply displays aJFileChooser
to allow users to configure the action. Subclasses to performAction the correct file chooser by implementing this method.- Specified by:
setFileChooser
in classAbstractFileModelFactory
- Returns:
- a configured file chooser.
-
-