org.drools.guvnor.client.widgets.wizards.assets.decisiontable
Class ActionSetFieldsPage

java.lang.Object
  extended by org.drools.guvnor.client.widgets.wizards.assets.decisiontable.AbstractGuidedDecisionTableWizardPage
      extended by org.drools.guvnor.client.widgets.wizards.assets.decisiontable.ActionSetFieldsPage
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, com.google.gwt.user.client.ui.IsWidget, ActionSetFieldsPageView.Presenter, ActionSetFieldsDefinedEvent.Handler, DuplicatePatternsEvent.Handler, PatternRemovedEvent.Handler, WizardPage

public class ActionSetFieldsPage
extends AbstractGuidedDecisionTableWizardPage
implements ActionSetFieldsPageView.Presenter, PatternRemovedEvent.Handler, DuplicatePatternsEvent.Handler, ActionSetFieldsDefinedEvent.Handler

A page for the guided Decision Table Wizard to define Actions setting fields on previously bound patterns. This page does not use the GuidedDecisionTable model directly; instead maintaining its own Pattern-to-Action associations.


Field Summary
 
Fields inherited from class org.drools.guvnor.client.widgets.wizards.assets.decisiontable.AbstractGuidedDecisionTableWizardPage
constants, content, context, dtable, eventBus, images, sce
 
Constructor Summary
ActionSetFieldsPage(NewAssetWizardContext context, GuidedDecisionTable52 dtable, com.google.gwt.event.shared.EventBus eventBus, Validator validator)
           
 
Method Summary
 String getTitle()
          Page title
 void initialise()
          Initialise the page with things that don't change between page visits
 boolean isComplete()
          Is the page completed
 void makeResult(GuidedDecisionTable52 dtable)
          When the Widget is finished a GuidedDecisionTable52 instance is passed to each page for enrichment.
 void onActionSetFieldsDefined(ActionSetFieldsDefinedEvent event)
           
 void onDuplicatePatterns(DuplicatePatternsEvent event)
           
 void onPatternRemoved(PatternRemovedEvent event)
           
 void prepareView()
          Prepare the page before it is displayed with things that can change between page visits
 void selectPattern(Pattern52 pattern)
           
 
Methods inherited from class org.drools.guvnor.client.widgets.wizards.assets.decisiontable.AbstractGuidedDecisionTableWizardPage
asWidget, getValidator, setSuggestionCompletionEngine, stateChanged
 
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.assets.decisiontable.ActionSetFieldsPageView.Presenter
stateChanged
 

Constructor Detail

ActionSetFieldsPage

public ActionSetFieldsPage(NewAssetWizardContext context,
                           GuidedDecisionTable52 dtable,
                           com.google.gwt.event.shared.EventBus eventBus,
                           Validator validator)
Method Detail

onPatternRemoved

public void onPatternRemoved(PatternRemovedEvent event)
Specified by:
onPatternRemoved in interface PatternRemovedEvent.Handler

getTitle

public String getTitle()
Description copied from interface: WizardPage
Page title

Specified by:
getTitle in interface WizardPage
Returns:

initialise

public void initialise()
Description copied from interface: WizardPage
Initialise the page with things that don't change between page visits

Specified by:
initialise in interface WizardPage

prepareView

public void prepareView()
Description copied from interface: WizardPage
Prepare the page before it is displayed with things that can change between page visits

Specified by:
prepareView in interface WizardPage

isComplete

public boolean isComplete()
Description copied from interface: WizardPage
Is the page completed

Specified by:
isComplete in interface WizardPage
Returns:

onDuplicatePatterns

public void onDuplicatePatterns(DuplicatePatternsEvent event)
Specified by:
onDuplicatePatterns in interface DuplicatePatternsEvent.Handler

onActionSetFieldsDefined

public void onActionSetFieldsDefined(ActionSetFieldsDefinedEvent event)
Specified by:
onActionSetFieldsDefined in interface ActionSetFieldsDefinedEvent.Handler

selectPattern

public void selectPattern(Pattern52 pattern)
Specified by:
selectPattern in interface ActionSetFieldsPageView.Presenter

makeResult

public void makeResult(GuidedDecisionTable52 dtable)
Description copied from class: AbstractGuidedDecisionTableWizardPage
When the Widget is finished a GuidedDecisionTable52 instance is passed to each page for enrichment. Some pages are able to work on this instance directly (i.e. the model is suitable for direct use in the page, such as FactPatternsPage) however others maintain their own representation of the model that must be copied into the GuidedDecisionTable52.

Overrides:
makeResult in class AbstractGuidedDecisionTableWizardPage


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