public ChoiceBoxItem(String label,Property<T> value,ObservableList<T> alternatives,String tooltip,UnaryOperator<Node> decorator){
  super(label,tooltip,decorator);
  this.currentValue=value;
  this.alternatives=FXCollections.unmodifiableObservableList(alternatives);
}

public ChoiceBoxItem ( String label , Property < T > value , ObservableList < T > alternatives , String tooltip , UnaryOperator < Node > decorator ) { super ( label , tooltip , decorator ) ; this . currentValue = value ; this . alternatives = FXCollections . unmodifiableObservableList ( alternatives ) ; }
creates a new choiceboxitem . < p > the default choice will either be the first choice alternative , or the alternative matching the current value of the property ( if such as alternative exists ) . alternatives will get their name by calling tostring ( ) on the objects in the list of alternatives < p > the property will bind to the choicebox . valueproperty ( ) .
