public void invalid() { if (control.isFocused()) { focus(); } }
private void updateLabelFloat(boolean animation) { if (control.isLabelFloat()) { if (control.isFocused()) { animateFloatingLabel(true, animation); } else { Object text = valueProperty.getValue(); text = validateComboBox(text); animateFloatingLabel(!(text == null || text.toString().isEmpty()), animation); } } }
.setEndValue(1) .setInterpolator(Interpolator.EASE_BOTH) .setAnimateCondition(() -> control.isFocused()).build()), .setEndValue(1) .setInterpolator(Interpolator.EASE_BOTH) .setAnimateCondition(() -> control.isFocused()).build(), JFXKeyValue.builder() .setTarget(animatedPromptTextFill) .setEndValueSupplier(() -> control.getFocusColor()) .setInterpolator(Interpolator.EASE_BOTH) .setAnimateCondition(() -> control.isFocused() && control.isLabelFloat()).build(), JFXKeyValue.builder() .setTargetSupplier(() -> promptTextSupplier.get() == null ? null : promptTextSupplier.get().translateYProperty()) if (control.isFocused()) { focus(); } else { if (!control.isLabelFloat() || (control.isLabelFloat() && !control.isFocused())) { animatedPromptTextFill.set(promptTextFill.get());
public void invalid() { if (control.isFocused()) { focus(); } }
private void updateLabelFloat(boolean animation) { if (control.isLabelFloat()) { if (control.isFocused()) { animateFloatingLabel(true, animation); } else { Object text = valueProperty.getValue(); text = validateComboBox(text); animateFloatingLabel(!(text == null || text.toString().isEmpty()), animation); } } }
if (!control.isFocused()) { if (newValue) { if (component.getError() == null) {
.setEndValue(1) .setInterpolator(Interpolator.EASE_BOTH) .setAnimateCondition(() -> control.isFocused()).build()), .setEndValue(1) .setInterpolator(Interpolator.EASE_BOTH) .setAnimateCondition(() -> control.isFocused()).build(), JFXKeyValue.builder() .setTarget(animatedPromptTextFill) .setEndValueSupplier(() -> control.getFocusColor()) .setInterpolator(Interpolator.EASE_BOTH) .setAnimateCondition(() -> control.isFocused() && control.isLabelFloat()).build(), JFXKeyValue.builder() .setTargetSupplier(() -> promptTextSupplier.get() == null ? null : promptTextSupplier.get().translateYProperty()) if (control.isFocused()) { focus(); } else { if (!control.isLabelFloat() || (control.isLabelFloat() && !control.isFocused())) { animatedPromptTextFill.set(promptTextFill.get());