Class InformationButtonHook
java.lang.Object
net.datenwerke.treedb.ext.client.eximport.ex.hookers.InformationButtonHook
- All Implemented Interfaces:
MainPanelViewToolbarConfiguratorHook,Hook
public final class InformationButtonHook
extends Object
implements MainPanelViewToolbarConfiguratorHook
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInformationButtonHook(ToolbarService toolbarUtils, ObjectInfoPanelService objectInfoService) -
Method Summary
Modifier and TypeMethodDescriptionvoidmainPanelViewToolbarConfiguratorHook_addLeft(MainPanelView view, ToolBar toolbar, AbstractNodeDto selectedNode) Configures the left side of the toolbar in a MainPanelViewvoidmainPanelViewToolbarConfiguratorHook_addRight(MainPanelView view, ToolBar toolbar, AbstractNodeDto selectedNode) Configures the right side of the toolbar in a MainPanelView by adding an information button.voidmainPanelViewToolbarConfiguratorHook_addRight(MainPanelView view, ToolBar toolbar, AbstractNodeDto selectedNode, UITree tree) Adds additional configuration to the right side of the toolbar in a MainPanelView.
-
Field Details
-
BTN_ID
- See Also:
-
-
Constructor Details
-
InformationButtonHook
-
-
Method Details
-
mainPanelViewToolbarConfiguratorHook_addLeft
public void mainPanelViewToolbarConfiguratorHook_addLeft(MainPanelView view, ToolBar toolbar, AbstractNodeDto selectedNode) Configures the left side of the toolbar in a MainPanelView- Specified by:
mainPanelViewToolbarConfiguratorHook_addLeftin interfaceMainPanelViewToolbarConfiguratorHook
-
mainPanelViewToolbarConfiguratorHook_addRight
public void mainPanelViewToolbarConfiguratorHook_addRight(MainPanelView view, ToolBar toolbar, AbstractNodeDto selectedNode) Configures the right side of the toolbar in a MainPanelView by adding an information button. This method adds a button to the toolbar, enabling the display of additional information about the selected node. It ensures that the button is only added if specific conditions are met, such as checking the selected node, confirming- Specified by:
mainPanelViewToolbarConfiguratorHook_addRightin interfaceMainPanelViewToolbarConfiguratorHook
-
mainPanelViewToolbarConfiguratorHook_addRight
public void mainPanelViewToolbarConfiguratorHook_addRight(MainPanelView view, ToolBar toolbar, AbstractNodeDto selectedNode, UITree tree) Adds additional configuration to the right side of the toolbar in a MainPanelView. This method is an overloaded version that includes an additional UITree parameter.- Specified by:
mainPanelViewToolbarConfiguratorHook_addRightin interfaceMainPanelViewToolbarConfiguratorHook- Parameters:
view- the current instance of MainPanelView to be configuredtoolbar- the toolbar to which components can be addedselectedNode- the currently selected node in the view, providing context for the toolbar configurationtree- the UITree instance associated
-