Module qupath.fx

Class ChoiceEditor<T>

java.lang.Object
org.controlsfx.property.editor.AbstractPropertyEditor<T,S>
qupath.fx.prefs.controlsfx.editors.ChoiceEditor<T>
Type Parameters:
T -
All Implemented Interfaces:
javafx.collections.ListChangeListener<T>, org.controlsfx.property.editor.PropertyEditor<T>

public class ChoiceEditor<T> extends org.controlsfx.property.editor.AbstractPropertyEditor<T,S>
Editor for choosing from a combo box, which will use an observable list directly if it can (which differs from ControlsFX's default behavior).
  • Nested Class Summary

    Nested classes/interfaces inherited from interface javafx.collections.ListChangeListener

    javafx.collections.ListChangeListener.Change<E extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChoiceEditor(org.controlsfx.control.PropertySheet.Item property, Collection<? extends T> choices)
     
    ChoiceEditor(org.controlsfx.control.PropertySheet.Item property, javafx.collections.ObservableList<T> choices)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected javafx.beans.value.ObservableValue<T>
     
    void
    onChanged(javafx.collections.ListChangeListener.Change<? extends T> c)
     
    void
    setValue(T value)
     

    Methods inherited from class org.controlsfx.property.editor.AbstractPropertyEditor

    getEditor, getProperty, getValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChoiceEditor

      public ChoiceEditor(org.controlsfx.control.PropertySheet.Item property, Collection<? extends T> choices)
    • ChoiceEditor

      public ChoiceEditor(org.controlsfx.control.PropertySheet.Item property, javafx.collections.ObservableList<T> choices)
  • Method Details

    • setValue

      public void setValue(T value)
      Specified by:
      setValue in interface org.controlsfx.property.editor.PropertyEditor<T>
    • getObservableValue

      protected javafx.beans.value.ObservableValue<T> getObservableValue()
      Specified by:
      getObservableValue in class org.controlsfx.property.editor.AbstractPropertyEditor<T,S extends javafx.scene.control.ComboBox<T>>
    • onChanged

      public void onChanged(javafx.collections.ListChangeListener.Change<? extends T> c)
      Specified by:
      onChanged in interface javafx.collections.ListChangeListener<T>