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 objects. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureTableView(FxTableView<T> tableView, Class<T> elemClass) protected voidconfigureTreeTableView(FxTreeTableView<T> treeTableView, Class<T> elemClass) Methods inherited from class org.tentackle.fx.translate.ObservableListTranslator
createTableConfiguration, toModelFunction, toViewFunctionMethods inherited from class org.tentackle.fx.translate.AbstractValueTranslator
getComponent, isLenient, 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 objects.- Parameters:
component- the component
-
-
Method Details
-
configureTableView
- Overrides:
configureTableViewin classObservableListTranslator<T extends PersistentDomainObject<T>,C extends List<T>>
-
configureTreeTableView
- Overrides:
configureTreeTableViewin classObservableListTranslator<T extends PersistentDomainObject<T>,C extends List<T>>
-