Class EMFTableFileMenusBuilder
java.lang.Object
com.amalgamasimulation.desktop.ui.builders.EMFTableFileMenusBuilder
Sets up the Edit in Excel and Load from file menu items of a table. The setup starts with
EMFTable.editInExcelMenu() or EMFTable.loadFromFileMenu().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe first step: the object that holds the list of table elements.static interfaceThe last required step.static interfaceThe optional settings of the Edit in Excel menu item, and build().static interfaceThe step that sets the reference to the list of elements.static interfaceThe optional settings of the Load from file menu item, and build().static interfaceThe step that sets how the file is written and read. -
Method Summary
Modifier and TypeMethodDescriptioneditInExcelMenu(EMFTable<T> table, Consumer<com.amalgamasimulation.desktop.ui.internal.filemenu.EditInExcelData> onBuild) Starts the setup of the Edit in Excel menu item.loadFromFileMenu(EMFTable<T> table, Consumer<com.amalgamasimulation.desktop.ui.internal.filemenu.LoadFromFileData> onBuild) Starts the setup of the Load from file menu item.
-
Method Details
-
editInExcelMenu
public static <T> EMFTableFileMenusBuilder.ContainerBuilder<EMFTableFileMenusBuilder.EditInExcelMenu<T>> editInExcelMenu(EMFTable<T> table, Consumer<com.amalgamasimulation.desktop.ui.internal.filemenu.EditInExcelData> onBuild) Starts the setup of the Edit in Excel menu item. build() passes the item data to onBuild.- Parameters:
table- the table that gets the menu itemonBuild- receives the item data on build()- Returns:
- the first step of the builder
-
loadFromFileMenu
public static <T> EMFTableFileMenusBuilder.ContainerBuilder<EMFTableFileMenusBuilder.LoadFromFileMenu<T>> loadFromFileMenu(EMFTable<T> table, Consumer<com.amalgamasimulation.desktop.ui.internal.filemenu.LoadFromFileData> onBuild) Starts the setup of the Load from file menu item. build() passes the item data to onBuild.- Parameters:
table- the table that gets the menu itemonBuild- receives the item data on build()- Returns:
- the first step of the builder
-