Class PerspectiveEditorPresenter


  • @Dependent
    public class PerspectiveEditorPresenter
    extends org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ID  
      • Fields inherited from class org.uberfire.ext.editor.commons.client.BaseEditor

        baseView, changeTitleNotification, concurrentChangePopup, concurrentDeleteAcceptedEvent, concurrentDeleteIgnoredEvent, concurrentRenameAcceptedEvent, concurrentRenameIgnoredEvent, concurrentUpdateSessionInfo, deletePopUpPresenter, fileNameValidator, isReadOnly, isValidationRunning, makeMenuBarPromise, menuBuilder, menuBuilderManagedInstance, menuItems, menus, metadataOriginalHash, notification, originalHash, place, placeManager, promises, saveAndRenameCommandBuilder, saveWithComments, type, versionRecordManager
    • Constructor Detail

      • PerspectiveEditorPresenter

        public PerspectiveEditorPresenter()
    • Method Detail

      • onStartup

        public void onStartup​(org.uberfire.backend.vfs.ObservablePath path,
                              org.uberfire.mvp.PlaceRequest place)
      • onFocus

        @OnFocus
        public void onFocus()
      • onClose

        public void onClose()
      • addMenuItem

        protected void addMenuItem​(List<org.uberfire.ext.editor.commons.client.menu.MenuItems> menuItems,
                                   org.uberfire.ext.editor.commons.client.menu.MenuItems item,
                                   boolean add)
      • initLayoutDragComponentGroups

        public void initLayoutDragComponentGroups()
      • makeMenuBar

        protected elemental2.promise.Promise<Void> makeMenuBar()
        Overrides:
        makeMenuBar in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • onMayClose

        @OnMayClose
        public boolean onMayClose()
      • getTitle

        public com.google.gwt.user.client.ui.IsWidget getTitle()
        Overrides:
        getTitle in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • getTitleText

        public String getTitleText()
        Overrides:
        getTitleText in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • getMenus

        public void getMenus​(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)
        Overrides:
        getMenus in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • loadContent

        protected void loadContent()
        Specified by:
        loadContent in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • getContentSupplier

        protected Supplier<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate> getContentSupplier()
        Overrides:
        getContentSupplier in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • afterLoad

        protected void afterLoad()
      • save

        protected void save()
        Overrides:
        save in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • getCurrentModelHash

        public int getCurrentModelHash()
      • onRename

        protected void onRename()
        Overrides:
        onRename in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • afterRename

        protected void afterRename()
      • getRenameValidator

        public org.uberfire.ext.editor.commons.client.validation.Validator getRenameValidator()
        Overrides:
        getRenameValidator in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • getCopyValidator

        public org.uberfire.ext.editor.commons.client.validation.Validator getCopyValidator()
        Overrides:
        getCopyValidator in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • getDeleteServiceCaller

        protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsDelete> getDeleteServiceCaller()
        Overrides:
        getDeleteServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • getSaveAndRenameServiceCaller

        protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>> getSaveAndRenameServiceCaller()
        Overrides:
        getSaveAndRenameServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • getCopyServiceCaller

        protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsCopy> getCopyServiceCaller()
        Overrides:
        getCopyServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • saveProperty

        public void saveProperty​(String key,
                                 String value)
      • getLayoutProperty

        public String getLayoutProperty​(String key)
      • getAllTargetDivs

        public List<String> getAllTargetDivs()