Package jmri.jmrix.can.cbus.eventtable
Class CbusEventTableShutdownTask
- java.lang.Object
-
- jmri.implementation.AbstractShutDownTask
-
- jmri.jmrix.can.cbus.eventtable.CbusEventTableShutdownTask
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.lang.Runnable
,java.util.concurrent.Callable<java.lang.Boolean>
,java.util.EventListener
,ShutDownTask
public class CbusEventTableShutdownTask extends AbstractShutDownTask
Class to call dispose on a MERG CBUS event table. This saves the event data to XML prior to shutdown.
-
-
Constructor Summary
Constructors Constructor Description CbusEventTableShutdownTask(java.lang.String name, CbusEventTableDataModel model)
Constructor specifies the warning message and action to take
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Checks preferences, saving Table contents if necessary.-
Methods inherited from class jmri.implementation.AbstractShutDownTask
call, getName, isDoRun, propertyChange, setDoRun, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.ShutDownTask
runEarly
-
-
-
-
Constructor Detail
-
CbusEventTableShutdownTask
public CbusEventTableShutdownTask(java.lang.String name, CbusEventTableDataModel model)
Constructor specifies the warning message and action to take- Parameters:
name
- the name of the task (used in logs)model
- the CBUS Event Table instance to dispose of
-
-
Method Detail
-
run
public void run()
Checks preferences, saving Table contents if necessary.
-
-