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

java.lang.Object
  extended by org.drools.guvnor.client.widgets.drools.wizards.assets.decisiontable.AbstractGuidedDecisionTableWizardPage
All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget, WizardPage
Direct Known Subclasses:
ActionInsertFactFieldsPage, ActionSetFieldsPage, ColumnExpansionPage, FactPatternConstraintsPage, FactPatternsPage, SummaryPage

public abstract class AbstractGuidedDecisionTableWizardPage
extends Object
implements WizardPage

Base page for the guided Decision Table Wizard


Field Summary
protected  com.google.gwt.user.client.ui.SimplePanel content
           
protected  NewAssetWizardContext context
           
protected  GuidedDecisionTable52 dtable
           
protected  com.google.gwt.event.shared.EventBus eventBus
           
protected static String NEW_FACT_PREFIX
           
protected  SuggestionCompletionEngine sce
           
protected  DTCellValueUtilities utilities
           
protected  Validator validator
           
 
Constructor Summary
AbstractGuidedDecisionTableWizardPage(NewAssetWizardContext context, GuidedDecisionTable52 dtable, com.google.gwt.event.shared.EventBus eventBus, Validator validator)
           
 
Method Summary
protected  boolean allowEmptyValues()
          Check whether empty values are permitted
 com.google.gwt.user.client.ui.Widget asWidget()
           
 Validator getValidator()
           
 void makeResult(GuidedDecisionTable52 dtable)
          When the Widget is finished a GuidedDecisionTable52 instance is passed to each page for enrichment.
 void setSuggestionCompletionEngine(SuggestionCompletionEngine sce)
           
 void stateChanged()
          Broadcast a change in state on a page
 
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.WizardPage
getTitle, initialise, isComplete, prepareView
 

Field Detail

NEW_FACT_PREFIX

protected static final String NEW_FACT_PREFIX
See Also:
Constant Field Values

content

protected com.google.gwt.user.client.ui.SimplePanel content

dtable

protected GuidedDecisionTable52 dtable

eventBus

protected com.google.gwt.event.shared.EventBus eventBus

context

protected NewAssetWizardContext context

sce

protected SuggestionCompletionEngine sce

validator

protected Validator validator

utilities

protected DTCellValueUtilities utilities
Constructor Detail

AbstractGuidedDecisionTableWizardPage

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

asWidget

public com.google.gwt.user.client.ui.Widget asWidget()
Specified by:
asWidget in interface com.google.gwt.user.client.ui.IsWidget

setSuggestionCompletionEngine

public void setSuggestionCompletionEngine(SuggestionCompletionEngine sce)

getValidator

public Validator getValidator()

stateChanged

public void stateChanged()
Broadcast a change in state on a page


makeResult

public void makeResult(GuidedDecisionTable52 dtable)
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.

Parameters:
dtable -

allowEmptyValues

protected boolean allowEmptyValues()
Check whether empty values are permitted

Returns:
True if empty values are permitted


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