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

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

public class ActionInsertFactFieldsPage
extends AbstractGuidedDecisionTableWizardPage
implements ActionInsertFactFieldsPageView.Presenter, DuplicatePatternsEvent.Handler, ActionInsertFactPatternsDefinedEvent.Handler, ActionInsertFactFieldsDefinedEvent.Handler

A page for the guided Decision Table Wizard to define new Facts and fields. 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
ActionInsertFactFieldsPage(NewAssetWizardContext context, GuidedDecisionTable52 dtable, com.google.gwt.event.shared.EventBus eventBus, Validator validator)
           
 
Method Summary
 void addPattern(ActionInsertFactFieldsPattern pattern)
           
 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 onActionInsertFactFieldsDefined(ActionInsertFactFieldsDefinedEvent event)
           
 void onActionInsertFactPatternsDefined(ActionInsertFactPatternsDefinedEvent event)
           
 void onDuplicatePatterns(DuplicatePatternsEvent event)
           
 void prepareView()
          Prepare the page before it is displayed with things that can change between page visits
 void removePattern(ActionInsertFactFieldsPattern pattern)
           
 void selectPattern(ActionInsertFactFieldsPattern 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.ActionInsertFactFieldsPageView.Presenter
stateChanged
 

Constructor Detail

ActionInsertFactFieldsPage

public ActionInsertFactFieldsPage(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

onActionInsertFactPatternsDefined

public void onActionInsertFactPatternsDefined(ActionInsertFactPatternsDefinedEvent event)
Specified by:
onActionInsertFactPatternsDefined in interface ActionInsertFactPatternsDefinedEvent.Handler

onActionInsertFactFieldsDefined

public void onActionInsertFactFieldsDefined(ActionInsertFactFieldsDefinedEvent event)
Specified by:
onActionInsertFactFieldsDefined in interface ActionInsertFactFieldsDefinedEvent.Handler

addPattern

public void addPattern(ActionInsertFactFieldsPattern pattern)
Specified by:
addPattern in interface ActionInsertFactFieldsPageView.Presenter

removePattern

public void removePattern(ActionInsertFactFieldsPattern pattern)
Specified by:
removePattern in interface ActionInsertFactFieldsPageView.Presenter

selectPattern

public void selectPattern(ActionInsertFactFieldsPattern pattern)
Specified by:
selectPattern in interface ActionInsertFactFieldsPageView.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.