@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, ValidateSimulationEventHandler
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 |
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 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 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 onEvent(ScenarioGridReloadEvent event)
onEvent
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
public void onEvent(ValidateSimulationEvent event)
onEvent
in interface ValidateSimulationEventHandler
protected 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.