Class ExportExternalButtonHooker

java.lang.Object
net.datenwerke.rs.core.client.reportexporter.hookers.ExportExternalButtonHooker
All Implemented Interfaces:
Hook, ReportExecutorViewToolbarHook, TsFavoriteMenuHook

public class ExportExternalButtonHooker extends Object implements ReportExecutorViewToolbarHook, TsFavoriteMenuHook
  • Field Details

  • Constructor Details

  • Method Details

    • reportPreviewViewToolbarHook_addLeft

      public boolean reportPreviewViewToolbarHook_addLeft(ToolBar toolbar, ReportDto report, ReportExecutorInformation info, ReportExecutorMainPanel mainPanel)
      Specified by:
      reportPreviewViewToolbarHook_addLeft in interface ReportExecutorViewToolbarHook
    • reportPreviewViewToolbarHook_addRight

      public boolean reportPreviewViewToolbarHook_addRight(ToolBar toolbar, ReportDto report, ReportExecutorInformation info, ReportExecutorMainPanel mainPanel)
      Specified by:
      reportPreviewViewToolbarHook_addRight in interface ReportExecutorViewToolbarHook
    • reportPreviewViewToolbarHook_reportUpdated

      public void reportPreviewViewToolbarHook_reportUpdated(ReportDto report, ReportExecutorInformation info)
      Specified by:
      reportPreviewViewToolbarHook_reportUpdated in interface ReportExecutorViewToolbarHook
    • addContextMenuEntries

      public boolean addContextMenuEntries(Menu menu, List<AbstractTsDiskNodeDto> items, ItemSelector itemSelector, TsDiskMainComponent mainComponent)
      Adds context menu entries based on the specified items and their corresponding selection state.
      Specified by:
      addContextMenuEntries in interface TsFavoriteMenuHook
      Parameters:
      menu - the context menu object to which entries are to be added
      items - the list of items of type AbstractTsDiskNodeDto that are relevant for the menu entries
      itemSelector - the item selector used to determine the current selection or context
      mainComponent - the main component in which the operation takes place, providing context or additional dependencies
      Returns:
      a boolean indicating whether any entries were successfully added to the context menu
    • configureToolbarButton

      public boolean configureToolbarButton(DwTextButton button, List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent)
      Configures the properties of a toolbar button based on the selected items and main component.
      Specified by:
      configureToolbarButton in interface TsFavoriteMenuHook
      Parameters:
      button - The button to be configured
      items - List of selected disk node DTOs
      mainComponent - The main disk component reference
      Returns:
      true if the button should be enabled, false otherwise
    • createToolbarButton

      public DwTextButton createToolbarButton(ToolbarService toolbarService)
      Creates a new toolbar button instance using the toolbar service.
      Specified by:
      createToolbarButton in interface TsFavoriteMenuHook
      Parameters:
      toolbarService - The service used to create toolbar buttons
      Returns:
      The created button instance, or null if no button should be created
    • removeHandlerRegistration

      public void removeHandlerRegistration()
      Removes any registered event handlers associated with this toolbar action. This is typically called when the action is being disposed.
      Specified by:
      removeHandlerRegistration in interface TsFavoriteMenuHook
    • addSmallButtonToToolbar

      public boolean addSmallButtonToToolbar(List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent, ToolbarService toolbarService, ToolBar mainToolbar)
      Adds a small button to the toolbar based on the provided items and configurations.
      Parameters:
      items - a list of
      invalid reference
      AbstractTsDiskNodeDto
      objects to determine if the button should be added
      mainComponent - the main component in which the button addition is to occur
      toolbarService - the service responsible for toolbar interactions and button management
      mainToolbar - the toolbar to which the button is to be added
      Returns:
      true if the button was successfully added to the toolbar, false otherwise