Class PdoCollectionTreeItemTranslator<T extends org.tentackle.pdo.PersistentDomainObject<T>,​C extends java.util.Collection<T>>

  • Type Parameters:
    T - the PDO type
    C - the collection type
    All Implemented Interfaces:
    org.tentackle.fx.ValueTranslator<C,​javafx.scene.control.TreeItem<T>>

    @ValueTranslatorService(modelClass=java.util.Collection.class,
                            viewClass=javafx.scene.control.TreeItem.class)
    public class PdoCollectionTreeItemTranslator<T extends org.tentackle.pdo.PersistentDomainObject<T>,​C extends java.util.Collection<T>>
    extends org.tentackle.fx.translate.CollectionTreeItemTranslator<T,​C>
    PDO-aware collection to TreeItem translator for FxTreeView and FxTreeTableView.
    Used if the model provides a collection.
    Author:
    harald
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configureComponent()  
      protected javafx.scene.control.TreeItem<T> createTreeItem​(java.lang.Object object)  
      • Methods inherited from class org.tentackle.fx.translate.CollectionTreeItemTranslator

        configureTreeTableView, getTableConfiguration, getTableConfigurationProvider, 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

      • PdoCollectionTreeItemTranslator

        public PdoCollectionTreeItemTranslator​(org.tentackle.fx.FxComponent component)
        Creates a translator.
        Parameters:
        component - the component
    • Method Detail

      • configureComponent

        protected void configureComponent()
        Overrides:
        configureComponent in class org.tentackle.fx.translate.CollectionTreeItemTranslator<T extends org.tentackle.pdo.PersistentDomainObject<T>,​C extends java.util.Collection<T>>
      • createTreeItem

        protected javafx.scene.control.TreeItem<T> createTreeItem​(java.lang.Object object)
        Overrides:
        createTreeItem in class org.tentackle.fx.translate.CollectionTreeItemTranslator<T extends org.tentackle.pdo.PersistentDomainObject<T>,​C extends java.util.Collection<T>>