Java javafx.scene.control ListView fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.control ListView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.control ListView.

The text is from its open source code.

Constructor

ListView()
Creates a default ListView which will display contents stacked vertically.
ListView(ObservableList items)
Creates a default ListView which will stack the contents retrieved from the provided ObservableList vertically.

Method

ObservableListgetItems()
Returns an ObservableList that contains the items currently being shown to the user.
MultipleSelectionModelgetSelectionModel()
Returns the currently installed selection model.
voidrefresh()
Calling refresh() forces the ListView control to recreate and repopulate the cells necessary to populate the visual bounds of the control.
voidsetCellFactory(Callback, ListCell> value)
Sets a new cell factory to use in the ListView.
voidsetCursor(Cursor value)
voidsetEditable(boolean value)
voidsetItems(ObservableList value)
Sets the underlying data model for the ListView.
voidsetLayoutX(double value)
voidsetLayoutY(double value)
voidsetMaxHeight(double value)
voidsetMaxWidth(double value)
voidsetMinHeight(double value)
voidsetPrefHeight(double value)
voidsetPrefSize(double prefWidth, double prefHeight)
Convenience method for overriding the region's computed preferred width and height.
voidsetPrefWidth(double value)
voidsetStyle(String value)
A string representation of the CSS style associated with this specific Node .
ReadOnlyDoublePropertywidthProperty()