org.drools.guvnor.client.widgets.wizards
Class WizardActivity

java.lang.Object
  extended by org.drools.guvnor.client.util.Activity
      extended by org.drools.guvnor.client.widgets.wizards.WizardActivity
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, WizardActivityView.Presenter, WizardPageSelectedEvent.Handler, WizardPageStatusChangeEvent.Handler

public class WizardActivity
extends Activity
implements WizardActivityView.Presenter, WizardPageStatusChangeEvent.Handler, WizardPageSelectedEvent.Handler

The generic "Wizard" container, providing a left-hand side list of Page titles, buttons to navigate the Wizard pages and a mechanism to display different pages of the Wizard.


Constructor Summary
WizardActivity(WizardPlace<?> place, ClientFactory clientFactory)
           
 
Method Summary
 void complete()
          The Wizard has been finished
 void hide()
          Hide the Wizard
 void hideSavingIndicator()
          Hide the indicator that a save operation is in ro
 void onPageSelected(WizardPageSelectedEvent event)
           
 void onStatusChange(WizardPageStatusChangeEvent event)
           
 void pageSelected(int pageNumber)
          A page has been selected from the UI
 void showCheckinError(String message)
          Show a message that a specified error occurred during the save
 void showDuplicateAssetNameError()
          Show a message that the asset is a duplicate and cannot be saved
 void showSavingIndicator()
          Show an indicator that a save operation is in progress
 void showUnspecifiedCheckinError()
          Show a message that an unspecified error occurred during the save
 void start(AcceptItem acceptTabItem, com.google.gwt.event.shared.EventBus eventBus)
           
 
Methods inherited from class org.drools.guvnor.client.util.Activity
mayStop, onStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WizardActivity

public WizardActivity(WizardPlace<?> place,
                      ClientFactory clientFactory)
Method Detail

onStatusChange

public void onStatusChange(WizardPageStatusChangeEvent event)
Specified by:
onStatusChange in interface WizardPageStatusChangeEvent.Handler

onPageSelected

public void onPageSelected(WizardPageSelectedEvent event)
Specified by:
onPageSelected in interface WizardPageSelectedEvent.Handler

start

public void start(AcceptItem acceptTabItem,
                  com.google.gwt.event.shared.EventBus eventBus)
Specified by:
start in class Activity

pageSelected

public void pageSelected(int pageNumber)
Description copied from interface: WizardActivityView.Presenter
A page has been selected from the UI

Specified by:
pageSelected in interface WizardActivityView.Presenter

complete

public void complete()
Description copied from interface: WizardActivityView.Presenter
The Wizard has been finished

Specified by:
complete in interface WizardActivityView.Presenter

showSavingIndicator

public void showSavingIndicator()
Description copied from interface: WizardActivityView.Presenter
Show an indicator that a save operation is in progress

Specified by:
showSavingIndicator in interface WizardActivityView.Presenter

hideSavingIndicator

public void hideSavingIndicator()
Description copied from interface: WizardActivityView.Presenter
Hide the indicator that a save operation is in ro

Specified by:
hideSavingIndicator in interface WizardActivityView.Presenter

showDuplicateAssetNameError

public void showDuplicateAssetNameError()
Description copied from interface: WizardActivityView.Presenter
Show a message that the asset is a duplicate and cannot be saved

Specified by:
showDuplicateAssetNameError in interface WizardActivityView.Presenter

showUnspecifiedCheckinError

public void showUnspecifiedCheckinError()
Description copied from interface: WizardActivityView.Presenter
Show a message that an unspecified error occurred during the save

Specified by:
showUnspecifiedCheckinError in interface WizardActivityView.Presenter

showCheckinError

public void showCheckinError(String message)
Description copied from interface: WizardActivityView.Presenter
Show a message that a specified error occurred during the save

Specified by:
showCheckinError in interface WizardActivityView.Presenter

hide

public void hide()
Description copied from interface: WizardActivityView.Presenter
Hide the Wizard

Specified by:
hide in interface WizardActivityView.Presenter


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