diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-04-01 06:44:17 +0200 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-04-01 06:44:17 +0200 |
| commit | 1645bb275b4a2e3b84faf09bbd2a60e19f56b74f (patch) | |
| tree | fedef0afa5a4f07dc2d9e324dde2fffd569c917d /src/client/DriverJPanel.java | |
| parent | 53a8cefdbb7a2cf97b634dc52fc50f9fedd88a93 (diff) | |
Diffstat (limited to 'src/client/DriverJPanel.java')
| -rw-r--r-- | src/client/DriverJPanel.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/client/DriverJPanel.java b/src/client/DriverJPanel.java new file mode 100644 index 0000000..a88af43 --- /dev/null +++ b/src/client/DriverJPanel.java @@ -0,0 +1,30 @@ +package org.manzerbredes.open_klm.client; + +import org.manzerbredes.open_klm.drivers.Driver; + +/** + * JPanel for a specific driver. Each panel who manage + * a driver must implement this interface. + * + * @author Manzerbredes + * + */ +public interface DriverJPanel{ + + + /** + * Get the type of driver handled by the JPanel + * + * @return class Class that represent the type of the driver the JPanel handle + */ + public Class<?> getType(); + + /** + * + * Init the JPanel with a driver (driver must have the correct type) + * + * @param driver The driver to manage + * @return True if success to init, False else + */ + public boolean initUI(Driver driver); +}
\ No newline at end of file |
