Package jmri.util.startup
Class PerformFileModelFactory
java.lang.Object
jmri.util.startup.AbstractFileModelFactory
jmri.util.startup.PerformFileModelFactory
- All Implemented Interfaces:
JmriServiceProviderInterface,StartupModelFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends StartupModel>Get theClassthat is generated by this factory.newModel()Create a new instance of the model.protected JFileChooserThis factory simply displays aJFileChooserto allow users to configure the action.Methods inherited from class jmri.util.startup.AbstractFileModelFactory
editModel, getActionText, getDescription, initialize
-
Constructor Details
-
PerformFileModelFactory
public PerformFileModelFactory()
-
-
Method Details
-
getModelClass
Description copied from interface:StartupModelFactoryGet theClassthat is generated by this factory. The Class must be a subclass ofStartupModel.- Returns:
- The class this factory generates.
-
newModel
Description copied from interface:StartupModelFactoryCreate a new instance of the model.- Returns:
- the new instance
-
setFileChooser
Description copied from class:AbstractFileModelFactoryThis factory simply displays aJFileChooserto allow users to configure the action. Subclasses to performAction the correct file chooser by implementing this method.- Specified by:
setFileChooserin classAbstractFileModelFactory- Returns:
- a configured file chooser.
-