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

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.FactPatternsPage
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, com.google.gwt.user.client.ui.IsWidget, DuplicatePatternsEvent.Handler, FactPatternsPageView.Presenter, WizardPage

public class FactPatternsPage
extends AbstractGuidedDecisionTableWizardPage
implements FactPatternsPageView.Presenter, DuplicatePatternsEvent.Handler

A page for the guided Decision Table Wizard to define Fact Patterns


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
FactPatternsPage(NewAssetWizardContext context, GuidedDecisionTable52 dtable, com.google.gwt.event.shared.EventBus eventBus, Validator validator)
           
 
Method Summary
 String getTitle()
           
 void initialise()
           
 boolean isComplete()
           
 boolean isPatternEvent(Pattern52 pattern)
           
 void makeResult(GuidedDecisionTable52 dtable)
          When the Widget is finished a GuidedDecisionTable52 instance is passed to each page for enrichment.
 void onDuplicatePatterns(DuplicatePatternsEvent event)
           
 void prepareView()
           
 void setConditionPatterns(List<Pattern52> patterns)
           
 void signalRemovalOfPattern(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.FactPatternsPageView.Presenter
stateChanged
 

Constructor Detail

FactPatternsPage

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

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

isPatternEvent

public boolean isPatternEvent(Pattern52 pattern)
Specified by:
isPatternEvent in interface FactPatternsPageView.Presenter

signalRemovalOfPattern

public void signalRemovalOfPattern(Pattern52 pattern)
Specified by:
signalRemovalOfPattern in interface FactPatternsPageView.Presenter

setConditionPatterns

public void setConditionPatterns(List<Pattern52> patterns)
Specified by:
setConditionPatterns in interface FactPatternsPageView.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-2014 JBoss by Red Hat. All Rights Reserved.