if( outputValue.isEmpty().get() || outputValue.get().equals(IDENTITY_MAPPER) ){ return null; } else {
private void createPromptNode() { if (promptText != null || !linesWrapper.usePromptText.get()) { return;
private void createPromptNode() { if (promptText != null || !linesWrapper.usePromptText.get()) { return;
private void createPromptNode() { if (promptText != null || !linesWrapper.usePromptText.get()) { return;
private void createPromptNode() { if (promptText != null || !linesWrapper.usePromptText.get()) { return;
() -> ((fieldHost.textProperty().isEmpty().get() || fieldPort.textProperty().isEmpty().get()) && dbmsType.get().getConnectionType() == DbmsType.ConnectionType.HOST_AND_PORT) || (fieldFile.textProperty().isEmpty().get() && dbmsType.get().getConnectionType() == DbmsType.ConnectionType.DBMS_AS_FILE) || fieldType.getSelectionModel().isEmpty() || (fieldName.textProperty().isEmpty().get() && dbmsType.get().hasDatabaseNames()) || (fieldUser.textProperty().isEmpty().get() && dbmsType.get().hasDatabaseUsers()),
private void createPromptNode() { if (promptText != null || !linesWrapper.usePromptText.get()) { return; } promptText = new Text(); StackPane.setAlignment(promptText, Pos.CENTER_LEFT); // create my custom pane for the prompt node promptText.textProperty().bind(getSkinnable().promptTextProperty()); promptText.fillProperty().bind(linesWrapper.animatedPromptTextFill); promptText.getStyleClass().addAll("text"); promptText.getTransforms().add(linesWrapper.promptTextScale); promptText.visibleProperty().bind(linesWrapper.usePromptText); promptText.setTranslateX(1); linesWrapper.promptContainer.getChildren().add(promptText); if (getSkinnable().isFocused() && ((JFXComboBox<T>) getSkinnable()).isLabelFloat()) { promptText.setTranslateY(-snapPosition(promptText.getBaselineOffset() + promptText.getLayoutBounds().getHeight() * .36)); linesWrapper.promptTextScale.setX(0.85); linesWrapper.promptTextScale.setY(0.85); } }
@Override protected Node createUndecoratedEditor() { //TODO: CustomValue should be bound to defaultValue until we disable auto for the first time final HBox container = new HBox(); final TextInputControl textInput = getInputControl(); final CheckBox auto = new CheckBox("Auto"); final boolean useDefaultValue = value.isEmpty().get() || value.get().equals(defaultValue.get()); textInput.disableProperty().bind(auto.selectedProperty()); if (useDefaultValue) { textInput.textProperty().bind(defaultValue); } else { textInput.setText(value.get()); } customValue.bind(textInput.textProperty()); attachListener(textInput.textProperty(), (ov, o, n) -> { if (n == null || n.isEmpty() || n.equalsIgnoreCase(defaultValue.getValue())) { value.setValue(null); } else { value.setValue(n); } }); auto.selectedProperty().setValue(useDefaultValue); attachListener(auto.selectedProperty(), (ov, o, isAuto) -> setTextFieldBehaviour(textInput, isAuto, defaultValue, customValue) ); HBox.setHgrow(textInput, Priority.ALWAYS); HBox.setHgrow(auto, Priority.NEVER); container.getChildren().addAll(auto, textInput); return container; }
if (usePromptText.get()) { createPromptNodeRunnable.run();
@Override public boolean isPending() { return pending != null ? pending.get() : state == State.ACC_HAS_EVENT; }
@Override public boolean isPending() { return pending != null ? pending.get() : expectedFuture != null; }
@Override public boolean isAtMarkedPosition() { return atMarkedPosition.get(); }
@Override protected double computeValue() { if (hasMorePersons.get()) { return UPPER_BUTTON_Y; } else { return LOWER_BUTTON_Y; } } });
/** * Evaluates to true as long as the bound integer property is positive (>0). */ @Override protected boolean computeValue() { return amountToBeChecked.greaterThan(0).get(); }
@Override protected String computeValue() { if (office.storageManagerPresentBinding().get()) { return messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.AutomaticTradingOverviewDialog.fire", new Object[]{}, locale.getCurrentLocal()); } else { return messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.AutomaticTradingOverviewDialog.hire", new Object[]{}, locale.getCurrentLocal()); } } }
@Override protected boolean computeValue() { return !(city.getActiveShip() instanceof IShip) || tavernDialogUtil.noShipWithEnoughCapacityAvailable(city, AMOUNT) || ((IShip)city.getActiveShip()).passengerPresentProperty().get(); } };
/** * @{inheritedDoc} */ @Override public void minimize() { if (wasCustomized.not().get()) { topToolbar.getChildren().clear(); if (ellispsys != null) { topToolbar.getChildren().addAll(ellispsys); } } }
/** * @{inheritedDoc} */ @Override public void maximize() { if (wasCustomized.not().get()) { topToolbar.getChildren().clear(); topToolbar.getChildren().addAll(maximizedWrapper); } }
@Override protected boolean computeValue() { return !(city.getActiveShip() instanceof IShip) || city.getPlayersShips().isEmpty() || ((IShip)city.getActiveShip()).passengerPresentProperty().get(); } };
@Override protected boolean computeValue() { return !(city.getActiveShip() instanceof IShip) || city.getPlayersShips().isEmpty() || ((IShip)city.getActiveShip()).passengerPresentProperty().get(); } };