public CoinPriceAlwaysVisible() { amount = new SimpleStringProperty(this, "amount", ""); getStylesheets().add(this.getClass().getResource("icons.css").toExternalForm()); final ImageView imageView = new ImageView(img); final Label text = new Label(); text.getStyleClass().add("iconText"); text.textProperty().bind(amount); imageView.layoutXProperty().bind(text.widthProperty().add(3)); getChildren().addAll(text, imageView); } public void setAmount(Integer amount) {
public BaleAmountAlwaysVisible() { getStylesheets().add(this.getClass().getResource("icons.css").toExternalForm()); amount = new SimpleStringProperty(this, "amount", ""); final ImageView imageView = new ImageView(img); final Label text = new Label(); text.getStyleClass().add("iconText"); text.textProperty().bind(amount); imageView.layoutXProperty().bind(text.widthProperty().add(3)); getChildren().addAll(text, imageView); } public void setAmount(Integer amount) {
public BarrelAmountAlwaysVisible() { getStylesheets().add(this.getClass().getResource("icons.css").toExternalForm()); amount = new SimpleStringProperty(this, "amount", ""); final ImageView imageView = new ImageView(img); final Label text = new Label(); text.getStyleClass().add("iconText"); text.textProperty().bind(amount); imageView.layoutXProperty().bind(text.widthProperty().add(3)); getChildren().addAll(text, imageView); } public void setAmount(Integer amount) {
public FightingSkillAlwaysVisible() { getStylesheets().add(this.getClass().getResource("icons.css").toExternalForm()); amount = new SimpleStringProperty(this, "amount", ""); final ImageView imageView = new ImageView(img); final Label text = new Label(); text.getStyleClass().add("iconText"); text.textProperty().bind(amount); imageView.layoutXProperty().bind(text.widthProperty().add(3)); getChildren().addAll(text, imageView); } public void setAmount(Integer amount) {
public NavigationSkillAlwaysVisible() { getStylesheets().add(this.getClass().getResource("icons.css").toExternalForm()); amount = new SimpleStringProperty(this, "amount", ""); final ImageView imageView = new ImageView(img); final Label text = new Label(); text.getStyleClass().add("iconText"); text.textProperty().bind(amount); imageView.layoutXProperty().bind(text.widthProperty().add(3)); getChildren().addAll(text, imageView); } public void setAmount(Integer amount) {
public TradingSkillAlwaysVisible() { getStylesheets().add(this.getClass().getResource("icons.css").toExternalForm()); amount = new SimpleStringProperty(this, "amount", ""); final ImageView imageView = new ImageView(img); final Label text = new Label(); text.getStyleClass().add("iconText"); text.textProperty().bind(amount); imageView.layoutXProperty().bind(text.widthProperty().add(3)); getChildren().addAll(text, imageView); } public void setAmount(Integer amount) {
/** * setup the xyTabPane and it's behavior */ public void setupXyTabPane() { // add the xyTabPane getRoot().getChildren().add(xyTabPane); // make sure it shrinks and grows with the scene NumberBinding heightAdjust = getStage().heightProperty() .add(menuBar.heightProperty()); xyTabPane.getvTabPane().prefHeightProperty() .bind(heightAdjust.add(-xyTabPane.getTabSize())); xyTabPane.getvTabPane().prefWidthProperty() .bind(getStage().widthProperty().add(0)); // -xyTabPane.getTabSize() }
template = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.cityhall.OutriggerNoticeDialog.outriggerOwner", args, locale.getCurrentLocal()); text = textFactory.createDecoratedText(template, new HashMap<>()); text.layoutYProperty().bind(prevText.heightProperty().add(prevText.layoutYProperty()).add(24)); getContent().add(text); GridPane grid = dialogUtil.createShipSelection3LinesForShips(capableShips, currentShip);
navigation.setAlignment(Pos.TOP_LEFT); Button back = new Button("",uniformDesign.createIcon(FontAwesome.Glyph.CARET_LEFT)); back.prefHeightProperty().bind(breadCrumbBar.heightProperty().add(1)); back.setOnAction(event -> dataEditor.back()); back.setDisable(!previousData.isPresent()); Button next = new Button("",uniformDesign.createIcon(FontAwesome.Glyph.CARET_RIGHT)); next.prefHeightProperty().bind(breadCrumbBar.heightProperty().add(1)); next.setDisable(!nextData.isPresent()); next.setOnAction(event -> dataEditor.next());
final ImageView imageView = new ImageView(compassIcon); imageView.setId("captainIcon"); imageView.layoutXProperty().bind(sailorsOnShip2.widthProperty().add(3)); g.getChildren().addAll(sailorsOnShip2, imageView); } else {
break; case LEFT: barGroup.translateXProperty().bind(label.widthProperty().add(10)); barGroup.setTranslateY(0); label.setTranslateX(0);
break; case LEFT: barGroup.translateXProperty().bind(label.widthProperty().add(10)); barGroup.setTranslateY(0); label.setTranslateX(0);