Guvnor web application Drools 6.0.0-SNAPSHOT

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

java.lang.Object
  extended by org.drools.guvnor.client.widgets.drools.wizards.assets.decisiontable.AbstractGuidedDecisionTableWizardPage
      extended by org.drools.guvnor.client.widgets.drools.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.drools.wizards.assets.decisiontable.AbstractGuidedDecisionTableWizardPage
content, context, dtable, eventBus, NEW_FACT_PREFIX, sce, utilities, validator
 
Constructor Summary
ActionSetFieldsPage(NewAssetWizardContext context, GuidedDecisionTable52 dtable, com.google.gwt.event.shared.EventBus eventBus, Validator validator)
           
 
Method Summary
 void assertDefaultValue(Pattern52 selectedPattern, ActionSetFieldCol52 selectedAction)
           
 GuidedDecisionTable52.TableFormat getTableFormat()
           
 String getTitle()
           
 boolean hasEnums(ActionSetFieldCol52 selectedAction)
           
 void initialise()
           
 boolean isComplete()
           
 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()
           
 void selectPattern(Pattern52 pattern)
           
 
Methods inherited from class org.drools.guvnor.client.widgets.drools.wizards.assets.decisiontable.AbstractGuidedDecisionTableWizardPage
allowEmptyValues, 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.drools.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()
Specified by:
getTitle in interface WizardPage

initialise

public void initialise()
Specified by:
initialise in interface WizardPage

prepareView

public void prepareView()
Specified by:
prepareView in interface WizardPage

isComplete

public boolean isComplete()
Specified by:
isComplete in interface WizardPage

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

getTableFormat

public GuidedDecisionTable52.TableFormat getTableFormat()
Specified by:
getTableFormat in interface ActionSetFieldsPageView.Presenter

hasEnums

public boolean hasEnums(ActionSetFieldCol52 selectedAction)
Specified by:
hasEnums in interface ActionSetFieldsPageView.Presenter

assertDefaultValue

public void assertDefaultValue(Pattern52 selectedPattern,
                               ActionSetFieldCol52 selectedAction)
Specified by:
assertDefaultValue in interface ActionSetFieldsPageView.Presenter

Guvnor web application Drools 6.0.0-SNAPSHOT

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