27
28 import javafx.beans.property.ObjectProperty;
29 import javafx.beans.property.ObjectPropertyBase;
30 import javafx.beans.property.SimpleObjectProperty;
31 import javafx.beans.value.ChangeListener;
32 import javafx.collections.FXCollections;
33 import javafx.collections.ListChangeListener;
34 import javafx.collections.ObservableList;
35 import javafx.beans.property.ReadOnlyBooleanProperty;
36 import javafx.beans.property.ReadOnlyBooleanWrapper;
37 import javafx.event.ActionEvent;
38 import javafx.event.Event;
39 import javafx.event.EventHandler;
40 import javafx.event.EventType;
41 import javafx.scene.AccessibleAction;
42 import javafx.scene.AccessibleAttribute;
43 import javafx.scene.AccessibleRole;
44 import javafx.util.StringConverter;
45 import javafx.css.PseudoClass;
46
47 import com.sun.javafx.scene.control.skin.ChoiceBoxSkin;
48
49 import javafx.beans.DefaultProperty;
50
51 /**
52 * The ChoiceBox is used for presenting the user with a relatively small set of
53 * predefined choices from which they may choose. The ChoiceBox, when "showing",
54 * will display to the user these choices and allow them to pick exactly one
55 * choice. When not showing, the current choice is displayed.
56 * <p>
57 * By default, the ChoiceBox has no item selected unless otherwise specified.
58 * Although the ChoiceBox will only allow a user to select from the predefined
59 * list, it is possible for the developer to specify the selected item to be
60 * something other than what is available in the predefined list. This is
61 * required for several important use cases.
62 * <p>
63 * It means configuration of the ChoiceBox is order independent. You
64 * may either specify the items and then the selected item, or you may
65 * specify the selected item and then the items. Either way will function
66 * correctly.
67 * <p>
|
27
28 import javafx.beans.property.ObjectProperty;
29 import javafx.beans.property.ObjectPropertyBase;
30 import javafx.beans.property.SimpleObjectProperty;
31 import javafx.beans.value.ChangeListener;
32 import javafx.collections.FXCollections;
33 import javafx.collections.ListChangeListener;
34 import javafx.collections.ObservableList;
35 import javafx.beans.property.ReadOnlyBooleanProperty;
36 import javafx.beans.property.ReadOnlyBooleanWrapper;
37 import javafx.event.ActionEvent;
38 import javafx.event.Event;
39 import javafx.event.EventHandler;
40 import javafx.event.EventType;
41 import javafx.scene.AccessibleAction;
42 import javafx.scene.AccessibleAttribute;
43 import javafx.scene.AccessibleRole;
44 import javafx.util.StringConverter;
45 import javafx.css.PseudoClass;
46
47 import javafx.scene.control.skin.ChoiceBoxSkin;
48
49 import javafx.beans.DefaultProperty;
50
51 /**
52 * The ChoiceBox is used for presenting the user with a relatively small set of
53 * predefined choices from which they may choose. The ChoiceBox, when "showing",
54 * will display to the user these choices and allow them to pick exactly one
55 * choice. When not showing, the current choice is displayed.
56 * <p>
57 * By default, the ChoiceBox has no item selected unless otherwise specified.
58 * Although the ChoiceBox will only allow a user to select from the predefined
59 * list, it is possible for the developer to specify the selected item to be
60 * something other than what is available in the predefined list. This is
61 * required for several important use cases.
62 * <p>
63 * It means configuration of the ChoiceBox is order independent. You
64 * may either specify the items and then the selected item, or you may
65 * specify the selected item and then the items. Either way will function
66 * correctly.
67 * <p>
|