Package apps.startup
Class TriggerRouteModelFactory
- java.lang.Object
-
- apps.startup.TriggerRouteModelFactory
-
- All Implemented Interfaces:
JmriServiceProviderInterface,StartupModelFactory
public class TriggerRouteModelFactory extends java.lang.Object implements StartupModelFactory
Factory to createTriggerRouteModelobjects.
-
-
Constructor Summary
Constructors Constructor Description TriggerRouteModelFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideditModel(StartupModel model, java.awt.Component parent)Allow user to edit the model.java.lang.StringgetActionText()Get the action text for models this factory generates.java.lang.StringgetDescription()Get the description for models this factory generates.java.lang.Class<? extends StartupModel>getModelClass()Get theClassthat is generated by this factory.voidinitialize()Provides a mechanism for theStartupActionsManagerto run any required post-construction initialization.StartupModelnewModel()Create a new instance of the model.
-
-
-
Constructor Detail
-
TriggerRouteModelFactory
public TriggerRouteModelFactory()
-
-
Method Detail
-
getModelClass
public java.lang.Class<? extends StartupModel> 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.
-
getDescription
public java.lang.String 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
public java.lang.String 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
-
newModel
public StartupModel newModel()
Description copied from interface:StartupModelFactoryCreate a new instance of the model.- Specified by:
newModelin interfaceStartupModelFactory- Returns:
- the new instance
-
editModel
public void editModel(StartupModel model, java.awt.Component parent)
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
public void initialize()
Description copied from interface:StartupModelFactoryProvides a mechanism for theStartupActionsManagerto run any required post-construction initialization.- Specified by:
initializein interfaceStartupModelFactory
-
-