org.drools.workbench.screens.guided.template.client.editor
Class TemplateDropDownManager
java.lang.Object
org.drools.workbench.screens.guided.template.client.editor.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(org.drools.workbench.models.guided.template.shared.TemplateModel model,
DynamicData data,
org.kie.workbench.common.services.datamodel.oracle.PackageDataModelOracle sce)
|
TemplateDropDownManager(org.drools.workbench.models.guided.template.shared.TemplateModel model,
org.kie.workbench.common.services.datamodel.oracle.PackageDataModelOracle sce)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateDropDownManager
public TemplateDropDownManager(org.drools.workbench.models.guided.template.shared.TemplateModel model,
org.kie.workbench.common.services.datamodel.oracle.PackageDataModelOracle sce)
TemplateDropDownManager
public TemplateDropDownManager(org.drools.workbench.models.guided.template.shared.TemplateModel model,
DynamicData data,
org.kie.workbench.common.services.datamodel.oracle.PackageDataModelOracle sce)
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-2013 JBoss by Red Hat. All Rights Reserved.