Skip to content
Snippets Groups Projects
Commit 45f6f97e authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#157 - update boolean properties on checkbox changed

parent b3560b33
No related branches found
No related tags found
No related merge requests found
...@@ -59,9 +59,21 @@ public class ModernCartDesignViewController extends NVC implements IColorButton ...@@ -59,9 +59,21 @@ public class ModernCartDesignViewController extends NVC implements IColorButton
@Override @Override
public void init() { public void init() {
backgroundColorCheckbox.selectedProperty().addListener((a, b, c) -> backgroundColorButton.setDisable(!c)); backgroundColorCheckbox.selectedProperty().addListener((a, b, c) ->
playColorCheckbox.selectedProperty().addListener((a, b, c) -> playColorButton.setDisable(!c)); {
cueInColorCheckbox.selectedProperty().addListener((a, b, c) -> cueInColorButton.setDisable(!c)); design.setEnableCustomBackgroundColor(c);
backgroundColorButton.setDisable(!c);
});
playColorCheckbox.selectedProperty().addListener((a, b, c) ->
{
design.setEnableCustomPlayColor(c);
playColorButton.setDisable(!c);
});
cueInColorCheckbox.selectedProperty().addListener((a, b, c) ->
{
design.setEnableCustomCueInColor(c);
cueInColorButton.setDisable(!c);
});
backgroundColorButton.setDisable(true); backgroundColorButton.setDisable(true);
playColorButton.setDisable(true); playColorButton.setDisable(true);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<?import javafx.scene.layout.HBox?> <?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<VBox spacing="28.0" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1"> <VBox spacing="14.0" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1">
<children> <children>
<HBox layoutX="14.0" layoutY="13.0" spacing="14.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0"> <HBox layoutX="14.0" layoutY="13.0" spacing="14.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0">
<children> <children>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment