| 
									
										
										
										
											2016-05-28 10:50:22 -04:00
										 |  |  | package polling_station_dashboard.java; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-04 06:01:06 -04:00
										 |  |  | import javafx.fxml.FXML; | 
					
						
							| 
									
										
										
										
											2016-06-12 08:20:29 -04:00
										 |  |  | import javafx.scene.input.MouseEvent; | 
					
						
							| 
									
										
										
										
											2016-05-28 11:00:40 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-28 10:50:22 -04:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Created by Vladimir Eliezer Tokarev on 28/05/2016. | 
					
						
							| 
									
										
										
										
											2016-06-04 08:11:18 -04:00
										 |  |  |  * PollingStationDashboardController controls the behavior of the polling station dashboard | 
					
						
							| 
									
										
										
										
											2016-05-28 10:50:22 -04:00
										 |  |  |  */ | 
					
						
							| 
									
										
										
										
											2016-06-12 06:18:01 -04:00
										 |  |  | public class PollingStationDashboardController { | 
					
						
							| 
									
										
										
										
											2016-06-12 09:00:49 -04:00
										 |  |  |     private EventHandlerMap eventHandlerMap; | 
					
						
							| 
									
										
										
										
											2016-06-04 09:48:47 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-12 09:00:49 -04:00
										 |  |  |     public void SetEventHandlerMap(EventHandlerMap map) | 
					
						
							| 
									
										
										
										
											2016-06-12 06:18:01 -04:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2016-06-12 09:00:49 -04:00
										 |  |  |         this.eventHandlerMap = map; | 
					
						
							| 
									
										
										
										
											2016-06-04 09:48:47 -04:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-12 09:06:24 -04:00
										 |  |  |     @FXML | 
					
						
							| 
									
										
										
										
											2016-06-12 09:00:49 -04:00
										 |  |  |     private void OnStatusLogPressed(MouseEvent mousePressed) | 
					
						
							| 
									
										
										
										
											2016-06-12 06:18:01 -04:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2016-06-12 09:00:49 -04:00
										 |  |  |         this.eventHandlerMap.Handle(mousePressed); | 
					
						
							| 
									
										
										
										
											2016-06-04 06:01:06 -04:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @FXML | 
					
						
							| 
									
										
										
										
											2016-06-12 09:00:49 -04:00
										 |  |  |     private void OnSettingsPressed(MouseEvent mousePressed) | 
					
						
							| 
									
										
										
										
											2016-06-12 06:18:01 -04:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2016-06-12 09:00:49 -04:00
										 |  |  |         this.eventHandlerMap.Handle(mousePressed); | 
					
						
							| 
									
										
										
										
											2016-06-04 09:48:47 -04:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-12 06:18:01 -04:00
										 |  |  |     @FXML | 
					
						
							| 
									
										
										
										
											2016-06-12 09:00:49 -04:00
										 |  |  |     private void SearchTrigered(MouseEvent mousePressed) | 
					
						
							| 
									
										
										
										
											2016-06-12 06:18:01 -04:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2016-06-12 09:00:49 -04:00
										 |  |  |         this.eventHandlerMap.Handle(mousePressed); | 
					
						
							| 
									
										
										
										
											2016-06-04 06:01:06 -04:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2016-05-28 10:50:22 -04:00
										 |  |  | } |