- java.lang.Object
-
- org.tentackle.fx.rdc.DefaultPdoContextMenuFactory
-
- All Implemented Interfaces:
PdoContextMenuFactory
@Service(PdoContextMenuFactory.class) public class DefaultPdoContextMenuFactory extends java.lang.Object implements PdoContextMenuFactory
The default GUI provider factory.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description DefaultPdoContextMenuFactory()Creates the factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S,T extends org.tentackle.pdo.PersistentDomainObject<T>>
javafx.scene.control.ContextMenucreate(PdoTableCell<S,T> cell)Creates a context menu for a table cell.<T extends org.tentackle.pdo.PersistentDomainObject<T>>
javafx.scene.control.ContextMenucreate(PdoTreeCell<T> cell)Creates a context menu for a tree cell.
-
-
-
Method Detail
-
create
public <T extends org.tentackle.pdo.PersistentDomainObject<T>> javafx.scene.control.ContextMenu create(PdoTreeCell<T> cell)
Description copied from interface:PdoContextMenuFactoryCreates a context menu for a tree cell.- Specified by:
createin interfacePdoContextMenuFactory- 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 org.tentackle.pdo.PersistentDomainObject<T>> javafx.scene.control.ContextMenu create(PdoTableCell<S,T> cell)
Description copied from interface:PdoContextMenuFactoryCreates a context menu for a table cell.- Specified by:
createin interfacePdoContextMenuFactory- Type Parameters:
S- the table row's typeT- the table cell's pdo type- Parameters:
cell- the table cell- Returns:
- the context menu, null if no menu items
-
-