< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/control/ComboBox.java
Print this page
*** 181,190 ****
--- 181,192 ----
*});</code></pre>
*
* <p>Admittedly the above approach is far more verbose, but it offers the
* required functionality without encountering the scenegraph constraints.
*
+ * @param <T> The type of the value that has been selected or otherwise entered
+ * in to this ComboBox
* @see ComboBoxBase
* @see Cell
* @see ListCell
* @see StringConverter
* @since JavaFX 2.1
*** 227,236 ****
--- 229,239 ----
}
/**
* Creates a default ComboBox instance with the provided items list and
* a default {@link #selectionModelProperty() selection model}.
+ * @param items the list of items
*/
public ComboBox(ObservableList<T> items) {
getStyleClass().add(DEFAULT_STYLE_CLASS);
setAccessibleRole(AccessibleRole.COMBO_BOX);
setItems(items);
*** 312,321 ****
--- 315,325 ----
// --- string converter
/**
* Converts the user-typed input (when the ComboBox is
* {@link #editableProperty() editable}) to an object of type T, such that
* the input may be retrieved via the {@link #valueProperty() value} property.
+ * @return the converter property
*/
public ObjectProperty<StringConverter<T>> converterProperty() { return converter; }
private ObjectProperty<StringConverter<T>> converter =
new SimpleObjectProperty<StringConverter<T>>(this, "converter", ComboBox.<T>defaultStringConverter());
public final void setConverter(StringConverter<T> value) { converterProperty().set(value); }
*** 339,348 ****
--- 343,353 ----
/**
* The button cell is used to render what is shown in the ComboBox 'button'
* area. If a cell is set here, it does not change the rendering of the
* ComboBox popup list - that rendering is controlled via the
* {@link #cellFactoryProperty() cell factory} API.
+ * @return the button cell property
* @since JavaFX 2.2
*/
public ObjectProperty<ListCell<T>> buttonCellProperty() { return buttonCell; }
private ObjectProperty<ListCell<T>> buttonCell =
new SimpleObjectProperty<ListCell<T>>(this, "buttonCell");
*** 411,420 ****
--- 416,426 ----
private ObjectProperty<Node> placeholder;
/**
* This Node is shown to the user when the ComboBox has no content to show.
* The placeholder node is shown in the ComboBox popup area
* when the items list is null or empty.
+ * @return the placeholder property
* @since JavaFX 8.0
*/
public final ObjectProperty<Node> placeholderProperty() {
if (placeholder == null) {
placeholder = new SimpleObjectProperty<Node>(this, "placeholder");
< prev index next >