public void toggleState(ToggleButton button) {
        isEnabled = button.isSelected();
        alarm.setEnabled(isEnabled);

        if(isEnabled) {
            this.getStyleClass().remove("disabled");
            button.setText("On");
        } else {
            this.getStyleClass().add("disabled");
            button.setText("Off");
        }
    }