@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
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 ScenarioCommandRegistry |
scenarioCommandRegistry |
protected ScenarioSimulationEditorPresenter |
scenarioSimulationEditorPresenter |
| Constructor and Description |
|---|
ScenarioSimulationEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commonExecution(AbstractScenarioSimulationCommand command,
boolean focusGridAfterExecution)
Common method to execute the given
Command inside the given ScenarioSimulationContext
If successful, it adds the command to the ScenarioCommandRegistry, otherwise it fire a new ScenarioNotificationEvent
with error details |
protected void |
commonNotifyError(org.kie.workbench.common.command.client.CommandResult<ScenarioSimulationViolation> status,
String operation) |
void |
onEvent(AppendColumnEvent event) |
void |
onEvent(AppendRowEvent event) |
void |
onEvent(DeleteColumnEvent event) |
void |
onEvent(DeleteRowEvent event) |
void |
onEvent(DisableTestToolsEvent event) |
void |
onEvent(DuplicateInstanceEvent event) |
void |
onEvent(DuplicateRowEvent event) |
void |
onEvent(EnableTestToolsEvent event) |
void |
onEvent(ImportEvent event) |
void |
onEvent(InsertColumnEvent event) |
void |
onEvent(InsertRowEvent event) |
void |
onEvent(PrependColumnEvent event) |
void |
onEvent(PrependRowEvent event) |
void |
onEvent(RedoEvent event) |
void |
onEvent(ReloadTestToolsEvent event) |
void |
onEvent(RunSingleScenarioEvent event) |
void |
onEvent(ScenarioGridReloadEvent event) |
void |
onEvent(ScenarioNotificationEvent event) |
void |
onEvent(SetGridCellValueEvent event) |
void |
onEvent(SetHeaderCellValueEvent event) |
void |
onEvent(SetInstanceHeaderEvent event) |
void |
onEvent(SetPropertyHeaderEvent event) |
void |
onEvent(UndoEvent event) |
void |
onEvent(UnsupportedDMNEvent event) |
protected void |
registerHandlers() |
void |
setConfirmPopupPresenter(ConfirmPopupPresenter confirmPopupPresenter) |
void |
setContext(ScenarioSimulationContext context) |
void |
setDeletePopupPresenter(DeletePopupPresenter deletePopupPresenter) |
void |
setEventBus(com.google.gwt.event.shared.EventBus eventBus) |
void |
setFileUploadPopupPresenter(FileUploadPopupPresenter fileUploadPopupPresenter) |
void |
setNotificationEvent(javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent) |
void |
setPreserveDeletePopupPresenter(PreserveDeletePopupPresenter preserveDeletePopupPresenter) |
void |
setScenarioCommandManager(ScenarioCommandManager scenarioCommandManager) |
void |
setScenarioCommandRegistry(ScenarioCommandRegistry scenarioCommandRegistry) |
void |
setScenarioSimulationPresenter(ScenarioSimulationEditorPresenter scenarioSimulationEditorPresenter) |
void |
unregisterHandlers() |
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 ScenarioCommandRegistry scenarioCommandRegistry
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 setScenarioCommandRegistry(ScenarioCommandRegistry scenarioCommandRegistry)
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 UnsupportedDMNEventHandlerprotected 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–2019 JBoss by Red Hat. All rights reserved.