@Dependent public class DriverDefEditor extends org.uberfire.ext.editor.commons.client.BaseEditor<DriverDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata> implements DriverDefEditorView.Presenter
baseView, changeTitleNotification, concurrentDeleteAcceptedEvent, concurrentDeleteIgnoredEvent, concurrentRenameAcceptedEvent, concurrentRenameIgnoredEvent, concurrentUpdateSessionInfo, fileNameValidator, isReadOnly, isValidationRunning, menuBuilder, menuBuilderManagedInstance, menuItems, menus, metadataOriginalHash, notification, originalHash, place, saveAndRenameCommandBuilder, versionRecordManager| Constructor and Description |
|---|
DriverDefEditor(DriverDefEditorView view,
DriverDefMainPanel mainPanel,
DriverDefEditorHelper editorHelper,
PopupsUtil popupsUtil,
org.uberfire.client.mvp.PlaceManager placeManager,
DriverDefType type,
org.uberfire.ext.editor.commons.client.file.popups.SavePopUpPresenter savePopUpPresenter,
org.uberfire.ext.editor.commons.client.file.popups.DeletePopUpPresenter deletePopUpPresenter,
org.jboss.errai.common.client.api.Caller<DriverDefEditorService> editorService,
org.jboss.errai.common.client.api.Caller<DataSourceRuntimeManagerClientService> dataSourceManagerClient) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_save()
Performs the formal save of the driver.
|
protected void |
delete(org.uberfire.backend.vfs.ObservablePath currentPath)
Performs the formal delete of the driver.
|
protected void |
executeSafeUpdateCommand(String onDependantsMessageKey,
org.uberfire.mvp.Command defaultCommand,
org.uberfire.mvp.Command yesCommand,
org.uberfire.mvp.Command noCommand)
Checks if current driver has dependant data sources prior to execute an update operation.
|
protected DriverDefEditorContent |
getContent() |
com.google.gwt.user.client.ui.IsWidget |
getTitle() |
String |
getTitleText() |
com.google.gwt.user.client.ui.IsWidget |
getWidget() |
protected void |
loadContent() |
boolean |
mayClose(Integer currentHash) |
void |
onCancel() |
protected void |
onContentLoaded(DriverDefEditorContent editorContent) |
void |
onDelete() |
boolean |
onMayClose() |
void |
onSave() |
void |
onStartup(org.uberfire.backend.vfs.ObservablePath path,
org.uberfire.mvp.PlaceRequest place) |
protected void |
safeDelete(org.uberfire.backend.vfs.ObservablePath currentPath)
Executes a safe deletion of the driver by checking if there are dependant data sources that may be affected by
the change.
|
protected void |
safeSave()
Executes a safe saving of the driver by checking if there are dependant data sources that may be affected by
the change.
|
protected void |
save() |
protected void |
setContent(DriverDefEditorContent editorContent) |
addDownloadMenuItem, buildMenuBar, disableMenuItem, downloadMenuItem, enableMenuItem, getContentSupplier, getCopyServiceCaller, getCopyValidator, getCurrentContentHash, getDeleteServiceCaller, getMetadataSupplier, getPathSupplier, getRenameServiceCaller, getRenameValidator, getSaveAndRename, getSaveAndRenameCommandBuilder, getSaveAndRenameServiceCaller, getSaveSuccessCallback, getValidateCommand, getVersionRecordManager, init, init, init, isDirty, isDirtySupplier, makeMenuBar, onAfterValidate, onBeforeValidate, onRename, onRestore, onSuccess, onValidate, reload, setMetadataOriginalHash, setOriginalHash, showConcurrentUpdatePopup, showVersions@Inject public DriverDefEditor(DriverDefEditorView view, DriverDefMainPanel mainPanel, DriverDefEditorHelper editorHelper, PopupsUtil popupsUtil, org.uberfire.client.mvp.PlaceManager placeManager, DriverDefType type, org.uberfire.ext.editor.commons.client.file.popups.SavePopUpPresenter savePopUpPresenter, org.uberfire.ext.editor.commons.client.file.popups.DeletePopUpPresenter deletePopUpPresenter, org.jboss.errai.common.client.api.Caller<DriverDefEditorService> editorService, org.jboss.errai.common.client.api.Caller<DataSourceRuntimeManagerClientService> dataSourceManagerClient)
public void onStartup(org.uberfire.backend.vfs.ObservablePath path,
org.uberfire.mvp.PlaceRequest place)
public com.google.gwt.user.client.ui.IsWidget getTitle()
getTitle in class org.uberfire.ext.editor.commons.client.BaseEditor<DriverDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>public String getTitleText()
getTitleText in class org.uberfire.ext.editor.commons.client.BaseEditor<DriverDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>public com.google.gwt.user.client.ui.IsWidget getWidget()
@OnMayClose public boolean onMayClose()
protected void loadContent()
loadContent in class org.uberfire.ext.editor.commons.client.BaseEditor<DriverDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>public boolean mayClose(Integer currentHash)
mayClose in class org.uberfire.ext.editor.commons.client.BaseEditor<DriverDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>public void onSave()
onSave in interface DefEditorActionsPanelView.PresenteronSave in class org.uberfire.ext.editor.commons.client.BaseEditor<DriverDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>public void onCancel()
onCancel in interface DefEditorActionsPanelView.Presenterpublic void onDelete()
onDelete in interface DefEditorActionsPanelView.Presenterprotected void save()
save in class org.uberfire.ext.editor.commons.client.BaseEditor<DriverDefEditorContent,org.guvnor.common.services.shared.metadata.model.Metadata>protected void safeSave()
protected void _save()
protected void executeSafeUpdateCommand(String onDependantsMessageKey, org.uberfire.mvp.Command defaultCommand, org.uberfire.mvp.Command yesCommand, org.uberfire.mvp.Command noCommand)
protected void safeDelete(org.uberfire.backend.vfs.ObservablePath currentPath)
protected void delete(org.uberfire.backend.vfs.ObservablePath currentPath)
protected void onContentLoaded(DriverDefEditorContent editorContent)
protected DriverDefEditorContent getContent()
protected void setContent(DriverDefEditorContent editorContent)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.