Drools Workbench - Test Scenario Editor - Client 6.1.1-SNAPSHOT

org.drools.workbench.screens.testscenario.client
Class ScenarioEditorViewImpl

java.lang.Object
  extended by org.drools.workbench.screens.testscenario.client.ScenarioEditorViewImpl
All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget, ScenarioEditorView, ScenarioParentWidget, org.kie.workbench.common.widgets.client.widget.HasBusyIndicator

@Dependent
public class ScenarioEditorViewImpl
extends Object
implements ScenarioEditorView, ScenarioParentWidget


Constructor Summary
ScenarioEditorViewImpl(org.kie.workbench.common.widgets.configresource.client.widget.bound.ImportsWidgetPresenter importsWidget, org.uberfire.client.common.MultiPageEditor multiPage, org.kie.workbench.common.widgets.metadata.client.widget.MetadataWidget metadataWidget, BulkRunTestScenarioEditor bulkRunTestScenarioEditor, org.jboss.errai.common.client.api.Caller<org.guvnor.common.services.shared.metadata.MetadataService> metadataService, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notification, org.kie.workbench.common.widgets.client.widget.BusyIndicatorView busyIndicatorView)
           
 
Method Summary
 com.google.gwt.user.client.ui.Widget asWidget()
           
 org.guvnor.common.services.shared.metadata.model.Metadata getMetadata()
           
 org.drools.workbench.models.testscenarios.shared.Scenario getScenario()
           
 String getTitle(String fileName, String version)
           
 void handleNoSuchFileException()
           
 void hideBusyIndicator()
           
 void renderEditor()
           
 void resetMetadataDirty()
           
 void setContent(org.uberfire.backend.vfs.Path path, boolean isReadOnly, org.drools.workbench.models.testscenarios.shared.Scenario scenario, org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle, org.jboss.errai.common.client.api.Caller<org.kie.workbench.common.services.shared.rulename.RuleNamesService> ruleNameService, org.jboss.errai.common.client.api.Caller<ScenarioTestEditorService> service)
           
 void showBusyIndicator(String message)
           
 void showCanNotSaveReadOnly()
           
 void showSaveSuccessful()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioEditorViewImpl

@Inject
public ScenarioEditorViewImpl(@New
                                     org.kie.workbench.common.widgets.configresource.client.widget.bound.ImportsWidgetPresenter importsWidget,
                                     @New
                                     org.uberfire.client.common.MultiPageEditor multiPage,
                                     @New
                                     org.kie.workbench.common.widgets.metadata.client.widget.MetadataWidget metadataWidget,
                                     @New
                                     BulkRunTestScenarioEditor bulkRunTestScenarioEditor,
                                     org.jboss.errai.common.client.api.Caller<org.guvnor.common.services.shared.metadata.MetadataService> metadataService,
                                     javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notification,
                                     org.kie.workbench.common.widgets.client.widget.BusyIndicatorView busyIndicatorView)
Method Detail

setContent

public void setContent(org.uberfire.backend.vfs.Path path,
                       boolean isReadOnly,
                       org.drools.workbench.models.testscenarios.shared.Scenario scenario,
                       org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle,
                       org.jboss.errai.common.client.api.Caller<org.kie.workbench.common.services.shared.rulename.RuleNamesService> ruleNameService,
                       org.jboss.errai.common.client.api.Caller<ScenarioTestEditorService> service)
Specified by:
setContent in interface ScenarioEditorView

asWidget

public com.google.gwt.user.client.ui.Widget asWidget()
Specified by:
asWidget in interface com.google.gwt.user.client.ui.IsWidget

getTitle

public String getTitle(String fileName,
                       String version)
Specified by:
getTitle in interface ScenarioEditorView

getMetadata

public org.guvnor.common.services.shared.metadata.model.Metadata getMetadata()
Specified by:
getMetadata in interface ScenarioEditorView

resetMetadataDirty

public void resetMetadataDirty()
Specified by:
resetMetadataDirty in interface ScenarioEditorView

renderEditor

public void renderEditor()
Specified by:
renderEditor in interface ScenarioParentWidget

showSaveSuccessful

public void showSaveSuccessful()
Specified by:
showSaveSuccessful in interface ScenarioEditorView

getScenario

public org.drools.workbench.models.testscenarios.shared.Scenario getScenario()

showCanNotSaveReadOnly

public void showCanNotSaveReadOnly()
Specified by:
showCanNotSaveReadOnly in interface ScenarioEditorView

showBusyIndicator

public void showBusyIndicator(String message)
Specified by:
showBusyIndicator in interface org.kie.workbench.common.widgets.client.widget.HasBusyIndicator

hideBusyIndicator

public void hideBusyIndicator()
Specified by:
hideBusyIndicator in interface org.kie.workbench.common.widgets.client.widget.HasBusyIndicator

handleNoSuchFileException

public void handleNoSuchFileException()
Specified by:
handleNoSuchFileException in interface ScenarioEditorView

Drools Workbench - Test Scenario Editor - Client 6.1.1-SNAPSHOT

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.