Class DefaultRdcFactory

  • All Implemented Interfaces:
    RdcFactory

    @Service(RdcFactory.class)
    public class DefaultRdcFactory
    extends java.lang.Object
    implements RdcFactory
    The default RDC factory.
    Author:
    harald
    • Method Summary

      All Methods Instance Methods Concrete 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()
      Creates a table cell for a pdo type.
      <S> TablePopup<S> createTablePopup​(org.tentackle.fx.component.FxTableView<S> table, java.lang.String preferencesSuffix, boolean noViewSize, java.lang.String title)
      Creates a table popup.
      <T extends org.tentackle.pdo.PersistentDomainObject<T>>
      PdoTreeCell<T>
      createTreeCell()
      Creates a tree cell for a pdo type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultRdcFactory

        public DefaultRdcFactory()
    • Method Detail

      • createPdoCrud

        public <T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoCrud<T> createPdoCrud​(T pdo,
                                                                                                boolean editable,
                                                                                                boolean modal)
        Description copied from interface: RdcFactory
        Creates a CRUD controller for a pdo.
        Specified by:
        createPdoCrud in interface RdcFactory
        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

        public <T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoSearch<T> createPdoSearch​(T pdo)
        Description copied from interface: RdcFactory
        Creates a search controller for a pdo.
        Specified by:
        createPdoSearch in interface RdcFactory
        Type Parameters:
        T - the pdo type
        Parameters:
        pdo - the pdo
        Returns:
        the search controller
      • createTreeCell

        public <T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoTreeCell<T> createTreeCell()
        Description copied from interface: RdcFactory
        Creates a tree cell for a pdo type.
        Specified by:
        createTreeCell in interface RdcFactory
        Type Parameters:
        T - the pdo type
        Returns:
        the tree cell
      • createTableCell

        public <S,​T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoTableCell<S,​T> createTableCell()
        Description copied from interface: RdcFactory
        Creates a table cell for a pdo type.
        Specified by:
        createTableCell in interface RdcFactory
        Type Parameters:
        S - the table row's type
        T - the table cell's pdo type
        Returns:
        the table cell
      • createTablePopup

        public <S> TablePopup<S> createTablePopup​(org.tentackle.fx.component.FxTableView<S> table,
                                                  java.lang.String preferencesSuffix,
                                                  boolean noViewSize,
                                                  java.lang.String title)
        Description copied from interface: RdcFactory
        Creates a table popup.
        Specified by:
        createTablePopup in interface RdcFactory
        Type Parameters:
        S - the row type
        Parameters:
        table - the table
        preferencesSuffix - the preferences suffix to load/save table preferences
        noViewSize - true if don't set the table view's size
        title - the title of the printed table
        Returns:
        the popup