Class AbstractDiagramEditorMenuItemsBuilder


  • public abstract class AbstractDiagramEditorMenuItemsBuilder
    extends Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.kie.workbench.common.stunner.client.widgets.popups.PopupUtil popupUtil  
      protected org.kie.workbench.common.stunner.core.client.i18n.ClientTranslationService translationService  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.uberfire.workbench.model.menu.MenuItem buildItem​(com.google.gwt.user.client.ui.IsWidget widget)  
      protected Optional<String> getExportLabelToRawFormatIfSupported()  
      org.kie.workbench.common.stunner.client.widgets.popups.PopupUtil getPopupUtil()  
      org.kie.workbench.common.stunner.core.client.i18n.ClientTranslationService getTranslationService()  
      org.uberfire.workbench.model.menu.MenuItem newClearItem​(org.uberfire.mvp.Command command)
      Builds a menu item with a clear icon and executes the given callback.
      org.uberfire.workbench.model.menu.MenuItem newCopyItem​(org.uberfire.mvp.Command command)  
      org.uberfire.workbench.model.menu.MenuItem newCutItem​(org.uberfire.mvp.Command command)  
      org.uberfire.workbench.model.menu.MenuItem newDeleteSelectionItem​(org.uberfire.mvp.Command command)  
      org.uberfire.workbench.model.menu.MenuItem newExportsItem​(org.uberfire.mvp.Command exportPNGCommand, org.uberfire.mvp.Command exportJPGCommand, org.uberfire.mvp.Command exportSVGCommand, org.uberfire.mvp.Command exportPDFCommand, org.uberfire.mvp.Command exportAsRawCommand)  
      org.uberfire.workbench.model.menu.MenuItem newPasteItem​(org.uberfire.mvp.Command command)  
      org.uberfire.workbench.model.menu.MenuItem newRedoItem​(org.uberfire.mvp.Command command)  
      org.uberfire.workbench.model.menu.MenuItem newSwitchGridItem​(org.uberfire.mvp.Command command)  
      org.uberfire.workbench.model.menu.MenuItem newUndoItem​(org.uberfire.mvp.Command command)  
      org.uberfire.workbench.model.menu.MenuItem newValidateItem​(org.uberfire.mvp.Command command)  
      org.uberfire.workbench.model.menu.MenuItem newVisitGraphItem​(org.uberfire.mvp.Command command)  
    • Field Detail

      • translationService

        protected final org.kie.workbench.common.stunner.core.client.i18n.ClientTranslationService translationService
      • popupUtil

        protected final org.kie.workbench.common.stunner.client.widgets.popups.PopupUtil popupUtil
    • Constructor Detail

      • AbstractDiagramEditorMenuItemsBuilder

        protected AbstractDiagramEditorMenuItemsBuilder()
      • AbstractDiagramEditorMenuItemsBuilder

        public AbstractDiagramEditorMenuItemsBuilder​(org.kie.workbench.common.stunner.core.client.i18n.ClientTranslationService translationService,
                                                     org.kie.workbench.common.stunner.client.widgets.popups.PopupUtil popupUtil)
    • Method Detail

      • newVisitGraphItem

        public org.uberfire.workbench.model.menu.MenuItem newVisitGraphItem​(org.uberfire.mvp.Command command)
      • newSwitchGridItem

        public org.uberfire.workbench.model.menu.MenuItem newSwitchGridItem​(org.uberfire.mvp.Command command)
      • newCopyItem

        public org.uberfire.workbench.model.menu.MenuItem newCopyItem​(org.uberfire.mvp.Command command)
      • newPasteItem

        public org.uberfire.workbench.model.menu.MenuItem newPasteItem​(org.uberfire.mvp.Command command)
      • newCutItem

        public org.uberfire.workbench.model.menu.MenuItem newCutItem​(org.uberfire.mvp.Command command)
      • newDeleteSelectionItem

        public org.uberfire.workbench.model.menu.MenuItem newDeleteSelectionItem​(org.uberfire.mvp.Command command)
      • newUndoItem

        public org.uberfire.workbench.model.menu.MenuItem newUndoItem​(org.uberfire.mvp.Command command)
      • newRedoItem

        public org.uberfire.workbench.model.menu.MenuItem newRedoItem​(org.uberfire.mvp.Command command)
      • newExportsItem

        public org.uberfire.workbench.model.menu.MenuItem newExportsItem​(org.uberfire.mvp.Command exportPNGCommand,
                                                                         org.uberfire.mvp.Command exportJPGCommand,
                                                                         org.uberfire.mvp.Command exportSVGCommand,
                                                                         org.uberfire.mvp.Command exportPDFCommand,
                                                                         org.uberfire.mvp.Command exportAsRawCommand)
      • getExportLabelToRawFormatIfSupported

        protected Optional<String> getExportLabelToRawFormatIfSupported()
      • newValidateItem

        public org.uberfire.workbench.model.menu.MenuItem newValidateItem​(org.uberfire.mvp.Command command)
      • buildItem

        public static org.uberfire.workbench.model.menu.MenuItem buildItem​(com.google.gwt.user.client.ui.IsWidget widget)
      • getTranslationService

        public org.kie.workbench.common.stunner.core.client.i18n.ClientTranslationService getTranslationService()
      • getPopupUtil

        public org.kie.workbench.common.stunner.client.widgets.popups.PopupUtil getPopupUtil()