Class DialogWithToolbarComponent<M extends IModel,​P extends IDialogParametrization>

    • Constructor Detail

      • DialogWithToolbarComponent

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

      • 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>
      • 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