Guvnor web application Drools 6.0.0-SNAPSHOT

org.drools.guvnor.client.widgets.drools.wizards.assets
Class AbstractNewAssetWizard<T extends PortableObject>

java.lang.Object
  extended by org.drools.guvnor.client.widgets.wizards.AbstractWizard<NewAssetWizardContext>
      extended by org.drools.guvnor.client.widgets.drools.wizards.assets.AbstractNewAssetWizard<T>
All Implemented Interfaces:
Wizard
Direct Known Subclasses:
NewGuidedDecisionTableWizard

public abstract class AbstractNewAssetWizard<T extends PortableObject>
extends AbstractWizard<NewAssetWizardContext>

A Wizard representing new assets


Field Summary
 
Fields inherited from class org.drools.guvnor.client.widgets.wizards.AbstractWizard
clientFactory, context, eventBus, presenter
 
Constructor Summary
AbstractNewAssetWizard(ClientFactory clientFactory, com.google.gwt.event.shared.EventBus eventBus, NewAssetWizardContext context, WizardActivityView.Presenter presenter)
           
 
Method Summary
protected  GenericCallback<Path> createCreateAssetCallback(T content)
          Call-back following creation of the new Asset.
protected  void openEditor(Path uuid)
          Open an Asset in its corresponding editor
protected  void save(NewAssetWithContentConfiguration<? extends PortableObject> config, T content)
          Save the asset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.guvnor.client.widgets.wizards.Wizard
complete, getPages, getPageWidget, getPreferredHeight, getPreferredWidth, getTitle, isComplete
 

Constructor Detail

AbstractNewAssetWizard

public AbstractNewAssetWizard(ClientFactory clientFactory,
                              com.google.gwt.event.shared.EventBus eventBus,
                              NewAssetWizardContext context,
                              WizardActivityView.Presenter presenter)
Method Detail

save

protected void save(NewAssetWithContentConfiguration<? extends PortableObject> config,
                    T content)
Save the asset.

Parameters:
config -

createCreateAssetCallback

protected GenericCallback<Path> createCreateAssetCallback(T content)
Call-back following creation of the new Asset. Upon successful creation the new Asset is loaded in order for its content to be updated

Parameters:
content -
Returns:

openEditor

protected void openEditor(Path uuid)
Open an Asset in its corresponding editor

Parameters:
uuid -

Guvnor web application Drools 6.0.0-SNAPSHOT

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