@Test @SuppressWarnings("unchecked") public void testSetValue() { final String value = "value"; constraintEnumeration.setValue(value); verify(clientServicesProxy).parseFEELList(eq(value), any(ServiceCallback.class)); }
@Override public void setValue(final String value) { clientServicesProxy.parseFEELList(value, new ServiceCallback<List<String>>() { @Override public void onSuccess(final List<String> item) { loadConstraintValues(item); executeOnCompleteCallback(); } @Override public void onError(final ClientRuntimeError error) { showWarningMessage(); loadConstraintValues(emptyList()); executeOnCompleteCallback(); } }); }
DataTypeConstraintEnumeration implements DataTypeConstraintComponent { @Override public void setValue(final String value) { clientServicesProxy.parseFEELList(value, new ServiceCallback<List<String>>() { @Override public void onSuccess(final List<String> item) { loadConstraintValues(item); executeOnCompleteCallback(); } @Override public void onError(final ClientRuntimeError error) { showWarningMessage(); loadConstraintValues(emptyList()); executeOnCompleteCallback(); } }); } }
DataTypeConstraintEnumeration implements DataTypeConstraintComponent { @Override public void setValue(final String value) { clientServicesProxy.parseFEELList(value, new ServiceCallback<List<String>>() { @Override public void onSuccess(final List<String> item) { loadConstraintValues(item); executeOnCompleteCallback(); } @Override public void onError(final ClientRuntimeError error) { showWarningMessage(); loadConstraintValues(emptyList()); executeOnCompleteCallback(); } }); } @Inject  DataTypeConstraintEnumeration(final View view,
                                         final DMNClientServicesProxy clientServicesProxy,
                                         final ScrollHelper scrollHelper,
                                         final Event<DataTypeConstraintParserWarningEvent> parserWarningEvent,
                                         final ManagedInstance<DataTypeConstraintEnumerationItem> enumerationItemInstances); }
DataTypeConstraintEnumeration implements DataTypeConstraintComponent { @Override public void setValue(final String value) { clientServicesProxy.parseFEELList(value, new ServiceCallback<List<String>>() { @Override public void onSuccess(final List<String> item) { loadConstraintValues(item); executeOnCompleteCallback(); } @Override public void onError(final ClientRuntimeError error) { showWarningMessage(); loadConstraintValues(emptyList()); executeOnCompleteCallback(); } }); } @Inject  DataTypeConstraintEnumeration(final View view,
                                         final DMNClientServicesProxy clientServicesProxy,
                                         final ScrollHelper scrollHelper,
                                         final Event<DataTypeConstraintParserWarningEvent> parserWarningEvent,
                                         final ManagedInstance<DataTypeConstraintEnumerationItem> enumerationItemInstances); @Override String getValue(); @Override void setValue(final String value); @Override void setConstraintValueType(final String type); void refreshView(); void refreshView(final Command onCompleteCallback); @Override Element getElement(); void render(); void scrollToPosition(final int position); List<DataTypeConstraintEnumerationItem> getEnumerationItems(); }
DataTypeConstraintEnumeration implements DataTypeConstraintComponent { @Override public void setValue(final String value) { clientServicesProxy.parseFEELList(value, new ServiceCallback<List<String>>() { @Override public void onSuccess(final List<String> item) { loadConstraintValues(item); executeOnCompleteCallback(); } @Override public void onError(final ClientRuntimeError error) { showWarningMessage(); loadConstraintValues(emptyList()); executeOnCompleteCallback(); } }); } @Inject  DataTypeConstraintEnumeration(final View view,
                                         final DMNClientServicesProxy clientServicesProxy,
                                         final ScrollHelper scrollHelper,
                                         final Event<DataTypeConstraintParserWarningEvent> parserWarningEvent,
                                         final ManagedInstance<DataTypeConstraintEnumerationItem> enumerationItemInstances); @Override String getValue(); @Override void setValue(final String value); @Override void setConstraintValueType(final String type); void refreshView(); void refreshView(final Command onCompleteCallback); @Override Element getElement(); void render(); void scrollToPosition(final int position); List<DataTypeConstraintEnumerationItem> getEnumerationItems();  }