Class DialogWithToolbarComponent<M extends IModel,P extends IDialogParametrization>

All Implemented Interfaces:
IComponent<M>, IEventChannel
Direct Known Subclasses:
AllowedIncomingShareRequestTypesDialogComponent, MobileApplicationUrlsDialogComponent, NavigatorTreeDialogComponent, SuppressionSettingsDialogComponent, WebSocketClientHeadersDialogComponent

public abstract class DialogWithToolbarComponent<M extends IModel,P extends IDialogParametrization> extends DialogComponent<M,P>
Dialog component with toolbar.
  • Constructor Details

    • DialogWithToolbarComponent

      public DialogWithToolbarComponent(P dialogParametrization)
      Creates a new dialog component.
      Parameters:
      dialogParametrization - the dialog parametrization, cannot be null
  • Method Details

    • createComponents

      protected void createComponents()
      Description copied from class: Component
      Creates the child components of this component. Override it to fill a component with a child components.

      Method can be called multiple times.

      Overrides:
      createComponents in class Component<M extends IModel,P extends IDialogParametrization>
    • disposeViewModels

      protected void disposeViewModels()
      Description copied from class: Component
      Disposes the view models of this component. Override it to do some additional disposal operations specific to a component.
      Overrides:
      disposeViewModels in class DialogComponent<M extends IModel,P extends IDialogParametrization>
    • refreshToolBarItems

      protected void refreshToolBarItems()
      Refreshes toolbar items.
    • registerToolBarItemHandler

      protected void registerToolBarItemHandler(ToolBarItemViewModel toolBarItem, IToolBarItemHandler handler)
      Registers toolbar item handler.
      Parameters:
      toolBarItem - the toolbar item, cannot be null
      handler - the handler, cannot be null
    • registerToolBarItemRefresher

      protected void registerToolBarItemRefresher(ToolBarItemViewModel toolBarItem, IToolBarItemRefresher refresher)
      Registers toolbar item refresher.
      Parameters:
      toolBarItem - the toolbar item, cannot be null
      refresher - the refresher, cannot be null
    • createToolBarItem

      protected ToolBarItemViewModel createToolBarItem(String tooltip, org.eclipse.swt.graphics.Image image, int style)
      Creates toolbar item.
      Parameters:
      tooltip - the tooltip, can be null
      image - the image, can be null
      style - the style
      Returns:
      the toolbar item, cannot be null
    • createToolBarComponentLayoutData

      protected IAefLayoutData createToolBarComponentLayoutData()
      Creates Aef layout data for toolbar component.
      Returns:
      the Aef layout data, cannot be null
    • createToolBarItems

      protected abstract Collection<ToolBarItemViewModel> createToolBarItems()
      Creates toolbar items.
      Returns:
      the collection toolbar items, cannot be null