java.lang.Object
net.datenwerke.treedb.ext.client.eximport.ex.hookers.RemoveButtonHook
All Implemented Interfaces:
MainPanelViewToolbarConfiguratorHook, Hook

public final class RemoveButtonHook extends Object implements MainPanelViewToolbarConfiguratorHook
  • Field Details

  • Constructor Details

    • RemoveButtonHook

      public RemoveButtonHook(ToolbarService toolbarUtils)
  • Method Details

    • mainPanelViewToolbarConfiguratorHook_addLeft

      public void mainPanelViewToolbarConfiguratorHook_addLeft(MainPanelView view, ToolBar toolbar, AbstractNodeDto selectedNode)
      Adds custom components to the left section of the toolbar in the main panel view.
      Specified by:
      mainPanelViewToolbarConfiguratorHook_addLeft in interface MainPanelViewToolbarConfiguratorHook
      Parameters:
      view - The main panel view to which the toolbar belongs.
    • mainPanelViewToolbarConfiguratorHook_addRight

      public void mainPanelViewToolbarConfiguratorHook_addRight(MainPanelView view, ToolBar toolbar, AbstractNodeDto selectedNode)
      Configures the right-hand section of the toolbar in the main panel view by allowing additional components or functionality to
      Specified by:
      mainPanelViewToolbarConfiguratorHook_addRight in interface MainPanelViewToolbarConfiguratorHook
    • mainPanelViewToolbarConfiguratorHook_addRight

      public void mainPanelViewToolbarConfiguratorHook_addRight(MainPanelView view, ToolBar toolbar, AbstractNodeDto selectedNode, UITree tree)
      Adds a custom 'Remove' button to the right-hand side of the toolbar in the main panel view under specific conditions. The button allows removal of a node in the tree and refreshes the tree structure accordingly.
      Specified by:
      mainPanelViewToolbarConfiguratorHook_addRight in interface MainPanelViewToolbarConfiguratorHook
      Parameters:
      view - The main panel view to which the toolbar belongs.
      toolbar - The toolbar to which the 'Remove' button will be added.
      selectedNode - The currently selected node that the 'Remove' button will act upon.
      tree - The tree structure associated with the current main panel view.