Interface RdcFactory

  • All Known Implementing Classes:
    DefaultRdcFactory

    public interface RdcFactory
    A factory for FX-RDC-related stuff.
    Author:
    harald
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T extends org.tentackle.pdo.PersistentDomainObject<T>>
      PdoCrud<T>
      createPdoCrud​(T pdo, boolean editable, boolean modal)
      Creates a CRUD controller for a pdo.
      <T extends org.tentackle.pdo.PersistentDomainObject<T>>
      PdoSearch<T>
      createPdoSearch​(T pdo)
      Creates a search controller for a pdo.
      <S,​T extends org.tentackle.pdo.PersistentDomainObject<T>>
      PdoTableCell<S,​T>
      createTableCell​(org.tentackle.fx.table.TableColumnConfiguration<S,​T> columnConfig)
      Creates a table cell for a pdo type.
      <S> TablePopup<S> createTablePopup​(org.tentackle.fx.component.FxTableView<S> table, java.lang.String preferencesSuffix, java.lang.String title)
      Creates a table popup for a table view.
      <S> TablePopup<S> createTablePopup​(org.tentackle.fx.component.FxTreeTableView<S> treeTable, java.lang.String preferencesSuffix, java.lang.String title)
      Creates a table popup for a tree table view.
      <T extends org.tentackle.pdo.PersistentDomainObject<T>>
      PdoTreeCell<T>
      createTreeCell​(javafx.scene.control.TreeView<T> treeView)
      Creates a tree cell for a pdo type.
      <T extends org.tentackle.pdo.PersistentDomainObject<T>>
      PdoTreeItem<T>
      createTreeItem​(T pdo)
      Creates a tree item for a pdo.
      <S,​T extends org.tentackle.pdo.PersistentDomainObject<T>>
      PdoTreeTableCell<S,​T>
      createTreeTableCell​(org.tentackle.fx.table.TableColumnConfiguration<S,​T> columnConfig)
      Creates a tree table cell for a pdo type.
      static RdcFactory getInstance()
      The singleton.
    • Method Detail

      • getInstance

        static RdcFactory getInstance()
        The singleton.
        Returns:
        the singleton
      • createPdoCrud

        <T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoCrud<T> createPdoCrud​(T pdo,
                                                                                         boolean editable,
                                                                                         boolean modal)
        Creates a CRUD controller for a pdo.
        Type Parameters:
        T - the pdo type
        Parameters:
        pdo - the pdo
        editable - true if edit pdo, false to view only
        modal - true if modal mode
        Returns:
        the crud controller
      • createPdoSearch

        <T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoSearch<T> createPdoSearch​(T pdo)
        Creates a search controller for a pdo.
        Type Parameters:
        T - the pdo type
        Parameters:
        pdo - the pdo
        Returns:
        the search controller
      • createTreeItem

        <T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoTreeItem<T> createTreeItem​(T pdo)
        Creates a tree item for a pdo.
        Type Parameters:
        T - the pdo type
        Parameters:
        pdo - the pdo
        Returns:
        the tree item
      • createTreeCell

        <T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoTreeCell<T> createTreeCell​(javafx.scene.control.TreeView<T> treeView)
        Creates a tree cell for a pdo type.
        Type Parameters:
        T - the pdo type
        Parameters:
        treeView - the tree view
        Returns:
        the tree cell
      • createTreeTableCell

        <S,​T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoTreeTableCell<S,​T> createTreeTableCell​(org.tentackle.fx.table.TableColumnConfiguration<S,​T> columnConfig)
        Creates a tree table cell for a pdo type.
        Type Parameters:
        S - the table row's type
        T - the table cell's pdo type
        Parameters:
        columnConfig - the table column configuration
        Returns:
        the tree table cell
      • createTableCell

        <S,​T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoTableCell<S,​T> createTableCell​(org.tentackle.fx.table.TableColumnConfiguration<S,​T> columnConfig)
        Creates a table cell for a pdo type.
        Type Parameters:
        S - the table row's type
        T - the table cell's pdo type
        Parameters:
        columnConfig - the table column configuration
        Returns:
        the table cell
      • createTablePopup

        <S> TablePopup<S> createTablePopup​(org.tentackle.fx.component.FxTableView<S> table,
                                           java.lang.String preferencesSuffix,
                                           java.lang.String title)
        Creates a table popup for a table view.
        Type Parameters:
        S - the row type
        Parameters:
        table - the table
        preferencesSuffix - the optional preferences suffix to load/save table preferences
        title - the optional title of the printed table
        Returns:
        the popup
      • createTablePopup

        <S> TablePopup<S> createTablePopup​(org.tentackle.fx.component.FxTreeTableView<S> treeTable,
                                           java.lang.String preferencesSuffix,
                                           java.lang.String title)
        Creates a table popup for a tree table view.
        Type Parameters:
        S - the row type
        Parameters:
        treeTable - the treetable
        preferencesSuffix - the optional preferences suffix to load/save table preferences
        title - the optional title of the printed table
        Returns:
        the popup