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.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description PdoObservableListTranslator(FxComponent component)Creates a translator for components maintaining a list of objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, toViewFunction
-
Methods inherited from class org.tentackle.fx.translate.AbstractValueTranslator
getComponent, isLenient, setLenient
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tentackle.fx.ValueTranslator
bindingPropertiesUpdated, needsToModelTwice, toModel, toView
-
-
-
-
Constructor Detail
-
PdoObservableListTranslator
public PdoObservableListTranslator(FxComponent component)
Creates a translator for components maintaining a list of objects.- Parameters:
component- the component
-
-
Method Detail
-
configureTableView
protected void configureTableView(FxTableView<T> tableView, Class<T> elemClass)
- Overrides:
configureTableViewin classObservableListTranslator<T extends PersistentDomainObject<T>,C extends List<T>>
-
configureTreeTableView
protected void configureTreeTableView(FxTreeTableView<T> treeTableView, Class<T> elemClass)
- Overrides:
configureTreeTableViewin classObservableListTranslator<T extends PersistentDomainObject<T>,C extends List<T>>
-
-