Package com.treasure.hunt.view.settings
Class SettingsController
- java.lang.Object
-
- com.treasure.hunt.view.settings.SettingsController
-
public class SettingsController extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description javafx.scene.control.Button
cancelButton
Button to cancel the settings changes.javafx.scene.control.Button
saveButton
Button to save the altered settings.javafx.scene.layout.VBox
settingsList
List of setting boxes.
-
Constructor Summary
Constructors Constructor Description SettingsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancel action.javafx.beans.binding.BooleanBinding
getSomethingChanged()
Binding for when a setting has changed.void
initialize()
Setup of the settings window.void
save()
Save action overrides the settings.
-
-
-
Method Detail
-
initialize
public void initialize()
Setup of the settings window. Binds the field converters.
-
cancel
public void cancel()
Cancel action. Closes the settings window.
-
save
public void save()
Save action overrides the settings. Thus invalidating the "something-changed" bindings.
-
getSomethingChanged
public javafx.beans.binding.BooleanBinding getSomethingChanged()
Binding for when a setting has changed.
-
-