Package apps.startup
Class CreateButtonModelFactory
- java.lang.Object
-
- jmri.util.startup.AbstractActionModelFactory
-
- apps.startup.CreateButtonModelFactory
-
- All Implemented Interfaces:
JmriServiceProviderInterface
,StartupModelFactory
public class CreateButtonModelFactory extends AbstractActionModelFactory
-
-
Constructor Summary
Constructors Constructor Description CreateButtonModelFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEditModelMessage()
Get the message text for the dialog created inAbstractActionModelFactory.editModel(StartupModel, java.awt.Component)
.java.lang.Class<? extends StartupModel>
getModelClass()
Get theClass
that is generated by this factory.CreateButtonModel
newModel()
Create a new instance of the model.-
Methods inherited from class jmri.util.startup.AbstractActionModelFactory
editModel, getActionText, getDescription, initialize
-
-
-
-
Constructor Detail
-
CreateButtonModelFactory
public CreateButtonModelFactory()
-
-
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 CreateButtonModel newModel()
Description copied from interface:StartupModelFactory
Create a new instance of the model.- Returns:
- the new instance
-
getEditModelMessage
public java.lang.String getEditModelMessage()
Description copied from class:AbstractActionModelFactory
Get the message text for the dialog created inAbstractActionModelFactory.editModel(StartupModel, java.awt.Component)
.- Specified by:
getEditModelMessage
in classAbstractActionModelFactory
- Returns:
- the message text
-
-