use of org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues in project kie-wb-common by kiegroup.
the class ActivityDataIOEditorViewImpl method setPossibleInputAssignmentsDataTypes.
@Override
public void setPossibleInputAssignmentsDataTypes(final List<String> dataTypeDisplayNames) {
ListBoxValues dataTypeListBoxValues = new ListBoxValues(AssignmentListItemWidgetView.CUSTOM_PROMPT, StunnerFormsClientFieldsConstants.INSTANCE.Edit() + " ", presenter.dataTypesTester());
dataTypeListBoxValues.addValues(dataTypeDisplayNames);
inputAssignmentsWidget.setDataTypes(dataTypeListBoxValues);
}
use of org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues in project kie-wb-common by kiegroup.
the class ActivityDataIOEditorViewImpl method setOutputAssignmentsProcessVariables.
@Override
public void setOutputAssignmentsProcessVariables(final List<String> processVariables) {
ListBoxValues processVarListBoxValues = new ListBoxValues(AssignmentListItemWidgetView.CONSTANT_PROMPT, StunnerFormsClientFieldsConstants.INSTANCE.Edit() + " ", presenter.processVarTester());
processVarListBoxValues.addValues(processVariables);
outputAssignmentsWidget.setProcessVariables(processVarListBoxValues);
}
use of org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues in project kie-wb-common by kiegroup.
the class AssignmentListItemWidgetViewImpl method setProcessVariables.
@Override
public void setProcessVariables(final ListBoxValues processVarListBoxValues) {
processVarComboBox.setCurrentTextValue("");
ListBoxValues copyProcessVarListBoxValues = new ListBoxValues(processVarListBoxValues, false);
processVarComboBox.setListBoxValues(copyProcessVarListBoxValues);
String con = getConstant();
// processVar set here because the ListBoxValues must already have been set
if (con != null && !con.isEmpty()) {
String displayValue = processVarComboBox.addCustomValueToListBoxValues(con, "");
processVar.setValue(displayValue);
}
}
use of org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues in project kie-wb-common by kiegroup.
the class ActivityDataIOEditorWidgetTest method testProcessVariables.
@Test
public void testProcessVariables() {
ListBoxValues variables = mock(ListBoxValues.class);
widget.setProcessVariables(variables);
verify(view).getAssignmentWidget(0);
verify(view).getAssignmentWidget(1);
verify(view).getAssignmentWidget(2);
verify(assignWidgetOne).setProcessVariables(variables);
verify(assignWidgetTwo).setProcessVariables(variables);
verify(assignWidgetThree).setProcessVariables(variables);
}
use of org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues in project kie-wb-common by kiegroup.
the class ActivityDataIOEditorWidgetTest method testDataTypes.
@Test
public void testDataTypes() {
ListBoxValues types = mock(ListBoxValues.class);
widget.setDataTypes(types);
verify(view).getAssignmentWidget(0);
verify(view).getAssignmentWidget(1);
verify(view).getAssignmentWidget(2);
verify(assignWidgetOne).setDataTypes(types);
verify(assignWidgetTwo).setDataTypes(types);
verify(assignWidgetThree).setDataTypes(types);
}
Aggregations