Class MenuToAnotherTeamspaceHooker

java.lang.Object
net.datenwerke.rs.tsreportarea.client.tsreportarea.hookers.MenuToAnotherTeamspaceHooker
All Implemented Interfaces:
Hook, TsFavoriteMenuHook

public class MenuToAnotherTeamspaceHooker extends Object implements TsFavoriteMenuHook
  • Constructor Details

  • Method Details

    • addContextMenuEntries

      public boolean addContextMenuEntries(Menu menu, List<AbstractTsDiskNodeDto> items, ItemSelector selector, TsDiskMainComponent mainComponent)
      Specified by:
      addContextMenuEntries in interface TsFavoriteMenuHook
    • createToolbarButton

      public DwTextButton createToolbarButton(ToolbarService toolbarService)
      Creates a toolbar button for moving variants between teamspaces.
      Specified by:
      createToolbarButton in interface TsFavoriteMenuHook
      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:
      removeHandlerRegistration in interface TsFavoriteMenuHook
    • configureToolbarButton

      public boolean configureToolbarButton(DwTextButton moveBtn, List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent)
      Configures the toolbar button with appropriate behavior based on selected items.
      Specified by:
      configureToolbarButton in interface TsFavoriteMenuHook
      Parameters:
      moveBtn - the button to configure
      items - the list of selected disk nodes
      mainComponent - the main disk component instance
      Returns:
      true if the button was successfully configured, false otherwise