public Node getSrcControl() { return this.srcControl.get(); }
public DrawerDirection getDirection() { return directionProperty.get(); }
public Supplier<Node> getIconSupplier() { return iconSupplier.get(); }
/** * {@inheritDoc} */ @Override protected void eval() { if (srcControl.get() instanceof TextInputControl) { evalTextInputField(); } }
/** * {@inheritDoc} */ @Override protected void eval() { if (srcControl.get() instanceof TextInputControl) { evalTextInputField(); } }
/** * {@inheritDoc} */ @Override protected void eval() { if (srcControl.get() instanceof TextInputControl) { evalTextInputField(); } }
/** * {@inheritDoc} */ @Override protected void eval() { if (srcControl.get() instanceof TextInputControl) { evalTextInputField(); } }
private void evalComboBoxField() { ComboBoxBase comboField = (ComboBoxBase) srcControl.get(); Object value = comboField.getValue(); hasErrors.set(value == null || value.toString().isEmpty()); } }
private void evalTextInputField() { TextInputControl textField = (TextInputControl) srcControl.get(); if (regexPatternCompiled.matcher(textField.getText()).matches()) { hasErrors.set(false); } else { hasErrors.set(true); } }
private void evalTextInputField() { TextInputControl textField = (TextInputControl) srcControl.get(); String text = textField.getText(); try { hasErrors.set(false); if (!text.isEmpty()) { Integer.parseInt(text); } } catch (Exception e) { hasErrors.set(true); } } }
private void evalTextInputField() { TextInputControl textField = (TextInputControl) srcControl.get(); try { Double.parseDouble(textField.getText()); hasErrors.set(false); } catch (Exception e) { hasErrors.set(true); } } }
private void evalTextInputField() { TextInputControl textField = (TextInputControl) srcControl.get(); String text = textField.getText(); try { hasErrors.set(false); if (!text.isEmpty()) numberStringConverter.fromString(text); } catch (Exception e) { hasErrors.set(true); } }
private void evalTextInputField() { TextInputControl textField = (TextInputControl) srcControl.get(); if (textField.getText() == null || textField.getText().isEmpty()) { hasErrors.set(true); } else { hasErrors.set(false); } }
private void initListeners() { initTranslateBinding = Bindings.createDoubleBinding(() -> -1 * directionProperty.get().doubleValue() * defaultSizeProperty.getValue() - initOffset * directionProperty.get().doubleValue(), defaultSizeProperty, directionProperty); }); directionProperty.addListener(observable -> updateDirection(directionProperty.get())); initTranslate.addListener(observable -> updateDrawerAnimation(initTranslate.get())); && directionProperty.get().doubleValue() * newVal.doubleValue() > directionProperty.get().doubleValue() * initTranslate.get() / 2) { openCalled = true; closeCalled = false; translateProperty.addListener((o, oldVal, newVal) -> { if (openCalled && !closeCalled && directionProperty.get().doubleValue() * newVal.doubleValue() < directionProperty.get().doubleValue() * initTranslate.get() / 2) { closeCalled = true; openCalled = false; + initOffset * directionProperty.get().doubleValue() + activeOffset * directionProperty.get().doubleValue(); overlayPane.setMouseTransparent(!isOverLayVisible()); translateTimer.setOnFinished(null);
/** * {@inheritDoc} */ @Override protected void eval() { if (srcControl.get() instanceof TextInputControl) { evalTextInputField(); } }
/** * {@inheritDoc} */ @Override protected void eval() { if (srcControl.get() instanceof TextInputControl) { evalTextInputField(); } }
/** * {@inheritDoc} */ @Override protected void eval() { if (srcControl.get() instanceof TextInputControl) { evalTextInputField(); } }