Module org.tentackle.fx.rdc
Package org.tentackle.fx.rdc.translate
Class PdoObservableListTranslator<T extends PersistentDomainObject<T>,C extends List<T>>
java.lang.Object
org.tentackle.fx.translate.AbstractValueTranslator<C,javafx.collections.ObservableList<T>>
org.tentackle.fx.translate.ObservableListTranslator<T,C>
org.tentackle.fx.rdc.translate.PdoObservableListTranslator<T,C>
- Type Parameters:
T- the PDO typeC- the collection type
- All Implemented Interfaces:
ValueTranslator<C,javafx.collections.ObservableList<T>>
@ValueTranslatorService(modelClass=java.util.List.class,
viewClass=javafx.collections.ObservableList.class)
public class PdoObservableListTranslator<T extends PersistentDomainObject<T>,C extends List<T>>
extends ObservableListTranslator<T,C>
List translator.
Replaces ObservableListTranslator and adds PDO detection for automatic configuration via GuiProvider for tables.
Replaces ObservableListTranslator and adds PDO detection for automatic configuration via GuiProvider for tables.
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionPdoObservableListTranslator(FxComponent component) Creates a translator for components maintaining a list of PDOs. -
Method Summary
Modifier and TypeMethodDescriptionprotected TableConfigurationProvider<T> createTableConfigurationProvider(Class<T> elemClass) Methods inherited from class org.tentackle.fx.translate.ObservableListTranslator
configureComponent, configureTableView, configureTreeTableView, createTableConfiguration, toModelFunction, toViewFunctionMethods inherited from class org.tentackle.fx.translate.AbstractValueTranslator
getComponent, isLenient, isMappingIncomplete, isModelModified, saveModelValue, setLenientMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tentackle.fx.ValueTranslator
bindingPropertiesUpdated, needsToModelTwice, toModel, toView
-
Constructor Details
-
PdoObservableListTranslator
Creates a translator for components maintaining a list of PDOs.- Parameters:
component- the component
-
-
Method Details
-
createTableConfigurationProvider
- Overrides:
createTableConfigurationProviderin classObservableListTranslator<T extends PersistentDomainObject<T>,C extends List<T>>
-