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

public class MenuDeleteHooker 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 deletion operations.
      Specified by:
      createToolbarButton in interface TsFavoriteMenuHook
      Parameters:
      toolbarService - The toolbar service used to create the button
      Returns:
      A configured delete button with appropriate styling
    • removeHandlerRegistration

      public void removeHandlerRegistration()
      Removes registered event handlers to prevent memory leaks. Safe to call even if no handler is registered.
      Specified by:
      removeHandlerRegistration in interface TsFavoriteMenuHook
    • configureToolbarButton

      public boolean configureToolbarButton(DwTextButton deleteBtn, List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent)
      Configures the toolbar delete button based on the current selection state.
      Specified by:
      configureToolbarButton in interface TsFavoriteMenuHook
      Parameters:
      deleteBtn - The button to configure
      items - The list of currently selected disk items
      mainComponent - The main component reference
      Returns:
      true if the button should be enabled, false otherwise