Class MenuTestHooker
java.lang.Object
net.datenwerke.rs.tsreportarea.client.tsreportarea.hookers.MenuTestHooker
- All Implemented Interfaces:
Hook,TsFavoriteMenuHook
-
Constructor Summary
ConstructorsConstructorDescriptionMenuTestHooker(ReportDocumentationUiService reportDocService, TeamSpaceUIService teamspaceService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddContextMenuEntries(Menu menu, List<AbstractTsDiskNodeDto> items, ItemSelector selector, TsDiskMainComponent mainComponent) booleanconfigureToolbarButton(DwTextButton testBtn, List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent) Configures the toolbar button based on selected items and main component state.createToolbarButton(ToolbarService toolbarService) Creates a toolbar button for testing purposes.voidRemoves any registered event handlers.
-
Constructor Details
-
MenuTestHooker
public MenuTestHooker(ReportDocumentationUiService reportDocService, TeamSpaceUIService teamspaceService)
-
-
Method Details
-
addContextMenuEntries
public boolean addContextMenuEntries(Menu menu, List<AbstractTsDiskNodeDto> items, ItemSelector selector, TsDiskMainComponent mainComponent) - Specified by:
addContextMenuEntriesin interfaceTsFavoriteMenuHook
-
createToolbarButton
Creates a toolbar button for testing purposes.- Specified by:
createToolbarButtonin interfaceTsFavoriteMenuHook- Parameters:
toolbarService- The toolbar service used to create the button- Returns:
- A configured DwTextButton with test icon and label
-
removeHandlerRegistration
public void removeHandlerRegistration()Removes any registered event handlers.- Specified by:
removeHandlerRegistrationin interfaceTsFavoriteMenuHook
-
configureToolbarButton
public boolean configureToolbarButton(DwTextButton testBtn, List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent) Configures the toolbar button based on selected items and main component state.- Specified by:
configureToolbarButtonin interfaceTsFavoriteMenuHook- Parameters:
testBtn- The button to configureitems- List of selected disk nodesmainComponent- The main disk component- Returns:
- true if button was successfully configured, false otherwise
-