org.drools.guvnor.client.widgets.drools.wizards.assets.decisiontable
Class ActionSetFieldsPage
java.lang.Object
org.drools.guvnor.client.widgets.drools.wizards.assets.decisiontable.AbstractGuidedDecisionTableWizardPage
org.drools.guvnor.client.widgets.drools.wizards.assets.decisiontable.ActionSetFieldsPage
- All Implemented Interfaces:
- com.google.gwt.event.shared.EventHandler, com.google.gwt.user.client.ui.IsWidget, ActionSetFieldsPageView.Presenter, ActionSetFieldsDefinedEvent.Handler, DuplicatePatternsEvent.Handler, PatternRemovedEvent.Handler, WizardPage
public class ActionSetFieldsPage
- extends AbstractGuidedDecisionTableWizardPage
- implements ActionSetFieldsPageView.Presenter, PatternRemovedEvent.Handler, DuplicatePatternsEvent.Handler, ActionSetFieldsDefinedEvent.Handler
A page for the guided Decision Table Wizard to define Actions setting fields
on previously bound patterns. This page does not use the GuidedDecisionTable
model directly; instead maintaining its own Pattern-to-Action associations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionSetFieldsPage
public ActionSetFieldsPage(NewAssetWizardContext context,
GuidedDecisionTable52 dtable,
com.google.gwt.event.shared.EventBus eventBus,
Validator validator)
onPatternRemoved
public void onPatternRemoved(PatternRemovedEvent event)
- Specified by:
onPatternRemoved
in interface PatternRemovedEvent.Handler
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
onActionSetFieldsDefined
public void onActionSetFieldsDefined(ActionSetFieldsDefinedEvent event)
- Specified by:
onActionSetFieldsDefined
in interface ActionSetFieldsDefinedEvent.Handler
selectPattern
public void selectPattern(Pattern52 pattern)
- Specified by:
selectPattern
in interface ActionSetFieldsPageView.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
getTableFormat
public GuidedDecisionTable52.TableFormat getTableFormat()
- Specified by:
getTableFormat
in interface ActionSetFieldsPageView.Presenter
hasEnums
public boolean hasEnums(ActionSetFieldCol52 selectedAction)
- Specified by:
hasEnums
in interface ActionSetFieldsPageView.Presenter
assertDefaultValue
public void assertDefaultValue(Pattern52 selectedPattern,
ActionSetFieldCol52 selectedAction)
- Specified by:
assertDefaultValue
in interface ActionSetFieldsPageView.Presenter
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.