X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fplugin%2FSwingConfigurator.java;fp=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fplugin%2FSwingConfigurator.java;h=86ba323e06c7fb62899b9e059406b469346d80ff;hb=9349577cdfdff682b2aabd6daa24fdc3a7449b58;hp=0000000000000000000000000000000000000000;hpb=30ba0a882f0c061176ba14dbf86d3d6fad096c02;p=debian%2Fopenrocket diff --git a/core/src/net/sf/openrocket/plugin/SwingConfigurator.java b/core/src/net/sf/openrocket/plugin/SwingConfigurator.java new file mode 100644 index 00000000..86ba323e --- /dev/null +++ b/core/src/net/sf/openrocket/plugin/SwingConfigurator.java @@ -0,0 +1,37 @@ +package net.sf.openrocket.plugin; + +import java.awt.Component; + +import net.xeoh.plugins.base.Plugin; + +/** + * Interface that defined a Swing configurator for a plugin. + * The implemeting class should be a plugin that provides the + * capability ":config" where is the + * plugin ID of the plugin to configure. + *

+ * + * @param

The plugin class that is being configured + * @author Sampo Niskanen + */ +public interface SwingConfigurator

extends Plugin { + + /** + * Return whether this plugin is configurable or not. + * + * @param plugin the plugin to test. + * @return whether the plugin has a configuration component. + */ + public boolean isConfigurable(P plugin); + + /** + * Return the configuration component for configuring the + * provided plugin. + * + * @param plugin the plugin to configure. + * @return a Swing component for configuring the plugin. + */ + public Component getConfigurationComponent(P plugin); + + +}