Drools Workbench - Guided Decision Table Editor - Client 6.0.0.Beta3

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:
CellTableDropDownDataValueMapProvider, DropDownDataValueMapProvider<com.google.gwt.cell.client.Cell.Context>

public class DecisionTableDropDownManager
extends Object
implements 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, DynamicData data, org.kie.workbench.common.services.datamodel.oracle.PackageDataModelOracle oracle)
           
DecisionTableDropDownManager(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 model, org.kie.workbench.common.services.datamodel.oracle.PackageDataModelOracle oracle)
           
 
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(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.services.datamodel.oracle.PackageDataModelOracle oracle)

DecisionTableDropDownManager

public DecisionTableDropDownManager(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 model,
                                    DynamicData data,
                                    org.kie.workbench.common.services.datamodel.oracle.PackageDataModelOracle oracle)
Method Detail

setData

public void setData(DynamicData data)
Specified by:
setData in interface 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 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 DropDownDataValueMapProvider<com.google.gwt.cell.client.Cell.Context>

Drools Workbench - Guided Decision Table Editor - Client 6.0.0.Beta3

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