]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/GenericFunction.java
Version 19.2, December 2018
[GpsPrune.git] / tim / prune / GenericFunction.java
1 package tim.prune;
2
3 import javax.swing.JFrame;
4
5 /**
6  * Generic function class for launching from the app
7  */
8 public abstract class GenericFunction
9 {
10         /** Reference to app object */
11         protected App _app = null;
12         /** Reference to parent frame */
13         protected JFrame _parentFrame = null;
14
15
16         /**
17          * Constructor
18          * @param inApp app object
19          */
20         public GenericFunction(App inApp)
21         {
22                 _app = inApp;
23                 _parentFrame = inApp.getFrame();
24         }
25
26         /**
27          * Begin the function
28          */
29         public abstract void begin();
30
31         /**
32          * @return the key for the function name
33          */
34         public abstract String getNameKey();
35 }