Class AbstractDiagramEditorMenuItemsBuilder
- java.lang.Object
-
- org.kie.workbench.common.stunner.project.client.editor.AbstractDiagramEditorMenuItemsBuilder
-
public abstract class AbstractDiagramEditorMenuItemsBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.kie.workbench.common.stunner.client.widgets.popups.PopupUtilpopupUtilprotected org.kie.workbench.common.stunner.core.client.i18n.ClientTranslationServicetranslationService
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDiagramEditorMenuItemsBuilder()AbstractDiagramEditorMenuItemsBuilder(org.kie.workbench.common.stunner.core.client.i18n.ClientTranslationService translationService, org.kie.workbench.common.stunner.client.widgets.popups.PopupUtil popupUtil)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.uberfire.workbench.model.menu.MenuItembuildItem(com.google.gwt.user.client.ui.IsWidget widget)protected Optional<String>getExportLabelToRawFormatIfSupported()org.kie.workbench.common.stunner.client.widgets.popups.PopupUtilgetPopupUtil()org.kie.workbench.common.stunner.core.client.i18n.ClientTranslationServicegetTranslationService()org.uberfire.workbench.model.menu.MenuItemnewClearItem(org.uberfire.mvp.Command command)Builds a menu item with a clear icon and executes the given callback.org.uberfire.workbench.model.menu.MenuItemnewCopyItem(org.uberfire.mvp.Command command)org.uberfire.workbench.model.menu.MenuItemnewCutItem(org.uberfire.mvp.Command command)org.uberfire.workbench.model.menu.MenuItemnewDeleteSelectionItem(org.uberfire.mvp.Command command)org.uberfire.workbench.model.menu.MenuItemnewExportsItem(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.MenuItemnewPasteItem(org.uberfire.mvp.Command command)org.uberfire.workbench.model.menu.MenuItemnewRedoItem(org.uberfire.mvp.Command command)org.uberfire.workbench.model.menu.MenuItemnewSwitchGridItem(org.uberfire.mvp.Command command)org.uberfire.workbench.model.menu.MenuItemnewUndoItem(org.uberfire.mvp.Command command)org.uberfire.workbench.model.menu.MenuItemnewValidateItem(org.uberfire.mvp.Command command)org.uberfire.workbench.model.menu.MenuItemnewVisitGraphItem(org.uberfire.mvp.Command command)
-
-
-
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)
-
newClearItem
public 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. Added alert message - the operation cannot be reverted. See org.kie.workbench.common.stunner.core.client.session.command.impl.ClearSessionCommand
-
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()
-
-