Package apps.startup
Class StartupPauseFactory
java.lang.Object
apps.startup.StartupPauseFactory
- All Implemented Interfaces:
JmriServiceProviderInterface,StartupModelFactory
Factory for
StartupPauseModel objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoideditModel(StartupModel model, Component parent) Allow user to edit the model.Get the action text for models this factory generates.Get the description for models this factory generates.Class<? extends StartupModel>Get theClassthat is generated by this factory.voidProvides a mechanism for theStartupActionsManagerto run any required post-construction initialization.newModel()Create a new instance of the model.
-
Constructor Details
-
StartupPauseFactory
public StartupPauseFactory()
-
-
Method Details
-
getModelClass
Description copied from interface:StartupModelFactoryGet theClassthat is generated by this factory. The Class must be a subclass ofStartupModel.- Specified by:
getModelClassin interfaceStartupModelFactory- Returns:
- The class this factory generates.
-
newModel
Description copied from interface:StartupModelFactoryCreate a new instance of the model.- Specified by:
newModelin interfaceStartupModelFactory- Returns:
- the new instance
-
getDescription
Description copied from interface:StartupModelFactoryGet the description for models this factory generates. This is used in the preferences UI to describe the class, so it should be short.- Specified by:
getDescriptionin interfaceStartupModelFactory- Returns:
- A short description.
-
getActionText
Description copied from interface:StartupModelFactoryGet the action text for models this factory generates. This is used in menus and UI elements that start the process of creating and editing a new startup action. If the startup action is not configurable, this should be the same asStartupModelFactory.getDescription().- Specified by:
getActionTextin interfaceStartupModelFactory- Returns:
- Action text
-
editModel
Description copied from interface:StartupModelFactoryAllow user to edit the model.- Specified by:
editModelin interfaceStartupModelFactory- Parameters:
model- the model to editparent- the parent component for the editing UI
-
initialize
Description copied from interface:StartupModelFactoryProvides a mechanism for theStartupActionsManagerto run any required post-construction initialization.- Specified by:
initializein interfaceStartupModelFactory
-