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 voidhandle(LanguageChangedEvent event)Updates menubuttons whenever the language is changedvoidhandle(ThemeChangedEvent event)Updates menubuttons whenever the theme is changedvoidinitialize(java.net.URL url, java.util.ResourceBundle resourceBundle)voidsetEventBus(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:
initializein interfacejavafx.fxml.Initializable
-
setEventBus
public void setEventBus(com.google.common.eventbus.EventBus eventBus)Description copied from interface:ControllerRegisters the main EventBus into the controller.- Specified by:
setEventBusin interfaceController
-
handle
Updates menubuttons whenever the language is changed- Parameters:
event-
-
handle
Updates menubuttons whenever the theme is changed- Parameters:
event-
-