@Override public void bind(ObservableValue<? extends Number> observable) { delegate.bind(observable); }
weight.bind(binding);
public CoinPrice() { super(); IntegerProperty intAmount = new SimpleIntegerProperty(); intAmount.bind(new StringToIntegerBinding(amountProperty())); visibleProperty().bind(new ZeroAmountBooleanBinding(intAmount)); } }
requiredWare.setRequired(requiredAmount); requiredWare.inStorageProperty().unbind(); requiredWare.inStorageProperty().bind(amountInStorage); requiredWare.inCityProperty().unbind(); requiredWare.inCityProperty().bind(amountInCity); } else { inCity.bind(amountInCity); IntegerProperty inStorage = new SimpleIntegerProperty(); inStorage.bind(amountInStorage); RequiredWareCityStorage requiredWare = new RequiredWareCityStorage(requiredAmount, inStorage, inCity, material, computablePrice);
requiredWare.setRequired(requiredAmount); requiredWare.inStorageProperty().unbind(); requiredWare.inStorageProperty().bind(amountInStorage); requiredWare.inCityProperty().unbind(); requiredWare.inCityProperty().bind(amountInCity); } else { inCity.bind(amountInCity); IntegerProperty inStorage = new SimpleIntegerProperty(); inStorage.bind(amountInStorage); RequiredWareCityStorage requiredWare = new RequiredWareCityStorage(requiredAmount, inStorage, inCity, material, computablePrice);
public BarrelAmount() { super(); IntegerProperty intAmount = new SimpleIntegerProperty(); intAmount.bind(new StringToIntegerBinding(amountProperty())); visibleProperty().bind(new ZeroAmountBooleanBinding(intAmount)); } }
public BaleAmount() { super(); IntegerProperty intAmount = new SimpleIntegerProperty(); intAmount.bind(new StringToIntegerBinding(amountProperty())); visibleProperty().bind(new ZeroAmountBooleanBinding(intAmount)); } }
@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); }
moneyTransfer.maxTransfereableProperty().bind(company.cashProperty()); moneyTransfer.setAmount(0);
MoneyTransfer moneyTransfer = fxUtils.getMoneyTransfer(imageLoader); moneyTransfer.setStepSize(100); moneyTransfer.maxTransfereableProperty().bind(treasury.cashProperty()); moneyTransfer.setAmount(0);
MoneyTransfer moneyTransfer = fxUtils.getMoneyTransfer(imageLoader); moneyTransfer.setStepSize(100); moneyTransfer.maxTransfereableProperty().bind(company.cashProperty()); moneyTransfer.setAmount(0); selectionBox = new HBox(5);
((IntegerProperty) getSkinnable().lineCountProperty()).bind(this.content.numberOfLinesProperty()); this.content.caretOffsetProperty().bind(getSkinnable().caretOffsetProperty()); flow.numberOfLinesProperty().bind(this.content.numberOfLinesProperty()); flow.lineHeightProperty().bind(this.content.lineHeightProperty()); flow.yOffsetProperty().bind(this.scroller.offsetProperty());
this.lineLayer.yOffsetProperty().bind(this.offsetY); this.lineLayer.visibleLinesProperty().bind(this.visibleLines); this.lineLayer.numberOfLinesProperty().bind(this.numberOfLines);