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

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

public class FactPatternConstraintsPage
extends AbstractGuidedDecisionTableWizardPage
implements FactPatternConstraintsPageView.Presenter, DuplicatePatternsEvent.Handler, FactPatternsDefinedEvent.Handler, ConditionsDefinedEvent.Handler

A page for the guided Decision Table Wizard to define Fact Pattern Constraints


Field Summary
 
Fields inherited from class org.drools.guvnor.client.widgets.wizards.assets.decisiontable.AbstractGuidedDecisionTableWizardPage
constants, content, context, dtable, eventBus, images, sce
 
Constructor Summary
FactPatternConstraintsPage(NewAssetWizardContext context, GuidedDecisionTable52 dtable, com.google.gwt.event.shared.EventBus eventBus, Validator validator)
           
 
Method Summary
 String[] getOperatorCompletions(Pattern52 selectedPattern, ConditionCol52 selectedCondition)
           
 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 onConditionsDefined(ConditionsDefinedEvent event)
           
 void onDuplicatePatterns(DuplicatePatternsEvent event)
           
 void onFactPatternsDefined(FactPatternsDefinedEvent event)
           
 void prepareView()
          Prepare the page before it is displayed with things that can change between page visits
 void selectPattern(Pattern52 pattern)
           
 void setChosenConditions(Pattern52 pattern, List<ConditionCol52> conditions)
           
 
Methods inherited from class org.drools.guvnor.client.widgets.wizards.assets.decisiontable.AbstractGuidedDecisionTableWizardPage
asWidget, getValidator, makeResult, 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.FactPatternConstraintsPageView.Presenter
stateChanged
 

Constructor Detail

FactPatternConstraintsPage

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

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

onFactPatternsDefined

public void onFactPatternsDefined(FactPatternsDefinedEvent event)
Specified by:
onFactPatternsDefined in interface FactPatternsDefinedEvent.Handler

onConditionsDefined

public void onConditionsDefined(ConditionsDefinedEvent event)
Specified by:
onConditionsDefined in interface ConditionsDefinedEvent.Handler

selectPattern

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

setChosenConditions

public void setChosenConditions(Pattern52 pattern,
                                List<ConditionCol52> conditions)
Specified by:
setChosenConditions in interface FactPatternConstraintsPageView.Presenter

getOperatorCompletions

public String[] getOperatorCompletions(Pattern52 selectedPattern,
                                       ConditionCol52 selectedCondition)
Specified by:
getOperatorCompletions in interface FactPatternConstraintsPageView.Presenter


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