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

public class MenuAddFolderHooker 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
    • configureToolbarButton

      public boolean configureToolbarButton(DwTextButton button, List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent)
      Configures the properties and behavior of a toolbar button for this action. This method is called when the button needs to be customized based on the current selection or application state.
      Specified by:
      configureToolbarButton in interface TsFavoriteMenuHook
      Parameters:
      button - the button to be configured
      items - the currently selected disk node items (may be empty)
      mainComponent - the main disk component for context
      Returns:
      true if the button should be enabled, false if it should be disabled
    • createToolbarButton

      public DwTextButton createToolbarButton(ToolbarService toolbarService)
      Creates a new toolbar button instance for this action. This method is typically called during toolbar initialization to create the visual representation of this action.
      Specified by:
      createToolbarButton in interface TsFavoriteMenuHook
      Parameters:
      toolbarService - the toolbar service for button creation utilities
      Returns:
      a configured DwTextButton instance, or null if no button should be displayed
    • removeHandlerRegistration

      public void removeHandlerRegistration()
      Cleans up any handler registrations or event listeners associated with this action. This method is called when the action is being disposed or when the component containing the action is being destroyed to prevent memory leaks.
      Specified by:
      removeHandlerRegistration in interface TsFavoriteMenuHook