Class PerspectiveEditorPresenter
- java.lang.Object
-
- org.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,org.uberfire.ext.editor.commons.file.DefaultMetadata>
-
- org.uberfire.ext.plugin.client.perspective.editor.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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePerspectiveEditorPresenter.View
-
Field Summary
Fields Modifier and Type Field Description static StringID-
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 Summary
Constructors Constructor Description PerspectiveEditorPresenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddMenuItem(List<org.uberfire.ext.editor.commons.client.menu.MenuItems> menuItems, org.uberfire.ext.editor.commons.client.menu.MenuItems item, boolean add)protected voidafterLoad()protected voidafterRename()List<String>getAllTargetDivs()protected Supplier<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate>getContentSupplier()protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsCopy>getCopyServiceCaller()org.uberfire.ext.editor.commons.client.validation.ValidatorgetCopyValidator()intgetCurrentModelHash()protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsDelete>getDeleteServiceCaller()StringgetLayoutProperty(String key)voidgetMenus(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)org.uberfire.ext.editor.commons.client.validation.ValidatorgetRenameValidator()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()com.google.gwt.user.client.ui.IsWidgetgetTitle()StringgetTitleText()org.uberfire.client.mvp.UberView<PerspectiveEditorPresenter>getWidget()voidinitLayoutDragComponentGroups()protected voidloadContent()protected elemental2.promise.Promise<Void>makeMenuBar()voidonClose()voidonFocus()booleanonMayClose()protected voidonRename()voidonStartup(org.uberfire.backend.vfs.ObservablePath path, org.uberfire.mvp.PlaceRequest place)protected voidsave()voidsaveProperty(String key, String value)protected booleanshouldRemoveGroup(PerspectiveEditorComponentGroupProvider group)-
Methods inherited from class org.uberfire.ext.editor.commons.client.BaseEditor
addDownloadMenuItem, buildMenuBar, disableMenuItem, downloadMenuItem, enableMenuItem, getBeforeSaveAndRenameCommand, getCurrentContentHash, getMetadataSupplier, getPathSupplier, getRenameServiceCaller, getSaveAndRename, getSaveAndRenameCommandBuilder, getSaveSuccessCallback, getSaveValidator, getValidateCommand, getVersionRecordManager, init, init, init, isDirty, isDirtySupplier, mayClose, onAfterValidate, onBeforeValidate, onRestore, onSave, onSuccess, onValidate, reload, setMetadataOriginalHash, setOriginalHash, showConcurrentUpdatePopup, showVersions
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
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:
makeMenuBarin classorg.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:
getTitlein classorg.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:
getTitleTextin classorg.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:
getMenusin classorg.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,org.uberfire.ext.editor.commons.file.DefaultMetadata>
-
getWidget
public org.uberfire.client.mvp.UberView<PerspectiveEditorPresenter> getWidget()
-
loadContent
protected void loadContent()
- Specified by:
loadContentin classorg.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:
getContentSupplierin classorg.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:
savein classorg.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:
onRenamein classorg.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:
getRenameValidatorin classorg.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:
getCopyValidatorin classorg.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:
getDeleteServiceCallerin classorg.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:
getSaveAndRenameServiceCallerin classorg.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:
getCopyServiceCallerin classorg.uberfire.ext.editor.commons.client.BaseEditor<org.uberfire.ext.layout.editor.api.editor.LayoutTemplate,org.uberfire.ext.editor.commons.file.DefaultMetadata>
-
shouldRemoveGroup
protected boolean shouldRemoveGroup(PerspectiveEditorComponentGroupProvider group)
-
-