@PostConstruct
private void initializeDialog() {
setTitle(messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.church.ChurchGiftDialog.title", new Object[]{}, locale.getCurrentLocal()));
String template = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.church.ChurchGiftDialog.introText", new Object[]{}, locale.getCurrentLocal());
DecoratedText text = textFactory.createDecoratedText(template, new HashMap<>());
VBox box = new VBox(text);
final ICompany company = city.getPlayer().getCompany();
moneyTransfer = fxUtils.getMoneyTransfer(imageLoader);
moneyTransfer.setStepSize(500);
moneyTransfer.maxTransfereableProperty().bind(company.cashProperty());
moneyTransfer.setAmount(0);
box.setLayoutX(50);
box.setLayoutY(CLOSE_BTN_Y_POS - 500);
moneyTransfer.setPadding(new Insets(100, 0, 0, 100));
box.getChildren().addAll(moneyTransfer);
final int actionButtonX = (WIDTH - 124) / 2;
String s = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.church.ChurchFeedingDialog.donate", new Object[]{}, locale.getCurrentLocal());
final OpenPatricianLargeWaxButton action = new OpenPatricianLargeWaxButton(s);
action.getStyleClass().add("actionButton");
action.setOnAction(getAction());
action.setLayoutX(actionButtonX);
action.setLayoutY(CLOSE_BTN_Y_POS - 24);
BooleanBinding actionEnabled = actionEnabledBinding();
action.setDisable(!actionEnabled.get());
actionEnabled.addListener((observableValue, oldValue, newValue) -> action.setDisable(!newValue));
getContent().addAll(box, action);
}