se.umu.cs.tm11ajn.apjava.travelinfo.controller
public class SettingsWindowActions extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) SettingsHandler |
settingsHandler |
(package private) SettingsWindow |
settingsWindow |
Constructor and Description |
---|
SettingsWindowActions(SettingsWindow settingsWindow,
SettingsHandler settingsHandler) |
Modifier and Type | Method and Description |
---|---|
void |
addDestinationButtonAction()
Adds destination written in the enter destination text field
to the destination filter list and to the settings handler.
|
void |
comboBoxAction(int choice)
Sets the interval setting value to the input value.
|
void |
doneButtonAction()
Sets the settings window to invisible.
|
void |
removeDestinationButtonAction()
Removes the destination selected in the destination filter
list and removes the same destination from the settings
handler, that is, updates the settings accordingly.
|
SettingsWindow settingsWindow
SettingsHandler settingsHandler
public SettingsWindowActions(SettingsWindow settingsWindow, SettingsHandler settingsHandler)
public void comboBoxAction(int choice)
choice
- final int: The new interval setting.public void addDestinationButtonAction()
public void removeDestinationButtonAction()
public void doneButtonAction()