Package apps.startup
Class ScriptButtonModel
- java.lang.Object
-
- jmri.util.startup.AbstractStartupModel
-
- apps.startup.ScriptButtonModel
-
- All Implemented Interfaces:
StartupModel
public class ScriptButtonModel extends AbstractStartupModel
-
-
Constructor Summary
Constructors Constructor Description ScriptButtonModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getScript()
void
performAction()
Perform the startup action.void
setScript(java.io.File script)
java.lang.String
toString()
-
Methods inherited from class jmri.util.startup.AbstractStartupModel
addException, getExceptions, getName, isEnabled, isValid, setEnabled, setName
-
-
-
-
Constructor Detail
-
ScriptButtonModel
public ScriptButtonModel()
-
-
Method Detail
-
getScript
public java.io.File getScript()
-
setScript
public void setScript(java.io.File script)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractStartupModel
-
performAction
public void performAction() throws JmriException
Description copied from interface:StartupModel
Perform the startup action. The caller is responsible to ensure that this startup model is enabled before calling this method.- Throws:
JmriException
- if there is an exception thrown initializing the startup item; the original exception should be available asThrowable.getCause()
-
-