Guvnor web application Drools 6.0.0-SNAPSHOT

org.drools.guvnor.client.asseteditor.drools.modeldriven.ui.templates
Class TemplateDropDownManager

java.lang.Object
  extended by org.drools.guvnor.client.asseteditor.drools.modeldriven.ui.templates.TemplateDropDownManager
All Implemented Interfaces:
CellTableDropDownDataValueMapProvider, DropDownDataValueMapProvider<com.google.gwt.cell.client.Cell.Context>

public class TemplateDropDownManager
extends Object
implements CellTableDropDownDataValueMapProvider

A utility class to get the values of all InterpolationVariables 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
TemplateDropDownManager(TemplateModel model, DynamicData data, SuggestionCompletionEngine sce)
           
TemplateDropDownManager(TemplateModel 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

TemplateDropDownManager

public TemplateDropDownManager(TemplateModel model,
                               SuggestionCompletionEngine sce)

TemplateDropDownManager

public TemplateDropDownManager(TemplateModel 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>

Guvnor web application Drools 6.0.0-SNAPSHOT

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