Class MenuToAnotherTeamspaceHooker
java.lang.Object
net.datenwerke.rs.tsreportarea.client.tsreportarea.hookers.MenuToAnotherTeamspaceHooker
- All Implemented Interfaces:
Hook,TsFavoriteMenuHook
-
Constructor Summary
ConstructorsConstructorDescriptionMenuToAnotherTeamspaceHooker(TsDiskTreeManagerDao treeManagerDao, TeamSpaceUIService teamspaceService, ToolbarService toolbarService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddContextMenuEntries(Menu menu, List<AbstractTsDiskNodeDto> items, ItemSelector selector, TsDiskMainComponent mainComponent) booleanconfigureToolbarButton(DwTextButton moveBtn, List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent) Configures the toolbar button with appropriate behavior based on selected items.createToolbarButton(ToolbarService toolbarService) Creates a toolbar button for moving variants between teamspaces.voidRemoves handler registration to prevent memory leaks.
-
Constructor Details
-
MenuToAnotherTeamspaceHooker
public MenuToAnotherTeamspaceHooker(TsDiskTreeManagerDao treeManagerDao, TeamSpaceUIService teamspaceService, ToolbarService toolbarService)
-
-
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 moving variants between teamspaces.- Specified by:
createToolbarButtonin interfaceTsFavoriteMenuHook- Parameters:
toolbarService- the toolbar service used to create the button- Returns:
- the configured DwTextButton instance
-
removeHandlerRegistration
public void removeHandlerRegistration()Removes handler registration to prevent memory leaks. Cleans up any registered event handlers.- Specified by:
removeHandlerRegistrationin interfaceTsFavoriteMenuHook
-
configureToolbarButton
public boolean configureToolbarButton(DwTextButton moveBtn, List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent) Configures the toolbar button with appropriate behavior based on selected items.- Specified by:
configureToolbarButtonin interfaceTsFavoriteMenuHook- Parameters:
moveBtn- the button to configureitems- the list of selected disk nodesmainComponent- the main disk component instance- Returns:
- true if the button was successfully configured, false otherwise
-