@Dependent public class ScenarioSimulationEventHandler extends Object implements AppendColumnEventHandler, AppendRowEventHandler, DeleteColumnEventHandler, DeleteRowEventHandler, DisableTestToolsEventHandler, DuplicateInstanceEventHandler, DuplicateRowEventHandler, EnableTestToolsEventHandler, ImportEventHandler, InsertColumnEventHandler, InsertRowEventHandler, PrependColumnEventHandler, PrependRowEventHandler, RedoEventHandler, ReloadTestToolsEventHandler, RunSingleScenarioEventHandler, ScenarioGridReloadEventHandler, ScenarioNotificationEventHandler, SetGridCellValueEventHandler, SetHeaderCellValueEventHandler, SetInstanceHeaderEventHandler, SetPropertyHeaderEventHandler, UndoEventHandler, UnsupportedDMNEventHandler, UpdateSettingsDataEventHandler, ValidateSimulationEventHandler
Commands.
It follows the GWT standard Event/Handler mechanism
| Modifier and Type | Field and Description |
|---|---|
protected ConfirmPopupPresenter |
confirmPopupPresenter |
protected ScenarioSimulationContext |
context |
protected DeletePopupPresenter |
deletePopupPresenter |
protected com.google.gwt.event.shared.EventBus |
eventBus |
protected FileUploadPopupPresenter |
fileUploadPopupPresenter |
protected List<com.google.gwt.event.shared.HandlerRegistration> |
handlerRegistrationList |
protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> |
notificationEvent |
protected PreserveDeletePopupPresenter |
preserveDeletePopupPresenter |
protected ScenarioCommandManager |
scenarioCommandManager |
protected ScenarioCommandRegistryManager |
scenarioCommandRegistryManager |
protected ScenarioSimulationEditorPresenter |
scenarioSimulationEditorPresenter |
| Constructor and Description |
|---|
ScenarioSimulationEventHandler() |
protected DeletePopupPresenter deletePopupPresenter
protected PreserveDeletePopupPresenter preserveDeletePopupPresenter
protected ConfirmPopupPresenter confirmPopupPresenter
protected FileUploadPopupPresenter fileUploadPopupPresenter
protected com.google.gwt.event.shared.EventBus eventBus
protected List<com.google.gwt.event.shared.HandlerRegistration> handlerRegistrationList
protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent
protected ScenarioSimulationEditorPresenter scenarioSimulationEditorPresenter
protected ScenarioCommandRegistryManager scenarioCommandRegistryManager
protected ScenarioCommandManager scenarioCommandManager
protected ScenarioSimulationContext context
public void setEventBus(com.google.gwt.event.shared.EventBus eventBus)
public void setDeletePopupPresenter(DeletePopupPresenter deletePopupPresenter)
public void setPreserveDeletePopupPresenter(PreserveDeletePopupPresenter preserveDeletePopupPresenter)
public void setConfirmPopupPresenter(ConfirmPopupPresenter confirmPopupPresenter)
public void setFileUploadPopupPresenter(FileUploadPopupPresenter fileUploadPopupPresenter)
public void setNotificationEvent(javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent)
public void setScenarioSimulationPresenter(ScenarioSimulationEditorPresenter scenarioSimulationEditorPresenter)
public void setScenarioCommandRegistryManager(ScenarioCommandRegistryManager scenarioCommandRegistryManager)
public void setScenarioCommandManager(ScenarioCommandManager scenarioCommandManager)
public void setContext(ScenarioSimulationContext context)
@PreDestroy public void unregisterHandlers()
public void onEvent(AppendColumnEvent event)
onEvent in interface AppendColumnEventHandlerpublic void onEvent(AppendRowEvent event)
onEvent in interface AppendRowEventHandlerpublic void onEvent(DeleteColumnEvent event)
onEvent in interface DeleteColumnEventHandlerpublic void onEvent(DeleteRowEvent event)
onEvent in interface DeleteRowEventHandlerpublic void onEvent(DisableTestToolsEvent event)
onEvent in interface DisableTestToolsEventHandlerpublic void onEvent(DuplicateInstanceEvent event)
onEvent in interface DuplicateInstanceEventHandlerpublic void onEvent(DuplicateRowEvent event)
onEvent in interface DuplicateRowEventHandlerpublic void onEvent(EnableTestToolsEvent event)
onEvent in interface EnableTestToolsEventHandlerpublic void onEvent(ImportEvent event)
onEvent in interface ImportEventHandlerpublic void onEvent(InsertColumnEvent event)
onEvent in interface InsertColumnEventHandlerpublic void onEvent(InsertRowEvent event)
onEvent in interface InsertRowEventHandlerpublic void onEvent(PrependColumnEvent event)
onEvent in interface PrependColumnEventHandlerpublic void onEvent(PrependRowEvent event)
onEvent in interface PrependRowEventHandlerpublic void onEvent(RedoEvent event)
onEvent in interface RedoEventHandlerpublic void onEvent(ReloadTestToolsEvent event)
onEvent in interface ReloadTestToolsEventHandlerpublic void onEvent(RunSingleScenarioEvent event)
onEvent in interface RunSingleScenarioEventHandlerpublic void onEvent(ScenarioGridReloadEvent event)
onEvent in interface ScenarioGridReloadEventHandlerpublic void onEvent(ScenarioNotificationEvent event)
onEvent in interface ScenarioNotificationEventHandlerpublic void onEvent(SetGridCellValueEvent event)
onEvent in interface SetGridCellValueEventHandlerpublic void onEvent(SetHeaderCellValueEvent event)
onEvent in interface SetHeaderCellValueEventHandlerpublic void onEvent(SetInstanceHeaderEvent event)
onEvent in interface SetInstanceHeaderEventHandlerpublic void onEvent(SetPropertyHeaderEvent event)
onEvent in interface SetPropertyHeaderEventHandlerpublic void onEvent(UndoEvent event)
onEvent in interface UndoEventHandlerpublic void onEvent(UnsupportedDMNEvent event)
onEvent in interface UnsupportedDMNEventHandlerpublic void onEvent(UpdateSettingsDataEvent updateSettingsDataEvent)
onEvent in interface UpdateSettingsDataEventHandlerpublic void onEvent(ValidateSimulationEvent event)
onEvent in interface ValidateSimulationEventHandlerprotected void commonExecution(AbstractScenarioSimulationCommand command, boolean focusGridAfterExecution)
Command inside the given ScenarioSimulationContext
If successful, it adds the command to the ScenarioCommandRegistry, otherwise it fire a new ScenarioNotificationEvent
with error detailscommand - focusGridAfterExecution - protected void commonNotifyError(org.kie.workbench.common.command.client.CommandResult<ScenarioSimulationViolation> status, String operation)
protected void registerHandlers()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.