se.umu.cs.tm11ajn.apjava.travelinfo.controller
public class MenuBarActions extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) TravelInfoWindow |
tInfoWindow |
(package private) Updater |
updater |
Constructor and Description |
---|
MenuBarActions(Updater updater,
TravelInfoWindow tInfoWindow) |
Modifier and Type | Method and Description |
---|---|
void |
aboutItemAction()
Prints an information message with information about this
application.
|
void |
helpItemAction()
Prints an information message with usage information.
|
void |
settingsItemAction(SettingsWindow settingsWindow,
SettingsHandler settingsHandler)
Making adjustments to the settings window before displaying it
and adds all the settings data to the window.
|
void |
updateItemAction()
Updates the table with new travel info by invoking the update
method in the Updater.
|
Updater updater
TravelInfoWindow tInfoWindow
public MenuBarActions(Updater updater, TravelInfoWindow tInfoWindow)
public void updateItemAction()
public void settingsItemAction(SettingsWindow settingsWindow, SettingsHandler settingsHandler)
settingsWindow
- SettingsWindow: The window displaying
and making it possible to change the settings.settingsHandler
- SettingsHandler: The settings handler
which contains all the settings data.public void aboutItemAction()
public void helpItemAction()