Class ActionWorkItemPlugin
- java.lang.Object
-
- org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.BaseDecisionTableColumnPlugin
-
- org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.ActionWorkItemPlugin
-
- All Implemented Interfaces:
HasAdditionalInfoPage,HasWorkItemPage,DecisionTableColumnPlugin
@Dependent public class ActionWorkItemPlugin extends BaseDecisionTableColumnPlugin implements HasWorkItemPage, HasAdditionalInfoPage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.DecisionTableColumnPlugin
DecisionTableColumnPlugin.Type
-
-
Field Summary
-
Fields inherited from class org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.BaseDecisionTableColumnPlugin
presenter, wizard
-
Fields inherited from interface org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.DecisionTableColumnPlugin
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description ActionWorkItemPlugin(AdditionalInfoPage<ActionWorkItemPlugin> additionalInfoPage, WorkItemPage workItemPage, javax.enterprise.event.Event<org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent> changeEvent, org.jboss.errai.ui.client.local.spi.TranslationService translationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemCol52editingCol()voidforEachWorkItem(BiConsumer<String,String> biConsumer)BooleangenerateColumn()Creates the column when the Wizard completes.Set<String>getAlreadyUsedColumnHeaders()StringgetHeader()List<org.uberfire.ext.widgets.core.client.wizards.WizardPage>getPages()Retrieves the list of subsequent pages required for the "Type" selected in the first page of the Wizard.StringgetTitle()Retrieves the text that will be shown to Users in the "Type Selection List" on the first page of the Wizard.DecisionTableColumnPlugin.TypegetType()Retrieves the plugin type.StringgetWorkItem()org.drools.workbench.models.datamodel.workitems.PortableWorkDefinitiongetWorkItemDefinition()voidinit(NewGuidedDecisionTableColumnWizard wizard)Sets the plugin up with the wizard instance.booleanisHideColumn()booleanisLogicallyInsert()booleanisUpdateEngine()BooleanisWorkItemSet()voidsetHeader(String header)voidsetHideColumn(boolean hideColumn)voidsetInsertLogical(Boolean value)voidsetUpdate(Boolean value)voidsetWorkItem(String workItem)voidsetWorkItemPageAsCompleted()booleanshowLogicallyInsert()booleanshowUpdateEngineWithChanges()-
Methods inherited from class org.drools.workbench.screens.guided.dtable.client.wizard.column.plugins.commons.BaseDecisionTableColumnPlugin
fireChangeEvent, getIdentifier, getOriginalColumnConfig52, getOriginalPattern52, getPresenter, isNewColumn, onClose, setOriginalColumnConfig52, setOriginalPattern52, translate
-
-
-
-
Constructor Detail
-
ActionWorkItemPlugin
@Inject public ActionWorkItemPlugin(AdditionalInfoPage<ActionWorkItemPlugin> additionalInfoPage, WorkItemPage workItemPage, javax.enterprise.event.Event<org.uberfire.ext.widgets.core.client.wizards.WizardPageStatusChangeEvent> changeEvent, org.jboss.errai.ui.client.local.spi.TranslationService translationService)
-
-
Method Detail
-
getTitle
public String getTitle()
Description copied from interface:DecisionTableColumnPluginRetrieves the text that will be shown to Users in the "Type Selection List" on the first page of the Wizard.- Specified by:
getTitlein interfaceDecisionTableColumnPlugin
-
getPages
public List<org.uberfire.ext.widgets.core.client.wizards.WizardPage> getPages()
Description copied from interface:DecisionTableColumnPluginRetrieves the list of subsequent pages required for the "Type" selected in the first page of the Wizard.- Specified by:
getPagesin interfaceDecisionTableColumnPlugin
-
init
public void init(NewGuidedDecisionTableColumnWizard wizard)
Description copied from interface:DecisionTableColumnPluginSets the plugin up with the wizard instance.- Specified by:
initin interfaceDecisionTableColumnPlugin- Overrides:
initin classBaseDecisionTableColumnPlugin- Parameters:
wizard- Has the presenter which represents the active decision table. Must not be null.
-
getWorkItem
public String getWorkItem()
- Specified by:
getWorkItemin interfaceHasWorkItemPage
-
setWorkItem
public void setWorkItem(String workItem)
- Specified by:
setWorkItemin interfaceHasWorkItemPage
-
editingCol
public org.drools.workbench.models.guided.dtable.shared.model.ActionWorkItemCol52 editingCol()
- Specified by:
editingColin interfaceHasAdditionalInfoPage- Specified by:
editingColin interfaceHasWorkItemPage
-
getHeader
public String getHeader()
- Specified by:
getHeaderin interfaceHasAdditionalInfoPage
-
setHeader
public void setHeader(String header)
- Specified by:
setHeaderin interfaceHasAdditionalInfoPage
-
getAlreadyUsedColumnHeaders
public Set<String> getAlreadyUsedColumnHeaders()
- Specified by:
getAlreadyUsedColumnHeadersin interfaceHasAdditionalInfoPage
-
isWorkItemSet
public Boolean isWorkItemSet()
- Specified by:
isWorkItemSetin interfaceHasWorkItemPage
-
getWorkItemDefinition
public org.drools.workbench.models.datamodel.workitems.PortableWorkDefinition getWorkItemDefinition()
- Specified by:
getWorkItemDefinitionin interfaceHasWorkItemPage
-
forEachWorkItem
public void forEachWorkItem(BiConsumer<String,String> biConsumer)
- Specified by:
forEachWorkItemin interfaceHasWorkItemPage
-
setWorkItemPageAsCompleted
public void setWorkItemPageAsCompleted()
- Specified by:
setWorkItemPageAsCompletedin interfaceHasWorkItemPage
-
isHideColumn
public boolean isHideColumn()
- Specified by:
isHideColumnin interfaceHasAdditionalInfoPage
-
setHideColumn
public void setHideColumn(boolean hideColumn)
- Specified by:
setHideColumnin interfaceHasAdditionalInfoPage
-
setInsertLogical
public void setInsertLogical(Boolean value)
- Specified by:
setInsertLogicalin interfaceHasAdditionalInfoPage
-
setUpdate
public void setUpdate(Boolean value)
- Specified by:
setUpdatein interfaceHasAdditionalInfoPage
-
showUpdateEngineWithChanges
public boolean showUpdateEngineWithChanges()
- Specified by:
showUpdateEngineWithChangesin interfaceHasAdditionalInfoPage
-
showLogicallyInsert
public boolean showLogicallyInsert()
- Specified by:
showLogicallyInsertin interfaceHasAdditionalInfoPage
-
isLogicallyInsert
public boolean isLogicallyInsert()
- Specified by:
isLogicallyInsertin interfaceHasAdditionalInfoPage
-
isUpdateEngine
public boolean isUpdateEngine()
- Specified by:
isUpdateEnginein interfaceHasAdditionalInfoPage
-
generateColumn
public Boolean generateColumn()
Description copied from interface:DecisionTableColumnPluginCreates the column when the Wizard completes.- Specified by:
generateColumnin interfaceDecisionTableColumnPlugin- Returns:
- 'true' when the Wizard was successful, otherwise 'false'.
-
getType
public DecisionTableColumnPlugin.Type getType()
Description copied from interface:DecisionTableColumnPluginRetrieves the plugin type.- Specified by:
getTypein interfaceDecisionTableColumnPlugin- Returns:
- A enum representing the Type.
-
-