X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2FGenericFunction.java;fp=src%2Ftim%2Fprune%2FGenericFunction.java;h=047ac7475c5c628a6c4b99034490d81e74701051;hp=0000000000000000000000000000000000000000;hb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;hpb=2d8cb72e84d5cc1089ce77baf1e34ea3ea2f8465 diff --git a/src/tim/prune/GenericFunction.java b/src/tim/prune/GenericFunction.java new file mode 100644 index 0000000..047ac74 --- /dev/null +++ b/src/tim/prune/GenericFunction.java @@ -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(); +}