Package app.controllers
Class MenubarController
java.lang.Object
app.controllers.MenubarController
- All Implemented Interfaces:
Controller
,javafx.fxml.Initializable
public class MenubarController extends java.lang.Object implements javafx.fxml.Initializable, Controller
A FXML controller that controls the MenuBar
-
Constructor Summary
Constructors Constructor Description MenubarController()
-
Method Summary
Modifier and Type Method Description void
handle(LanguageChangedEvent event)
Updates menubuttons whenever the language is changedvoid
handle(ThemeChangedEvent event)
Updates menubuttons whenever the theme is changedvoid
initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)
void
setEventBus(com.google.common.eventbus.EventBus eventBus)
Registers the main EventBus into the controller.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MenubarController
public MenubarController()
-
-
Method Details
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)- Specified by:
initialize
in interfacejavafx.fxml.Initializable
-
setEventBus
public void setEventBus(com.google.common.eventbus.EventBus eventBus)Description copied from interface:Controller
Registers the main EventBus into the controller.- Specified by:
setEventBus
in interfaceController
-
handle
Updates menubuttons whenever the language is changed- Parameters:
event
-
-
handle
Updates menubuttons whenever the theme is changed- Parameters:
event
-
-