Class DefaultPdoContextMenuFactory

java.lang.Object
org.tentackle.fx.rdc.DefaultPdoContextMenuFactory
All Implemented Interfaces:
PdoContextMenuFactory

@Service(PdoContextMenuFactory.class) public class DefaultPdoContextMenuFactory extends Object implements PdoContextMenuFactory
The default GUI provider factory.
Author:
harald
  • Constructor Details

    • DefaultPdoContextMenuFactory

      public DefaultPdoContextMenuFactory()
      Creates the factory.
  • Method Details

    • create

      public <T extends PersistentDomainObject<T>> javafx.scene.control.ContextMenu create(PdoTreeCell<T> cell)
      Description copied from interface: PdoContextMenuFactory
      Creates a context menu for a tree cell.
      Specified by:
      create in interface PdoContextMenuFactory
      Type Parameters:
      T - the PDO's class
      Parameters:
      cell - the tree cell
      Returns:
      the context menu, null if no menu items
    • create

      public <S, T extends PersistentDomainObject<T>> javafx.scene.control.ContextMenu create(PdoTableCell<S,T> cell)
      Description copied from interface: PdoContextMenuFactory
      Creates a context menu for a table cell.
      Specified by:
      create in interface PdoContextMenuFactory
      Type Parameters:
      S - the table row's type
      T - the table cell's pdo type
      Parameters:
      cell - the table cell
      Returns:
      the context menu, null if no menu items
    • create

      public <S, T extends PersistentDomainObject<T>> javafx.scene.control.ContextMenu create(PdoTreeTableCell<S,T> cell)
      Description copied from interface: PdoContextMenuFactory
      Creates a context menu for a tree table cell.
      Specified by:
      create in interface PdoContextMenuFactory
      Type Parameters:
      S - the table row's type
      T - the table cell's pdo type
      Parameters:
      cell - the table cell
      Returns:
      the context menu, null if no menu items