From 1645bb275b4a2e3b84faf09bbd2a60e19f56b74f Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Fri, 1 Apr 2016 06:44:17 +0200 Subject: Clean code --- src/client/DriverJPanel.java | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/client/DriverJPanel.java (limited to 'src/client/DriverJPanel.java') 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 -- cgit v1.2.3