@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
Command
s.
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 |
Constructor and Description |
---|
ScenarioSimulationEventHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
commonExecution(ScenarioSimulationContext context,
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 |
handle(ScenarioGridReloadEvent event) |
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(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 |
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 ScenarioSimulationContext context
protected ScenarioCommandRegistry scenarioCommandRegistry
protected ScenarioCommandManager scenarioCommandManager
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 setContext(ScenarioSimulationContext context)
public void setScenarioCommandRegistry(ScenarioCommandRegistry scenarioCommandRegistry)
public void setScenarioCommandManager(ScenarioCommandManager scenarioCommandManager)
@PreDestroy public void unregisterHandlers()
public void onEvent(AppendColumnEvent event)
onEvent
in interface AppendColumnEventHandler
public void onEvent(AppendRowEvent event)
onEvent
in interface AppendRowEventHandler
public void onEvent(DeleteColumnEvent event)
onEvent
in interface DeleteColumnEventHandler
public void onEvent(DeleteRowEvent event)
onEvent
in interface DeleteRowEventHandler
public void onEvent(DisableTestToolsEvent event)
onEvent
in interface DisableTestToolsEventHandler
public void onEvent(DuplicateInstanceEvent event)
onEvent
in interface DuplicateInstanceEventHandler
public void onEvent(DuplicateRowEvent event)
onEvent
in interface DuplicateRowEventHandler
public void onEvent(EnableTestToolsEvent event)
onEvent
in interface EnableTestToolsEventHandler
public void onEvent(ImportEvent event)
onEvent
in interface ImportEventHandler
public void onEvent(InsertColumnEvent event)
onEvent
in interface InsertColumnEventHandler
public void onEvent(InsertRowEvent event)
onEvent
in interface InsertRowEventHandler
public void onEvent(PrependColumnEvent event)
onEvent
in interface PrependColumnEventHandler
public void onEvent(PrependRowEvent event)
onEvent
in interface PrependRowEventHandler
public void onEvent(RedoEvent event)
onEvent
in interface RedoEventHandler
public void onEvent(ReloadTestToolsEvent event)
onEvent
in interface ReloadTestToolsEventHandler
public void onEvent(RunSingleScenarioEvent event)
onEvent
in interface RunSingleScenarioEventHandler
public void handle(ScenarioGridReloadEvent event)
handle
in interface ScenarioGridReloadEventHandler
public void onEvent(ScenarioNotificationEvent event)
onEvent
in interface ScenarioNotificationEventHandler
public void onEvent(SetGridCellValueEvent event)
onEvent
in interface SetGridCellValueEventHandler
public void onEvent(SetHeaderCellValueEvent event)
onEvent
in interface SetHeaderCellValueEventHandler
public void onEvent(SetInstanceHeaderEvent event)
onEvent
in interface SetInstanceHeaderEventHandler
public void onEvent(SetPropertyHeaderEvent event)
onEvent
in interface SetPropertyHeaderEventHandler
public void onEvent(UndoEvent event)
onEvent
in interface UndoEventHandler
public void onEvent(UnsupportedDMNEvent event)
onEvent
in interface UnsupportedDMNEventHandler
protected void commonExecution(ScenarioSimulationContext context, 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 detailscontext
- command
- 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.