Class ActionInsertFactFieldsPage
- java.lang.Object
-
- org.drools.workbench.screens.guided.dtable.client.wizard.table.pages.AbstractGuidedDecisionTableWizardPage
-
- org.drools.workbench.screens.guided.dtable.client.wizard.table.pages.ActionInsertFactFieldsPage
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,ActionInsertFactFieldsPageView.Presenter,org.uberfire.ext.widgets.core.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.table.pages.AbstractGuidedDecisionTableWizardPage
baseFileName, cellUtilities, columnUtilities, content, contextPath, hitPolicy, model, NEW_FACT_PREFIX, oracle, tableFormat, validator
-
-
Constructor Summary
Constructors Constructor Description ActionInsertFactFieldsPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)voidassertDefaultValue(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactCol52 selectedAction)org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52.TableFormatgetTableFormat()StringgetTitle()voidhandleImportAddedEvent(org.kie.workbench.common.widgets.client.datamodel.ImportAddedEvent event)voidhandleImportRemovedEvent(org.kie.workbench.common.widgets.client.datamodel.ImportRemovedEvent event)booleanhasEnums(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactCol52 selectedAction)voidinitialise()voidisComplete(org.uberfire.client.callbacks.Callback<Boolean> callback)voidmakeResult(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.voidonActionInsertFactFieldsDefined(ActionInsertFactFieldsDefinedEvent event)voidonDuplicatePatterns(DuplicatePatternsEvent event)voidprepareView()voidremovePattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)voidselectPattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)voidstateChanged()-
Methods inherited from class org.drools.workbench.screens.guided.dtable.client.wizard.table.pages.AbstractGuidedDecisionTableWizardPage
allowEmptyValues, asWidget, getValidator, setContent
-
-
-
-
Method Detail
-
getTitle
public String getTitle()
- Specified by:
getTitlein interfaceorg.uberfire.ext.widgets.core.client.wizards.WizardPage
-
initialise
public void initialise()
- Specified by:
initialisein interfaceorg.uberfire.ext.widgets.core.client.wizards.WizardPage
-
prepareView
public void prepareView()
- Specified by:
prepareViewin interfaceorg.uberfire.ext.widgets.core.client.wizards.WizardPage
-
isComplete
public void isComplete(org.uberfire.client.callbacks.Callback<Boolean> callback)
- Specified by:
isCompletein interfaceorg.uberfire.ext.widgets.core.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:
addPatternin interfaceActionInsertFactFieldsPageView.Presenter
-
removePattern
public void removePattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)
- Specified by:
removePatternin interfaceActionInsertFactFieldsPageView.Presenter
-
selectPattern
public void selectPattern(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactFieldsPattern pattern)
- Specified by:
selectPatternin interfaceActionInsertFactFieldsPageView.Presenter
-
makeResult
public void makeResult(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 model)
Description copied from class:AbstractGuidedDecisionTableWizardPageWhen 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:
makeResultin classAbstractGuidedDecisionTableWizardPage
-
getTableFormat
public org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52.TableFormat getTableFormat()
- Specified by:
getTableFormatin interfaceActionInsertFactFieldsPageView.Presenter
-
hasEnums
public boolean hasEnums(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactCol52 selectedAction)
- Specified by:
hasEnumsin interfaceActionInsertFactFieldsPageView.Presenter
-
assertDefaultValue
public void assertDefaultValue(org.drools.workbench.models.guided.dtable.shared.model.ActionInsertFactCol52 selectedAction)
- Specified by:
assertDefaultValuein interfaceActionInsertFactFieldsPageView.Presenter
-
stateChanged
public void stateChanged()
- Specified by:
stateChangedin interfaceActionInsertFactFieldsPageView.Presenter
-
-