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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExportExternalButtonHooker(HookHandlerService hookHandler, ToolbarService toolbarService, SendToDao sendToDao, ReportExecutorDao reportExecutorDao) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddContextMenuEntries(Menu menu, List<AbstractTsDiskNodeDto> items, ItemSelector itemSelector, TsDiskMainComponent mainComponent) Adds context menu entries based on the specified items and their corresponding selection state.booleanaddSmallButtonToToolbar(List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent, ToolbarService toolbarService, ToolBar mainToolbar) Adds a small button to the toolbar based on the provided items and configurations.booleanconfigureToolbarButton(DwTextButton button, List<AbstractTsDiskNodeDto> items, TsDiskMainComponent mainComponent) Configures the properties of a toolbar button based on the selected items and main component.createToolbarButton(ToolbarService toolbarService) Creates a new toolbar button instance using the toolbar service.voidRemoves any registered event handlers associated with this toolbar action.booleanreportPreviewViewToolbarHook_addLeft(ToolBar toolbar, ReportDto report, ReportExecutorInformation info, ReportExecutorMainPanel mainPanel) booleanreportPreviewViewToolbarHook_addRight(ToolBar toolbar, ReportDto report, ReportExecutorInformation info, ReportExecutorMainPanel mainPanel) voidreportPreviewViewToolbarHook_reportUpdated(ReportDto report, ReportExecutorInformation info)
-
Field Details
-
FORMAT_FORM_KEY
- See Also:
-
-
Constructor Details
-
Method Details
-
reportPreviewViewToolbarHook_addLeft
public boolean reportPreviewViewToolbarHook_addLeft(ToolBar toolbar, ReportDto report, ReportExecutorInformation info, ReportExecutorMainPanel mainPanel) - Specified by:
reportPreviewViewToolbarHook_addLeftin interfaceReportExecutorViewToolbarHook
-
reportPreviewViewToolbarHook_addRight
public boolean reportPreviewViewToolbarHook_addRight(ToolBar toolbar, ReportDto report, ReportExecutorInformation info, ReportExecutorMainPanel mainPanel) - Specified by:
reportPreviewViewToolbarHook_addRightin interfaceReportExecutorViewToolbarHook
-
reportPreviewViewToolbarHook_reportUpdated
public void reportPreviewViewToolbarHook_reportUpdated(ReportDto report, ReportExecutorInformation info) - Specified by:
reportPreviewViewToolbarHook_reportUpdatedin interfaceReportExecutorViewToolbarHook
-
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:
addContextMenuEntriesin interfaceTsFavoriteMenuHook- Parameters:
menu- the context menu object to which entries are to be addeditems- the list of items of type AbstractTsDiskNodeDto that are relevant for the menu entriesitemSelector- the item selector used to determine the current selection or contextmainComponent- 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:
configureToolbarButtonin interfaceTsFavoriteMenuHook- Parameters:
button- The button to be configureditems- List of selected disk node DTOsmainComponent- The main disk component reference- Returns:
- true if the button should be enabled, false otherwise
-
createToolbarButton
Creates a new toolbar button instance using the toolbar service.- Specified by:
createToolbarButtonin interfaceTsFavoriteMenuHook- 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:
removeHandlerRegistrationin interfaceTsFavoriteMenuHook
-
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 ofobjects to determine if the button should be addedinvalid reference
AbstractTsDiskNodeDtomainComponent- the main component in which the button addition is to occurtoolbarService- the service responsible for toolbar interactions and button managementmainToolbar- the toolbar to which the button is to be added- Returns:
- true if the button was successfully added to the toolbar, false otherwise
-