Drools Workbench - Guided Decision Table Editor - Client 6.0.1-SNAPSHOT

org.drools.workbench.screens.guided.dtable.client.wizard.pages
Class ActionInsertFactFieldsPage

java.lang.Object
  extended by org.drools.workbench.screens.guided.dtable.client.wizard.pages.AbstractGuidedDecisionTableWizardPage
      extended by org.drools.workbench.screens.guided.dtable.client.wizard.pages.ActionInsertFactFieldsPage
All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget, ActionInsertFactFieldsPageView.Presenter, org.uberfire.client.wizards.WizardPage

@Dependent
public class ActionInsertFactFieldsPage
extends AbstractGuidedDecisionTableWizardPage
implements ActionInsertFactFieldsPageView.Presenter

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.workbench.screens.guided.dtable.client.wizard.pages.AbstractGuidedDecisionTableWizardPage
cellUtils, content, context, model, modelUtils, NEW_FACT_PREFIX, oracle, validator
 
Constructor Summary
ActionInsertFactFieldsPage()
           
 
Method Summary
 void addPattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)
           
 void assertDefaultValue(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactCol52 selectedAction)
           
 org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52.TableFormat getTableFormat()
           
 String getTitle()
           
 void handleImportAddedEvent(org.kie.workbench.common.widgets.client.datamodel.ImportAddedEvent event)
           
 void handleImportRemovedEvent(org.kie.workbench.common.widgets.client.datamodel.ImportRemovedEvent event)
           
 boolean hasEnums(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactCol52 selectedAction)
           
 void initialise()
           
 void isComplete(org.uberfire.client.callbacks.Callback<Boolean> callback)
           
 void makeResult(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 model)
          When the Widget is finished a GuidedDecisionTable52 instance is passed to each page for enrichment.
 void onActionInsertFactFieldsDefined(ActionInsertFactFieldsDefinedEvent event)
           
 void onDuplicatePatterns(DuplicatePatternsEvent event)
           
 void prepareView()
           
 void removePattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)
           
 void selectPattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)
           
 void stateChanged()
           
 
Methods inherited from class org.drools.workbench.screens.guided.dtable.client.wizard.pages.AbstractGuidedDecisionTableWizardPage
allowEmptyValues, asWidget, getValidator, setContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionInsertFactFieldsPage

public ActionInsertFactFieldsPage()
Method Detail

getTitle

public String getTitle()
Specified by:
getTitle in interface org.uberfire.client.wizards.WizardPage

initialise

public void initialise()
Specified by:
initialise in interface org.uberfire.client.wizards.WizardPage

prepareView

public void prepareView()
Specified by:
prepareView in interface org.uberfire.client.wizards.WizardPage

isComplete

public void isComplete(org.uberfire.client.callbacks.Callback<Boolean> callback)
Specified by:
isComplete in interface org.uberfire.client.wizards.WizardPage

handleImportAddedEvent

public void handleImportAddedEvent(@Observes
                                   org.kie.workbench.common.widgets.client.datamodel.ImportAddedEvent event)

handleImportRemovedEvent

public void handleImportRemovedEvent(@Observes
                                     org.kie.workbench.common.widgets.client.datamodel.ImportRemovedEvent event)

onDuplicatePatterns

public void onDuplicatePatterns(@Observes
                                DuplicatePatternsEvent event)

onActionInsertFactFieldsDefined

public void onActionInsertFactFieldsDefined(@Observes
                                            ActionInsertFactFieldsDefinedEvent event)

addPattern

public void addPattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)
Specified by:
addPattern in interface ActionInsertFactFieldsPageView.Presenter

removePattern

public void removePattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)
Specified by:
removePattern in interface ActionInsertFactFieldsPageView.Presenter

selectPattern

public void selectPattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)
Specified by:
selectPattern in interface ActionInsertFactFieldsPageView.Presenter

makeResult

public void makeResult(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 model)
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 org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52.TableFormat getTableFormat()
Specified by:
getTableFormat in interface ActionInsertFactFieldsPageView.Presenter

hasEnums

public boolean hasEnums(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactCol52 selectedAction)
Specified by:
hasEnums in interface ActionInsertFactFieldsPageView.Presenter

assertDefaultValue

public void assertDefaultValue(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactCol52 selectedAction)
Specified by:
assertDefaultValue in interface ActionInsertFactFieldsPageView.Presenter

stateChanged

public void stateChanged()
Specified by:
stateChanged in interface ActionInsertFactFieldsPageView.Presenter

Drools Workbench - Guided Decision Table Editor - Client 6.0.1-SNAPSHOT

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