public ObjectProperty<BiFunction<JFXChipView<T>, T, JFXChip<T>>> chipFactoryProperty() { if (chipFactory == null) { chipFactory = new SimpleObjectProperty<>(this, "chipFactory"); } return chipFactory; }
public void setIconSupplier(Supplier<Node> icon) { this.iconSupplier.set(icon); }
public Node getSrcControl() { return this.srcControl.get(); }
public static <R> ObservableValue<R> fx(ReadableProperty<R> vfProperty) { final SimpleObjectProperty<R> fxObservableValue = new SimpleObjectProperty<R>(); vfProperty.addValueChangeListener(new ValueChangeListener<R>() { @Override public void valueChanged(ReadableProperty<R> property, R oldValue, R newValue) { fxObservableValue.set(newValue); } }); fxObservableValue.set(vfProperty.getValue()); return fxObservableValue; }
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);
public void addChangeListener(ChangeListener<Integer> listener) { month.addListener(listener); year.addListener(listener); dayInMonth.addListener(listener); hour.addListener(listener); minute.addListener(listener); secound.addListener(listener); } }
public void handle(FlowAction action, String actionId) throws FlowException { if(beforeFlowActionHandler != null && beforeFlowActionHandler.getValue() != null) { beforeFlowActionHandler.getValue().handle(new BeforeFlowActionEvent(actionId, action, flowContext)); } action.handle(this, actionId); if(afterFlowActionHandler != null && afterFlowActionHandler.getValue() != null) { afterFlowActionHandler.getValue().handle(new AfterFlowActionEvent(actionId, action, flowContext)); } }
protected void setRootModel() { SingleResult sr = (SingleResult) controller.getModel(); rootModel = sr.getData(); ((FullTableStructureController) controller).processedElementProperty().addListener((ChangeListener<Object>) (observable, oldValue, newValue) -> { AbstractTableStructure ts = (AbstractTableStructure) ((FullTableStructureController) controller).processedElementProperty().get(); ts.childTree().addListener((ListChangeListener<OperationData>) c -> { structureModelUpdated(); }); structureModelUpdated(); }); }
private Optional<TreeItem<DisplayWorkflowClassesModel>> findMinorVersion(Long versionMinor, TreeItem<DisplayWorkflowClassesModel> majorItem) { for (TreeItem<DisplayWorkflowClassesModel> item : majorItem.getChildren()) { if (versionMinor != null && versionMinor.equals(item.getValue().value.versionMinor.getValue())) { return Optional.of(item); } } return Optional.absent(); }
public final ObjectProperty<Color> toValueProperty() { if (toValue == null) { toValue = new SimpleObjectProperty<>(this, "toValue", DEFAULT_TO_VALUE); } return toValue; }
public void setDirection(DrawerDirection direction) { this.directionProperty.set(direction); }
@Override public void showFilteredResult(List<WorkflowSummaryResultModel> filteredResult, WorkflowSummaryFilterModel usedFilter) { lastFilteredWithProcessingEngineInfo = usedFilter.selectedEngine.getValue(); ObservableList<WorkflowSummaryResultModel> content = FXCollections.observableList(new ArrayList<WorkflowSummaryResultModel>()); content.addAll(filteredResult); setOriginalItems(resultTable, content); }
public final ObjectProperty<Callback<JFXSlider, StringBinding>> valueFactoryProperty() { if (valueFactory == null) { valueFactory = new SimpleObjectProperty<>(this, "valueFactory"); } return valueFactory; }
public void setCachePolicy(CachePolicy cachePolicy) { this.cachePolicy.set(cachePolicy); }
public DrawerDirection getDirection() { return directionProperty.get(); }
public final ObjectProperty<Region> regionProperty() { if (region == null) { region = new SimpleObjectProperty<>(this, "region", null); } return region; }
public void setSrcControl(Node srcControl) { this.srcControl.set(srcControl); }