public void setIconSupplier(Supplier<Node> icon) { this.iconSupplier.set(icon); }
public void setDirection(DrawerDirection direction) { this.directionProperty.set(direction); }
public void setCachePolicy(CachePolicy cachePolicy) { this.cachePolicy.set(cachePolicy); }
public void setSrcControl(Node srcControl) { this.srcControl.set(srcControl); }
public void setIcon(Node icon) { iconSupplier.set(() -> icon); }
private void updateSrcControl() { Parent parent = getParent(); if (parent != null) { Node control = parent.lookup(getSrc()); srcControl.set(control); } }
/** * Sets the {@link GridView} that this GridCell exists within. */ public final void updateGridView(GridView<T> gridView) { this.gridView.set(gridView); }
/** * Set how the properties should be laid out in * the PropertySheet. * @param mode */ public final void setMode(Mode mode) { modeProperty.set(mode); }
/** * Setter of status * * @param status the status to set */ public void setStatus(ActionRequestStatus status) { this.status.set(status);; }
/** * Setter of selectedModel * * @param selectedModel the selectedModel to set */ public void setSelectedModel(OperationData selectedModel) { this.selectedModel.set(selectedModel); }
/** * Setter of processedContent * * @param processedContent the processedContent to set */ public void setProcessedContent(StructureContentController processedContent) { this.processedContent.set(processedContent); }
@Override public void valueChanged(ReadableProperty<R> property, R oldValue, R newValue) { fxObservableValue.set(newValue); } });
@Override public void set(Node value) { if ( locked ) throw new RuntimeException("The action is immutable, property change support is disabled."); //$NON-NLS-1$ super.set(value); } };
/** * Sets a new editor factory used by the PropertySheet to determine which * {@link PropertyEditor} to use for a given {@link Item}. * @param factory */ public final void setPropertyEditorFactory( Callback<Item, PropertyEditor<?>> factory ) { propertyEditorFactory.set( factory == null? new DefaultPropertyEditorFactory(): factory ); }
@Override public void changed(ObservableValue<? extends Number> observableValue, Number number, Number newValue) { if (newValue!=null){ final Date date = new Date(newValue.longValue()); setFromSlider=true; selectedConfiguration.set(findByDate(lastResults, date)); setFromSlider=false; } } });
public void set(Node newEditor) { Node old = get(); if (old != null) getChildren().remove(old); getChildren().add(newEditor); super.set(newEditor); } };
@Override public void call(Object value) { if (rv.get() == null && value == null) return; if (rv.get() != null && rv.get().equals(value)) return; rv.set(value); } });
private void updateSrcControl() { Parent parent = getParent(); if (parent != null) { Node control = parent.lookup(getSrc()); srcControl.set(control); } }
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; }