Class MultiColumnListView.ListViewColumn<T>
java.lang.Object
com.dlsc.gemsfx.MultiColumnListView.ListViewColumn<T>
- Type Parameters:
T- the type of items shown by the column
- Enclosing class:
MultiColumnListView<T>
The model object representing a single column. The type of the items in all columns must be the
same.
-
Property Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ObjectProperty<javafx.scene.Node> An optional node that will serve as the column's header.final javafx.beans.property.ListProperty<T> The data shown in the column.final javafx.beans.property.ObjectProperty<Object> An optional user object that can be associated with the column. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal javafx.scene.NodeGets the value of theheaderproperty.final javafx.collections.ObservableList<T> getItems()Gets the value of theitemsproperty.final javafx.collections.ObservableList<MultiColumnListView.ColumnItem<T>> The list of wrapped items that is being shown by theListViewof this column.final ObjectGets the value of theuserObjectproperty.final javafx.beans.property.ObjectProperty<javafx.scene.Node> An optional node that will serve as the column's header.final javafx.beans.property.ListProperty<T> The data shown in the column.final voidsetHeader(javafx.scene.Node header) Sets the value of theheaderproperty.final voidSets the value of theitemsproperty.final voidsetUserObject(Object value) Sets the value of theuserObjectproperty.final javafx.beans.property.ObjectProperty<Object> An optional user object that can be associated with the column.
-
Property Details
-
items
The data shown in the column.- See Also:
-
header
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> headerPropertyAn optional node that will serve as the column's header. It will be shown above the column.- See Also:
-
userObject
An optional user object that can be associated with the column. This can be used to store additional information about the column, such as an identifier or metadata.- See Also:
-
-
Constructor Details
-
ListViewColumn
public ListViewColumn()Creates an empty column.
-
-
Method Details
-
getItemWrappers
The list of wrapped items that is being shown by theListViewof this column. This list is maintained by the control itself. It is kept in sync with the list returned bygetItems()and it might temporarily contain the two placeholder items that are used to visualize an ongoing drag and drop operation.- Returns:
- the internal list of wrapped items
-
getItems
Gets the value of theitemsproperty.- Property description:
- The data shown in the column.
- Returns:
- the value of the
itemsproperty - See Also:
-
itemsProperty
The data shown in the column.- Returns:
- the model for this column
- See Also:
-
setItems
Sets the value of theitemsproperty.- Property description:
- The data shown in the column.
- Parameters:
items- the value for theitemsproperty- See Also:
-
getHeader
public final javafx.scene.Node getHeader()Gets the value of theheaderproperty.- Property description:
- An optional node that will serve as the column's header. It will be shown above the column.
- Returns:
- the value of the
headerproperty - See Also:
-
headerProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> headerProperty()An optional node that will serve as the column's header. It will be shown above the column.- Returns:
- the header node / header UI
- See Also:
-
setHeader
public final void setHeader(javafx.scene.Node header) Sets the value of theheaderproperty.- Property description:
- An optional node that will serve as the column's header. It will be shown above the column.
- Parameters:
header- the value for theheaderproperty- See Also:
-
getUserObject
Gets the value of theuserObjectproperty.- Property description:
- An optional user object that can be associated with the column. This can be used to store additional information about the column, such as an identifier or metadata.
- Returns:
- the value of the
userObjectproperty - See Also:
-
setUserObject
Sets the value of theuserObjectproperty.- Property description:
- An optional user object that can be associated with the column. This can be used to store additional information about the column, such as an identifier or metadata.
- Parameters:
value- the value for theuserObjectproperty- See Also:
-
userObjectProperty
An optional user object that can be associated with the column. This can be used to store additional information about the column, such as an identifier or metadata.- Returns:
- the
userObjectproperty - See Also:
-