org.drools.guvnor.client.decisiontable.widget
Class DecisionTableDropDownManager

java.lang.Object
  extended by org.drools.guvnor.client.decisiontable.widget.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(GuidedDecisionTable52 model, DynamicData data, SuggestionCompletionEngine sce)
           
DecisionTableDropDownManager(GuidedDecisionTable52 model, SuggestionCompletionEngine sce)
           
 
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(GuidedDecisionTable52 model,
                                    SuggestionCompletionEngine sce)

DecisionTableDropDownManager

public DecisionTableDropDownManager(GuidedDecisionTable52 model,
                                    DynamicData data,
                                    SuggestionCompletionEngine sce)
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>


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