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

public class MenuOpenHooker 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 opening items.
      Specified by:
      createToolbarButton in interface TsFavoriteMenuHook
      Parameters:
      toolbarService - The toolbar service used to create the button
      Returns:
      The created text button with rotate right icon and "open" text
    • removeHandlerRegistration

      public void removeHandlerRegistration()
      Removes the registered handler if it exists. Cleans up any event handlers that were previously registered.
      Specified by:
      removeHandlerRegistration in interface TsFavoriteMenuHook
    • configureToolbarButton

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