< prev index next >

modules/javafx.controls/src/main/java/javafx/scene/control/ChoiceDialog.java

Print this page

        

*** 164,180 **** --- 164,182 ---- * **************************************************************************/ /** * Returns the currently selected item in the dialog. + * @return the currently selected item */ public final T getSelectedItem() { return comboBox.getSelectionModel().getSelectedItem(); } /** * Returns the property representing the currently selected item in the dialog. + * @return the currently selected item property */ public final ReadOnlyObjectProperty<T> selectedItemProperty() { return comboBox.getSelectionModel().selectedItemProperty(); }
*** 188,204 **** --- 190,208 ---- /** * Returns the list of all items that will be displayed to users. This list * can be modified by the developer to add, remove, or reorder the items * to present to the user. + * @return the list of all items that will be displayed to users */ public final ObservableList<T> getItems() { return comboBox.getItems(); } /** * Returns the default choice that was specified in the constructor. + * @return the default choice */ public final T getDefaultChoice() { return defaultChoice; }
< prev index next >