作者:包子F3R | 来源:互联网 | 2023-09-13 12:27
本文整理了Java中javafx.beans.property.IntegerProperty.bind()
方法的一些代码示例,展示了IntegerProperty.bind()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IntegerProperty.bind()
方法的具体详情如下:
包路径:javafx.beans.property.IntegerProperty
类名称:IntegerProperty
方法名:bind
IntegerProperty.bind介绍
暂无
代码示例
代码示例来源:origin: org.codehaus.griffon/griffon-javafx
@Override
public void bind(ObservableValue extends Number> observable) {
delegate.bind(observable);
}
代码示例来源:origin: stackoverflow.com
weight.bind(binding);
代码示例来源:origin: ch.sahits.game/OpenPatricianJavaFX
public CoinPrice() {
super();
IntegerProperty intAmount = new SimpleIntegerProperty();
intAmount.bind(new StringToIntegerBinding(amountProperty()));
visibleProperty().bind(new ZeroAmountBooleanBinding(intAmount));
}
}
代码示例来源:origin: ch.sahits.game/OpenPatricianDisplay
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);
代码示例来源:origin: ch.sahits.game/OpenPatricianDisplay
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);
代码示例来源:origin: ch.sahits.game/OpenPatricianJavaFX
public BarrelAmount() {
super();
IntegerProperty intAmount = new SimpleIntegerProperty();
intAmount.bind(new StringToIntegerBinding(amountProperty()));
visibleProperty().bind(new ZeroAmountBooleanBinding(intAmount));
}
}
代码示例来源:origin: ch.sahits.game/OpenPatricianJavaFX
public BaleAmount() {
super();
IntegerProperty intAmount = new SimpleIntegerProperty();
intAmount.bind(new StringToIntegerBinding(amountProperty()));
visibleProperty().bind(new ZeroAmountBooleanBinding(intAmount));
}
}
代码示例来源:origin: stackoverflow.com
Spinner spinnerB = new Spinner<>(0, 255, 100);
r.bind(spinnerR.valueProperty());
g.bind(spinnerG.valueProperty());
b.bind(spinnerB.valueProperty());
代码示例来源:origin: ch.sahits.game/OpenPatricianDisplay
@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);
}
代码示例来源:origin: ch.sahits.game/OpenPatricianDisplay
moneyTransfer.maxTransfereableProperty().bind(company.cashProperty());
moneyTransfer.setAmount(0);
代码示例来源:origin: ch.sahits.game/OpenPatricianDisplay
MoneyTransfer mOneyTransfer= fxUtils.getMoneyTransfer(imageLoader);
moneyTransfer.setStepSize(100);
moneyTransfer.maxTransfereableProperty().bind(treasury.cashProperty());
moneyTransfer.setAmount(0);
代码示例来源:origin: ch.sahits.game/OpenPatricianDisplay
MoneyTransfer mOneyTransfer= fxUtils.getMoneyTransfer(imageLoader);
moneyTransfer.setStepSize(100);
moneyTransfer.maxTransfereableProperty().bind(company.cashProperty());
moneyTransfer.setAmount(0);
selectiOnBox= new HBox(5);
代码示例来源:origin: stackoverflow.com
tileXOffset.bind(xOffset.divide(TILE_WIDTH));
tileYOffset.bind(yOffset.divide(TILE_HEIGHT));
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
((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());
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
this.lineLayer.yOffsetProperty().bind(this.offsetY);
this.lineLayer.visibleLinesProperty().bind(this.visibleLines);
this.lineLayer.numberOfLinesProperty().bind(this.numberOfLines);