/** * @return the current slider value factory */ public final Callback<JFXSlider, StringBinding> getValueFactory() { return valueFactory == null ? null : valueFactory.get(); }
private void refreshView() { if (glyph.getValue() == null) { idLabel.setText(""); nameLabel.setText(""); return; } sizeSlider.valueProperty().addListener(observable -> glyph.get().setSize(sizeSlider.getValue())); idLabel.setText(String.format("%04d", glyph.get().getGlyphId())); nameLabel.setText(glyph.get().getName()); glyph.get().setFill(colorPicker.getValue()); glyph.get().fillProperty().bind(colorPicker.valueProperty()); centeredGlyph.getChildren().setAll(glyph.get()); }
@Deprecated public Node getGroupnode() { return groupnode.get(); }
/** * @return the ripple color */ public final Paint getRipplerFill() { return this.ripplerFillProperty().get(); }
/*************************************************************************** * * * Custom Events * * * **************************************************************************/ public EventHandler<JFXDrawerEvent> getOnDrawerClosed() { return onDrawerClosedProperty().get(); }
public final StringConverter<LocalTime> getConverter() { StringConverter<LocalTime> converter = converterProperty().get(); if (converter != null) { return converter; } else { return defaultConverter; } }
/** * @return the LayoutMode of masonry pane */ public final LayoutMode getLayoutMode() { return this.layoutModeProperty().get(); }
public EventHandler<? super JFXDialogEvent> getOnDialogOpened() { return onDialogOpenedProperty().get(); } }
protected void positionControl(Node control) { if(this.position.get() == RipplerPos.BACK){ getChildren().add(control); }else{ getChildren().add(0, control); } }
@Deprecated void addSublist(JFXListView<?> subList, int index) { if (!sublistsProperty.get().contains(subList)) { sublistsProperty.get().add(subList); sublistsIndices.put(index, subList); subList.getSelectionModel().selectedIndexProperty().addListener((o, oldVal, newVal) -> { if (newVal.intValue() != -1) { updateOverAllSelectedIndex(); } }); } }
protected void updateControlPosition() { if (this.position.get() == RipplerPos.BACK) { ripplerPane.toBack(); } else { ripplerPane.toFront(); } }
private boolean usePromptText() { Object txt = valueProperty.getValue(); txt = validateComboBox(txt); String promptTxt = promptTextProperty.getValue(); boolean isLabelFloat = control.isLabelFloat(); return isLabelFloat || (promptTxt != null && (txt == null || txt.toString().isEmpty()) && !promptTxt.isEmpty() && !promptTextFill.get().equals(Color.TRANSPARENT)); }
void clearFocus() { LocalDate focusDate = datePicker.getValue(); if (focusDate == null) { focusDate = LocalDate.now(); } if (YearMonth.from(focusDate).equals(selectedYearMonth.get())) { goToDate(focusDate, true); } }
void updateWeekNumberDateCells() { if (datePicker.isShowWeekNumbers()) { final Locale locale = getLocale(); LocalDate firstDayOfMonth = selectedYearMonth.get().atDay(1); for (int i = 0; i < 6; i++) { LocalDate date = firstDayOfMonth.plus(i, WEEKS); String weekNumber = weekNumberFormatter.withLocale(locale) .withDecimalStyle(DecimalStyle.of(locale)) .format(date); weekNumberCells.get(i).setText(weekNumber); } } }
public JFXListViewSkin(final JFXListView<T> listView) { super(listView); JFXDepthManager.setDepth(flow, listView.depthProperty().get()); listView.depthProperty().addListener((o, oldVal, newVal) -> JFXDepthManager.setDepth(flow, newVal)); }
void init() { calendarPlaceHolder.setOpacity(1); if(unit.get() == TimeUnit.HOURS){ selectedHourLabel.setTextFill(Color.rgb(255, 255, 255, 0.87)); }else{ selectedMinLabel.setTextFill(Color.rgb(255, 255, 255, 0.87)); } }
protected void updateMonthYearPane() { // update date labels YearMonth yearMonth = selectedYearMonth.get(); LocalDate value = datePicker.getValue(); value = value == null ? LocalDate.now() : value; selectedDateLabel.setText(DateTimeFormatter.ofPattern("EEE, MMM dd").format(value)); selectedYearLabel.setText(formatYear(yearMonth)); monthYearLabel.setText(formatMonth(yearMonth) + " " + formatYear(yearMonth)); Chronology chrono = datePicker.getChronology(); LocalDate firstDayOfMonth = yearMonth.atDay(1); backMonthButton.setDisable(!isValidDate(chrono, firstDayOfMonth, -1, DAYS)); forwardMonthButton.setDisable(!isValidDate(chrono, firstDayOfMonth, +1, MONTHS)); }