- java.lang.Object
-
- org.tentackle.fx.rdc.DefaultRdcFactory
-
- All Implemented Interfaces:
RdcFactory
@Service(RdcFactory.class) public class DefaultRdcFactory extends java.lang.Object implements RdcFactory
The default RDC factory.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description DefaultRdcFactory()
-
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(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.
-
-
-
Method Detail
-
createPdoCrud
public <T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoCrud<T> createPdoCrud(T pdo, boolean editable, boolean modal)
Description copied from interface:RdcFactoryCreates a CRUD controller for a pdo.- Specified by:
createPdoCrudin interfaceRdcFactory- Type Parameters:
T- the pdo type- Parameters:
pdo- the pdoeditable- true if edit pdo, false to view onlymodal- 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:RdcFactoryCreates a search controller for a pdo.- Specified by:
createPdoSearchin interfaceRdcFactory- Type Parameters:
T- the pdo type- Parameters:
pdo- the pdo- Returns:
- the search controller
-
createTreeItem
public <T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoTreeItem<T> createTreeItem(T pdo)
Description copied from interface:RdcFactoryCreates a tree item for a pdo.- Specified by:
createTreeItemin interfaceRdcFactory- Type Parameters:
T- the pdo type- Parameters:
pdo- the pdo- Returns:
- the tree item
-
createTreeCell
public <T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoTreeCell<T> createTreeCell(javafx.scene.control.TreeView<T> treeView)
Description copied from interface:RdcFactoryCreates a tree cell for a pdo type.- Specified by:
createTreeCellin interfaceRdcFactory- Type Parameters:
T- the pdo type- Parameters:
treeView- the tree view- Returns:
- the tree cell
-
createTreeTableCell
public <S,T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoTreeTableCell<S,T> createTreeTableCell(org.tentackle.fx.table.TableColumnConfiguration<S,T> columnConfig)
Description copied from interface:RdcFactoryCreates a tree table cell for a pdo type.- Specified by:
createTreeTableCellin interfaceRdcFactory- Type Parameters:
S- the table row's typeT- the table cell's pdo type- Parameters:
columnConfig- the table column configuration- Returns:
- the tree table cell
-
createTableCell
public <S,T extends org.tentackle.pdo.PersistentDomainObject<T>> PdoTableCell<S,T> createTableCell(org.tentackle.fx.table.TableColumnConfiguration<S,T> columnConfig)
Description copied from interface:RdcFactoryCreates a table cell for a pdo type.- Specified by:
createTableCellin interfaceRdcFactory- Type Parameters:
S- the table row's typeT- the table cell's pdo type- Parameters:
columnConfig- the table column configuration- Returns:
- the table cell
-
createTablePopup
public <S> TablePopup<S> createTablePopup(org.tentackle.fx.component.FxTableView<S> table, java.lang.String preferencesSuffix, java.lang.String title)
Description copied from interface:RdcFactoryCreates a table popup for a table view.- Specified by:
createTablePopupin interfaceRdcFactory- Type Parameters:
S- the row type- Parameters:
table- the tablepreferencesSuffix- the optional preferences suffix to load/save table preferencestitle- the optional title of the printed table- Returns:
- the popup
-
createTablePopup
public <S> TablePopup<S> createTablePopup(org.tentackle.fx.component.FxTreeTableView<S> treeTable, java.lang.String preferencesSuffix, java.lang.String title)
Description copied from interface:RdcFactoryCreates a table popup for a tree table view.- Specified by:
createTablePopupin interfaceRdcFactory- Type Parameters:
S- the row type- Parameters:
treeTable- the treetablepreferencesSuffix- the optional preferences suffix to load/save table preferencestitle- the optional title of the printed table- Returns:
- the popup
-
-