ListType - type of the list elements which should be transformed to a string listpublic class ItemList<ListType> extends ListTransformation<ListType,String>
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 <String> stringListProperty(){
return itemList.stringListProperty();
}
ModelToStringFunction 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.ReadOnlyListProperty<String> |
stringList |
modelListProperty, sourceListProperty, targetListProperty| Constructor and Description |
|---|
ItemList(javafx.collections.ObservableList<ListType> modelList,
ModelToStringFunction<ListType> modelToStringMapper)
Creates a
ItemList by a given list of items and a string converter. |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ReadOnlyListProperty<String> |
stringListProperty() |
getModelList, getSourceList, getTargetList, modelListProperty, setModelList, setSourceList, sourceListProperty, targetListPropertypublic javafx.beans.property.ReadOnlyListProperty<String> stringListProperty
public ItemList(javafx.collections.ObservableList<ListType> modelList, ModelToStringFunction<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.ReadOnlyListProperty<String> stringListProperty()
Copyright © 2019 Saxonia Systems AG. All rights reserved.