Search in sources :

Example 1 with ListBoxValues

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);
}
Also used : ListBoxValues(org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues)

Example 2 with ListBoxValues

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);
}
Also used : ListBoxValues(org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues)

Example 3 with ListBoxValues

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);
    }
}
Also used : ListBoxValues(org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues)

Example 4 with ListBoxValues

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);
}
Also used : ListBoxValues(org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues) Test(org.junit.Test)

Example 5 with ListBoxValues

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);
}
Also used : ListBoxValues(org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues) Test(org.junit.Test)

Aggregations

ListBoxValues (org.kie.workbench.common.stunner.bpmn.client.forms.util.ListBoxValues)15 Test (org.junit.Test)7 Mockito.anyString (org.mockito.Mockito.anyString)4