@Test public void setExpression() { collectionEditorViewImplSpy.setExpression("test"); verify(collectionEditorViewImplSpy, times(1)).enableCreateCollectionContainer(eq(false)); verify(expressionElementMock, times(1)).setValue(eq("test")); }
@Override public void setExpression(String expressionValue) { enableCreateCollectionContainer(false); expressionElement.setValue(expressionValue); }
CollectionViewImpl extends FocusWidget implements HasCloseCompositeHandler,
                                                               HasSaveEditorHandler,
                                                               CollectionView { @Override public void setExpression(String expressionValue) { enableCreateCollectionContainer(false); expressionElement.setValue(expressionValue); } }
CollectionViewImpl extends FocusWidget implements HasCloseCompositeHandler,
                                                               HasSaveEditorHandler,
                                                               CollectionView { @Override public void setExpression(String expressionValue) { enableCreateCollectionContainer(false); expressionElement.setValue(expressionValue); } CollectionViewImpl(); }
CollectionViewImpl extends FocusWidget implements HasCloseCompositeHandler,
                                                               HasSaveEditorHandler,
                                                               CollectionView { @Override public void setExpression(String expressionValue) { enableCreateCollectionContainer(false); expressionElement.setValue(expressionValue); } CollectionViewImpl(); @Override void initListStructure(String key, Map<String, String> simplePropertiesMap, Map<String, Map<String, String>> expandablePropertiesMap, ScenarioSimulationModel.Type type); @Override void initMapStructure(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap, ScenarioSimulationModel.Type type); @Override HandlerRegistration addCloseCompositeEventHandler(CloseCompositeEventHandler handler); @Override HandlerRegistration addSaveEditorEventHandler(SaveEditorEventHandler handler); @Override String getValue(); @Override void setValue(String jsonString); @Override boolean isExpressionWidget(); @Override boolean isListWidget(); @Override UListElement getElementsContainer(); @Override HeadingElement getEditorTitle(); @Override SpanElement getPropertyTitle(); @Override String getExpression(); @Override void setExpression(String expressionValue); @EventHandler("createCollectionRadio") void onCreateCollectionClick(ClickEvent clickEvent); @EventHandler("defineCollectionRadio") void onDefineCollectionClick(ClickEvent clickEvent); @EventHandler("closeCollectionEditorButton") void onCloseCollectionEditorButtonClick(ClickEvent clickEvent); @EventHandler("cancelButton") void onCancelButtonClick(ClickEvent clickEvent); @EventHandler("removeButton") void onRemoveButtonClick(ClickEvent clickEvent); @EventHandler("saveButton") void onSaveButtonClick(ClickEvent clickEvent); @EventHandler("addItemButton") void onAddItemButton(ClickEvent clickEvent); @EventHandler("faAngleRight") void onFaAngleRightClick(ClickEvent clickEvent); @Override void toggleRowExpansion(); @Override void updateRowExpansionStatus(boolean isShown); @Override void updateValue(String value); @Override void close(); @Override void setFixedHeight(double value, Style.Unit unit); @Override void enableEditingMode(boolean isEditingMode); }
CollectionViewImpl extends FocusWidget implements HasCloseCompositeHandler,
                                                               HasSaveEditorHandler,
                                                               CollectionView { @Override public void setExpression(String expressionValue) { enableCreateCollectionContainer(false); expressionElement.setValue(expressionValue); } CollectionViewImpl(); @Override void initListStructure(String key, Map<String, String> simplePropertiesMap, Map<String, Map<String, String>> expandablePropertiesMap, ScenarioSimulationModel.Type type); @Override void initMapStructure(String key, Map<String, String> keyPropertyMap, Map<String, String> valuePropertyMap, ScenarioSimulationModel.Type type); @Override HandlerRegistration addCloseCompositeEventHandler(CloseCompositeEventHandler handler); @Override HandlerRegistration addSaveEditorEventHandler(SaveEditorEventHandler handler); @Override String getValue(); @Override void setValue(String jsonString); @Override boolean isExpressionWidget(); @Override boolean isListWidget(); @Override UListElement getElementsContainer(); @Override HeadingElement getEditorTitle(); @Override SpanElement getPropertyTitle(); @Override String getExpression(); @Override void setExpression(String expressionValue); @EventHandler("createCollectionRadio") void onCreateCollectionClick(ClickEvent clickEvent); @EventHandler("defineCollectionRadio") void onDefineCollectionClick(ClickEvent clickEvent); @EventHandler("closeCollectionEditorButton") void onCloseCollectionEditorButtonClick(ClickEvent clickEvent); @EventHandler("cancelButton") void onCancelButtonClick(ClickEvent clickEvent); @EventHandler("removeButton") void onRemoveButtonClick(ClickEvent clickEvent); @EventHandler("saveButton") void onSaveButtonClick(ClickEvent clickEvent); @EventHandler("addItemButton") void onAddItemButton(ClickEvent clickEvent); @EventHandler("faAngleRight") void onFaAngleRightClick(ClickEvent clickEvent); @Override void toggleRowExpansion(); @Override void updateRowExpansionStatus(boolean isShown); @Override void updateValue(String value); @Override void close(); @Override void setFixedHeight(double value, Style.Unit unit); @Override void enableEditingMode(boolean isEditingMode);  }