■ ■ ■ ■ ■ ■
vucsa-client/src/main/java/com/warxim/vucsa/client/gui/GuiBundle.java
| skipped 16 lines |
17 | 17 | | package com.warxim.vucsa.client.gui; |
18 | 18 | | |
19 | 19 | | import com.warxim.vucsa.client.gui.controller.ApplicationController; |
| 20 | + | import javafx.application.HostServices; |
20 | 21 | | import javafx.scene.image.Image; |
21 | 22 | | import lombok.Getter; |
22 | 23 | | |
| skipped 18 lines |
41 | 42 | | * Application controller |
42 | 43 | | */ |
43 | 44 | | private ApplicationController applicationController; |
| 45 | + | |
| 46 | + | /** |
| 47 | + | * Host services |
| 48 | + | */ |
| 49 | + | private HostServices hostServices; |
44 | 50 | | |
45 | 51 | | private GuiBundle() { |
46 | 52 | | logo = new Image(Objects.requireNonNull(getClass().getResourceAsStream("/img/Logo.png"))); |
| skipped 29 lines |
76 | 82 | | */ |
77 | 83 | | public void setApplicationController(ApplicationController controller) { |
78 | 84 | | applicationController = controller; |
| 85 | + | } |
| 86 | + | |
| 87 | + | /** |
| 88 | + | * Obtains host services |
| 89 | + | * @return Host services |
| 90 | + | */ |
| 91 | + | public HostServices getHostServices() { |
| 92 | + | return hostServices; |
| 93 | + | } |
| 94 | + | |
| 95 | + | /** |
| 96 | + | * Sets host services |
| 97 | + | * @param hostServices Host services |
| 98 | + | */ |
| 99 | + | public void setHostServices(HostServices hostServices) { |
| 100 | + | this.hostServices = hostServices; |
79 | 101 | | } |
80 | 102 | | |
81 | 103 | | /** |
| skipped 6 lines |