]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - src/tim/prune/GenericFunction.java
Moved source into separate src directory due to popular request
[GpsPrune.git] / src / tim / prune / GenericFunction.java
diff --git a/src/tim/prune/GenericFunction.java b/src/tim/prune/GenericFunction.java
new file mode 100644 (file)
index 0000000..047ac74
--- /dev/null
@@ -0,0 +1,35 @@
+package tim.prune;
+
+import javax.swing.JFrame;
+
+/**
+ * Generic function class for launching from the app
+ */
+public abstract class GenericFunction
+{
+       /** Reference to app object */
+       protected App _app = null;
+       /** Reference to parent frame */
+       protected JFrame _parentFrame = null;
+
+
+       /**
+        * Constructor
+        * @param inApp app object
+        */
+       public GenericFunction(App inApp)
+       {
+               _app = inApp;
+               _parentFrame = inApp.getFrame();
+       }
+
+       /**
+        * Begin the function
+        */
+       public abstract void begin();
+
+       /**
+        * @return the key for the function name
+        */
+       public abstract String getNameKey();
+}