Drools Workbench - Guided Decision Table Editor - Client 6.2.0.CR2

org.drools.workbench.screens.guided.dtable.client.widget.table
Class DecisionTableDropDownManager

java.lang.Object
  extended by org.drools.workbench.screens.guided.dtable.client.widget.table.DecisionTableDropDownManager
All Implemented Interfaces:
org.kie.workbench.common.widgets.decoratedgrid.client.widget.CellTableDropDownDataValueMapProvider, org.kie.workbench.common.widgets.decoratedgrid.client.widget.DropDownDataValueMapProvider<com.google.gwt.cell.client.Cell.Context>

public class DecisionTableDropDownManager
extends Object
implements org.kie.workbench.common.widgets.decoratedgrid.client.widget.CellTableDropDownDataValueMapProvider

A utility class to get the values of all Constraints\Actions in the scope of a Template Key to drive dependent enumerations. A value is in scope if it is on a Constraint or Action on the same Pattern of the base column.


Constructor Summary
DecisionTableDropDownManager(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 model, org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle)
           
DecisionTableDropDownManager(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 model, org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle, org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.DynamicData data)
           
 
Method Summary
 Map<String,String> getCurrentValueMap(com.google.gwt.cell.client.Cell.Context context)
          Create a map of Field Values keyed on Field Names used by SuggestionCompletionEngine.getEnums(String, String, Map) to drive dependent enumerations.
 Set<Integer> getDependentColumnIndexes(com.google.gwt.cell.client.Cell.Context context)
           
 void setData(org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.DynamicData data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecisionTableDropDownManager

public DecisionTableDropDownManager(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 model,
                                    org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle)

DecisionTableDropDownManager

public DecisionTableDropDownManager(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 model,
                                    org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle,
                                    org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.DynamicData data)
Method Detail

setData

public void setData(org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.DynamicData data)
Specified by:
setData in interface org.kie.workbench.common.widgets.decoratedgrid.client.widget.CellTableDropDownDataValueMapProvider

getCurrentValueMap

public Map<String,String> getCurrentValueMap(com.google.gwt.cell.client.Cell.Context context)
Create a map of Field Values keyed on Field Names used by SuggestionCompletionEngine.getEnums(String, String, Map) to drive dependent enumerations.

Specified by:
getCurrentValueMap in interface org.kie.workbench.common.widgets.decoratedgrid.client.widget.DropDownDataValueMapProvider<com.google.gwt.cell.client.Cell.Context>
Parameters:
context - The Context of the cell being edited containing physical coordinate in the data-space.

getDependentColumnIndexes

public Set<Integer> getDependentColumnIndexes(com.google.gwt.cell.client.Cell.Context context)
Specified by:
getDependentColumnIndexes in interface org.kie.workbench.common.widgets.decoratedgrid.client.widget.DropDownDataValueMapProvider<com.google.gwt.cell.client.Cell.Context>

Drools Workbench - Guided Decision Table Editor - Client 6.2.0.CR2

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