@Dependent public class ScenarioSimulationEditorPresenter extends org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTIFIER |
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) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCommonActions(org.kie.workbench.common.widgets.client.menu.FileMenuBuilder fileMenuBuilder) |
protected org.uberfire.client.callbacks.Callback<org.kie.soup.project.datamodel.oracle.ModelField[]> |
fieldCompletionsCallback(String factName,
org.uberfire.client.callbacks.Callback<FactModelTree> aggregatorCallback)
This
Callback will receive ModelField[] from AsyncPackageDataModelOracleFactory.getFieldCompletions(final String,
final Callback<ModelField[]>); build a FactModelTree from them, and send it to the
given Callback<FactModelTree> aggregatorCallback |
protected Supplier<ScenarioSimulationModel> |
getContentSupplier() |
protected FactModelTree |
getFactModelTree(String factName,
org.kie.soup.project.datamodel.oracle.ModelField[] modelFields)
Create a
FactModelTree for a given factName populating it with the given
ModelField[] |
org.uberfire.workbench.model.menu.Menus |
getMenus() |
ScenarioSimulationModel |
getModel() |
com.google.gwt.user.client.ui.IsWidget |
getTitle() |
String |
getTitleText() |
ScenarioSimulationView |
getView() |
com.google.gwt.user.client.ui.IsWidget |
getWidget() |
protected void |
loadContent() |
protected void |
makeMenuBar()
If you want to customize the menu override this method.
|
boolean |
mayClose() |
void |
onClose() |
void |
onPlaceGainFocusEvent(org.uberfire.client.workbench.events.PlaceGainFocusEvent placeGainFocusEvent) |
void |
onPlaceHiddenEvent(org.uberfire.client.workbench.events.PlaceHiddenEvent placeHiddenEvent) |
void |
onRunScenario() |
void |
onStartup(org.uberfire.backend.vfs.ObservablePath path,
org.uberfire.mvp.PlaceRequest place) |
protected void |
registerRightPanelCallback() |
protected void |
save(String commitMessage) |
protected void |
unRegisterRightPanelCallback() |
addCopy, addDelete, addDownloadMenuItem, 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, getCopyServiceCaller, getCopyValidator, getCurrentContentHash, getDeleteServiceCaller, getPathSupplier, getRenameServiceCaller, getSaveAndRename, getSaveAndRenameCommandBuilder, getSaveAndRenameServiceCaller, getSaveSuccessCallback, getValidateCommand, getVersionRecordManager, init, isDirty, isDirtySupplier, onAfterValidate, onBeforeValidate, onRename, onRestore, onSuccess, onValidate, reload, setMetadataOriginalHash, showConcurrentUpdatePopuppublic static final String IDENTIFIER
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)
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 ScenarioSimulationView getView()
public ScenarioSimulationModel getModel()
public void onRunScenario()
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 org.uberfire.client.callbacks.Callback<org.kie.soup.project.datamodel.oracle.ModelField[]> fieldCompletionsCallback(String factName, org.uberfire.client.callbacks.Callback<FactModelTree> aggregatorCallback)
Callback will receive ModelField[] from AsyncPackageDataModelOracleFactory.getFieldCompletions(final String,
final Callback<ModelField[]>); build a FactModelTree from them, and send it to the
given Callback<FactModelTree> aggregatorCallbackfactName - aggregatorCallback - protected FactModelTree getFactModelTree(String factName, org.kie.soup.project.datamodel.oracle.ModelField[] modelFields)
FactModelTree for a given factName populating it with the given
ModelField[]factName - modelFields - Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.