@Dependent public class ScenarioSimulationEditorPresenter extends org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>
| Modifier and Type | Field and Description |
|---|---|
protected ScenarioSimulationContext |
context |
protected DataManagementStrategy |
dataManagementStrategy |
protected com.google.gwt.event.shared.EventBus |
eventBus |
static String |
IDENTIFIER |
protected String |
packageName |
protected org.uberfire.backend.vfs.ObservablePath |
path |
protected ScenarioGridPanel |
scenarioGridPanel |
alertsButtonMenuItemBuilder, assetUpdateValidator, copyPopUpPresenter, deletePopUpPresenter, fileMenuBuilder, kieView, metadata, overviewWidget, projectController, renamePopUpPresenter, savePopUpPresenter, workbenchContextbaseView, changeTitleNotification, concurrentDeleteAcceptedEvent, concurrentDeleteIgnoredEvent, concurrentRenameAcceptedEvent, concurrentRenameIgnoredEvent, concurrentUpdateSessionInfo, fileNameValidator, isReadOnly, isValidationRunning, menuBuilder, menuBuilderManagedInstance, menuItems, menus, metadataOriginalHash, notification, originalHash, place, placeManager, saveAndRenameCommandBuilder, versionRecordManager| Constructor and Description |
|---|
ScenarioSimulationEditorPresenter() |
ScenarioSimulationEditorPresenter(org.jboss.errai.common.client.api.Caller<ScenarioSimulationService> service,
ScenarioSimulationProducer scenarioSimulationProducer,
ScenarioSimulationResourceType type,
org.kie.workbench.common.widgets.configresource.client.widget.bound.ImportsWidgetPresenter importsWidget,
org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracleFactory oracleFactory,
org.uberfire.client.mvp.PlaceManager placeManager,
org.kie.workbench.common.workbench.client.test.TestRunnerReportingScreen testRunnerReportingScreen,
ScenarioSimulationDocksHandler scenarioSimulationDocksHandler,
org.jboss.errai.common.client.api.Caller<DMNTypeService> dmnTypeService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCommonActions(org.kie.workbench.common.widgets.client.menu.FileMenuBuilder fileMenuBuilder) |
void |
addDownloadMenuItem(org.kie.workbench.common.widgets.client.menu.FileMenuBuilder fileMenuBuilder) |
protected void |
clearRightPanelStatus() |
void |
expandToolsDock() |
protected Supplier<ScenarioSimulationModel> |
getContentSupplier() |
protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsCopy> |
getCopyServiceCaller() |
protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsDelete> |
getDeleteServiceCaller() |
protected String |
getJsonModel(ScenarioSimulationModel model) |
org.uberfire.workbench.model.menu.Menus |
getMenus() |
ScenarioSimulationModel |
getModel() |
protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsRename> |
getRenameServiceCaller() |
protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>> |
getSaveAndRenameServiceCaller() |
com.google.gwt.user.client.ui.IsWidget |
getTitle() |
String |
getTitleText() |
ScenarioSimulationView |
getView() |
com.google.gwt.user.client.ui.IsWidget |
getWidget() |
protected boolean |
isDirty() |
protected void |
loadContent() |
protected void |
makeMenuBar()
If you want to customize the menu override this method.
|
boolean |
mayClose() |
void |
onClose() |
protected void |
onDownload(Supplier<org.uberfire.backend.vfs.Path> pathSupplier) |
void |
onPlaceGainFocusEvent(org.uberfire.client.workbench.events.PlaceGainFocusEvent placeGainFocusEvent) |
void |
onPlaceHiddenEvent(org.uberfire.client.workbench.events.PlaceHiddenEvent placeHiddenEvent) |
void |
onRedo() |
void |
onRunScenario() |
void |
onStartup(org.uberfire.backend.vfs.ObservablePath path,
org.uberfire.mvp.PlaceRequest place) |
void |
onUndo() |
protected void |
open(String downloadURL) |
protected void |
populateRightPanel() |
protected org.jboss.errai.common.client.api.RemoteCallback<ScenarioSimulationModel> |
refreshModel() |
protected void |
refreshModelContent(ScenarioSimulationModel newModel) |
protected void |
registerRightPanelCallback() |
void |
reloadRightPanel(boolean disable)
To be called to force right panel reload
|
protected void |
save(String commitMessage) |
void |
setRedoButtonEnabledStatus(boolean enabled) |
void |
setUndoButtonEnabledStatus(boolean enabled) |
protected void |
unRegisterRightPanelCallback() |
addCopy, addDelete, addImportsTab, addPage, addRename, addSave, addSourcePage, buildMenuBar, canUpdateProject, createOriginalHash, getCouldNotGenerateSourceErrorCallback, getMetadataSupplier, getNoSuchFileExceptionErrorCallback, getRenameValidator, getSelectedTabIndex, init, init, init, init, isEditorTabSelected, isOverviewTabSelected, mayClose, mayClose, OnClose, onEditTabSelected, onEditTabUnselected, onOverviewSelected, onRepositoryRemoved, onSave, onSourceTabSelected, resetEditorPages, save, saveAction, selectEditorTab, selectOverviewTab, setOriginalHash, setSelectedTab, showVersions, updateSourceaddDownloadMenuItem, downloadMenuItem, getCopyValidator, getCurrentContentHash, getPathSupplier, getSaveAndRename, getSaveAndRenameCommandBuilder, getSaveSuccessCallback, getValidateCommand, getVersionRecordManager, init, isDirty, isDirtySupplier, onAfterValidate, onBeforeValidate, onRename, onRestore, onSuccess, onValidate, reload, setMetadataOriginalHash, showConcurrentUpdatePopuppublic static final String IDENTIFIER
protected String packageName
protected org.uberfire.backend.vfs.ObservablePath path
protected com.google.gwt.event.shared.EventBus eventBus
protected ScenarioGridPanel scenarioGridPanel
protected DataManagementStrategy dataManagementStrategy
protected ScenarioSimulationContext context
public ScenarioSimulationEditorPresenter()
@Inject public ScenarioSimulationEditorPresenter(org.jboss.errai.common.client.api.Caller<ScenarioSimulationService> service, ScenarioSimulationProducer scenarioSimulationProducer, ScenarioSimulationResourceType type, org.kie.workbench.common.widgets.configresource.client.widget.bound.ImportsWidgetPresenter importsWidget, org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracleFactory oracleFactory, org.uberfire.client.mvp.PlaceManager placeManager, org.kie.workbench.common.workbench.client.test.TestRunnerReportingScreen testRunnerReportingScreen, ScenarioSimulationDocksHandler scenarioSimulationDocksHandler, org.jboss.errai.common.client.api.Caller<DMNTypeService> dmnTypeService)
public void onStartup(org.uberfire.backend.vfs.ObservablePath path,
org.uberfire.mvp.PlaceRequest place)
public void onClose()
@OnMayClose public boolean mayClose()
public String getTitleText()
getTitleText in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>public com.google.gwt.user.client.ui.IsWidget getTitle()
getTitle in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>public com.google.gwt.user.client.ui.IsWidget getWidget()
getWidget in class org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>public org.uberfire.workbench.model.menu.Menus getMenus()
public void onPlaceGainFocusEvent(@Observes
org.uberfire.client.workbench.events.PlaceGainFocusEvent placeGainFocusEvent)
public void onPlaceHiddenEvent(@Observes
org.uberfire.client.workbench.events.PlaceHiddenEvent placeHiddenEvent)
public void expandToolsDock()
public ScenarioSimulationView getView()
public ScenarioSimulationModel getModel()
public void reloadRightPanel(boolean disable)
disable - set this to true to also disable the panelpublic void onRunScenario()
public void onUndo()
public void onRedo()
public void setUndoButtonEnabledStatus(boolean enabled)
public void setRedoButtonEnabledStatus(boolean enabled)
public void addDownloadMenuItem(org.kie.workbench.common.widgets.client.menu.FileMenuBuilder fileMenuBuilder)
addDownloadMenuItem in class org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>protected org.jboss.errai.common.client.api.RemoteCallback<ScenarioSimulationModel> refreshModel()
protected void refreshModelContent(ScenarioSimulationModel newModel)
protected void registerRightPanelCallback()
protected void unRegisterRightPanelCallback()
protected void makeMenuBar()
makeMenuBar in class org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>protected Supplier<ScenarioSimulationModel> getContentSupplier()
getContentSupplier in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected void save(String commitMessage)
save in class org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>protected void addCommonActions(org.kie.workbench.common.widgets.client.menu.FileMenuBuilder fileMenuBuilder)
addCommonActions in class org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>protected void loadContent()
loadContent in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected void onDownload(Supplier<org.uberfire.backend.vfs.Path> pathSupplier)
protected void open(String downloadURL)
protected void populateRightPanel()
protected void clearRightPanelStatus()
protected String getJsonModel(ScenarioSimulationModel model)
protected boolean isDirty()
protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsDelete> getDeleteServiceCaller()
getDeleteServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsRename> getRenameServiceCaller()
getRenameServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsCopy> getCopyServiceCaller()
getCopyServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>> getSaveAndRenameServiceCaller()
getSaveAndRenameServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.