diff --git a/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogUpdate.java b/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogUpdate.java deleted file mode 100644 index 13ad32d..0000000 --- a/voting-station-gui/src/polling_station_dashboard/StatusLog/java/StatusLogUpdate.java +++ /dev/null @@ -1,12 +0,0 @@ -package polling_station_dashboard.statusLog.java; - - -import javafx.event.EventHandler; - -/** - * Created by Vladimir Eliezer Tokarev on 04/06/2016. - * StatusLogUpdate gives the ability to update the status log object - */ -public interface StatusLogUpdate extends EventHandler { - void UpdateStatusLog(); -} diff --git a/voting-station-gui/src/polling_station_dashboard/java/PollingStationDashboardController.java b/voting-station-gui/src/polling_station_dashboard/java/PollingStationDashboardController.java index 665274f..d167cf7 100644 --- a/voting-station-gui/src/polling_station_dashboard/java/PollingStationDashboardController.java +++ b/voting-station-gui/src/polling_station_dashboard/java/PollingStationDashboardController.java @@ -14,8 +14,8 @@ public class PollingStationDashboardController { { this.eventHandlerMap = map; } - @FXML + @FXML private void OnStatusLogPressed(MouseEvent mousePressed) { this.eventHandlerMap.Handle(mousePressed); diff --git a/voting-station-gui/src/polling_station_dashboard/settings/java/SettingsUpdate.java b/voting-station-gui/src/polling_station_dashboard/settings/java/SettingsUpdate.java deleted file mode 100644 index 3e40979..0000000 --- a/voting-station-gui/src/polling_station_dashboard/settings/java/SettingsUpdate.java +++ /dev/null @@ -1,13 +0,0 @@ -package polling_station_dashboard.settings.java; - -import javafx.event.EventHandler; - -/** - * Created by Vladimir Eliezer Tokarev on 04/06/2016. - * SettingsUpdate gives the ability to update the settings object - * this interface extends InvocationHandler in order to be able to be called - */ -public interface SettingsUpdate extends EventHandler { - - void UpdateSettings(); -} diff --git a/voting-station-gui/src/polling_station_dashboard/settings/java/SettingsVisualUpdater.java b/voting-station-gui/src/polling_station_dashboard/settings/java/SettingsVisualUpdater.java index 4b32613..e00abe6 100644 --- a/voting-station-gui/src/polling_station_dashboard/settings/java/SettingsVisualUpdater.java +++ b/voting-station-gui/src/polling_station_dashboard/settings/java/SettingsVisualUpdater.java @@ -1,6 +1,7 @@ package polling_station_dashboard.settings.java; import javafx.event.Event; +import javafx.event.EventHandler; import javafx.scene.control.Button; import javafx.scene.layout.GridPane; import javafx.scene.layout.Pane; @@ -11,7 +12,7 @@ import javafx.stage.Stage; * This object manages the visual changes of the settings panel * which means that he opens and closes settings panel) */ -public class SettingsVisualUpdater implements SettingsUpdate { +public class SettingsVisualUpdater implements EventHandler { private GridPane settings; private static final int SETTINGS_HEIGHT_EXPANSION_VALUE = 60; @@ -24,7 +25,6 @@ public class SettingsVisualUpdater implements SettingsUpdate { this.currentStage = primalStage; } - @Override public void UpdateSettings() { showSettingsButton(settingsOpened); if (!settingsOpened) { diff --git a/voting-station-gui/src/polling_station_dashboard/settings/settings.fxml b/voting-station-gui/src/polling_station_dashboard/settings/settings.fxml deleted file mode 100644 index a37f6a2..0000000 --- a/voting-station-gui/src/polling_station_dashboard/settings/settings.fxml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/voting-station-gui/src/polling_station_dashboard/statusLog/java/StatusLogVisualUpdater.java b/voting-station-gui/src/polling_station_dashboard/statusLog/java/StatusLogVisualUpdater.java index 234a3bb..60f3321 100644 --- a/voting-station-gui/src/polling_station_dashboard/statusLog/java/StatusLogVisualUpdater.java +++ b/voting-station-gui/src/polling_station_dashboard/statusLog/java/StatusLogVisualUpdater.java @@ -1,6 +1,7 @@ package polling_station_dashboard.statusLog.java; import javafx.event.Event; +import javafx.event.EventHandler; import javafx.scene.control.Button; import javafx.scene.layout.GridPane; import javafx.scene.layout.Pane; @@ -11,7 +12,7 @@ import javafx.stage.Stage; * This object manages the visual changes of the status log panel * which means that he opens and closes status log panel) */ -public class StatusLogVisualUpdater implements StatusLogUpdate { +public class StatusLogVisualUpdater implements EventHandler { private static final int STATUS_LOG_WIDTH_EXPANSION_VALUE = 400; private boolean statusLogOpened = false; @@ -25,7 +26,6 @@ public class StatusLogVisualUpdater implements StatusLogUpdate { this.currentStage = primalStage; } - @Override public void UpdateStatusLog(){ showStatusLogButton(statusLogOpened); if (!statusLogOpened) {