ListType - type of the list elements which should be transformed to a string
listpublic class ItemList<ListType>
extends java.lang.Object
ListView.
You should only expose the stringListProperty() to the view,
otherwise you create a visibility of the view to the model. Create something
like this in your View Model:
public ObservableList stringListProperty(){
return itemList.stringListProperty();
}
You have to provide a ModelToStringMapper to define how to map
between the model type and a string and back. In addition you have properties
which represents the actual selection state of a list.| Type | Property and Description |
|---|---|
javafx.beans.property.ListProperty<ListType> |
modelList |
javafx.beans.property.ReadOnlyListProperty<java.lang.String> |
stringList |
| Constructor and Description |
|---|
ItemList(javafx.collections.ObservableList<ListType> modelList,
ModelToStringMapper<ListType> modelToStringMapper)
Creates a
ItemList by a given list of items and a string
converter. |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ListProperty<ListType> |
modelListProperty() |
javafx.beans.property.ReadOnlyListProperty<java.lang.String> |
stringListProperty() |
public javafx.beans.property.ListProperty<ListType> modelListProperty
public javafx.beans.property.ReadOnlyListProperty<java.lang.String> stringListProperty
public ItemList(javafx.collections.ObservableList<ListType> modelList, ModelToStringMapper<ListType> modelToStringMapper)
ItemList by a given list of items and a string
converter.modelList - which should be transformed for the UImodelToStringMapper - which is used for transformationpublic javafx.beans.property.ListProperty<ListType> modelListProperty()
public javafx.beans.property.ReadOnlyListProperty<java.lang.String> stringListProperty()
Copyright © 2013 Saxonia Systems AG. All Rights Reserved.