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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S,T extends PersistentDomainObject<T>>
javafx.scene.control.ContextMenucreate(PdoTableCell<S, T> cell) Creates a context menu for a table cell.<T extends PersistentDomainObject<T>>
javafx.scene.control.ContextMenucreate(PdoTreeCell<T> cell) Creates a context menu for a tree cell.<S,T extends PersistentDomainObject<T>>
javafx.scene.control.ContextMenucreate(PdoTreeTableCell<S, T> cell) Creates a context menu for a tree table cell.
-
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: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 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
-
create
public <S,T extends PersistentDomainObject<T>> javafx.scene.control.ContextMenu create(PdoTreeTableCell<S, T> cell) Description copied from interface:PdoContextMenuFactoryCreates a context menu for a tree 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
-