@Test public void testDoSetValue() { view.doSetValue(VARIABLES, true, false); verify(view, times(0)).initView(); view.doSetValue(VARIABLES, true, true); verify(view, times(1)).initView(); }
protected void doSetValue(final String value, final boolean fireEvents, final boolean initializeView) { String oldValue = sVariables; sVariables = value; if (initializeView) { initView(); } if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, sVariables); } setReadOnly(readOnly); }
VariablesEditorWidgetViewImpl extends Composite implements VariablesEditorWidgetView,
                                                                        HasValue<String> { protected void doSetValue(final String value, final boolean fireEvents, final boolean initializeView) { String oldValue = sVariables; sVariables = value; if (initializeView) { initView(); } if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, sVariables); } setReadOnly(readOnly); } }
VariablesEditorWidgetViewImpl extends Composite implements VariablesEditorWidgetView,
                                                                        HasValue<String> { protected void doSetValue(final String value, final boolean fireEvents, final boolean initializeView) { String oldValue = sVariables; sVariables = value; if (initializeView) { initView(); } if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, sVariables); } setReadOnly(readOnly); }  }
VariablesEditorWidgetViewImpl extends Composite implements VariablesEditorWidgetView,
                                                                        HasValue<String> { protected void doSetValue(final String value, final boolean fireEvents, final boolean initializeView) { String oldValue = sVariables; sVariables = value; if (initializeView) { initView(); } if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, sVariables); } setReadOnly(readOnly); }  void setTagsth(TableCellElement tagsth); void setTagsDisabled(boolean tagsDisabled); @Override String getValue(); @Override void setValue(final String value); @Override void setValue(final String value,
                         final boolean fireEvents); @Override void doSave(); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); boolean isDuplicateName(final String name); @Override void init(final Presenter presenter); @Override void setReadOnly(final boolean readOnly); @Override int getVariableRowsCount(); @Override void setTableDisplayStyle(); @Override void setNoneDisplayStyle(); @Override void setVariableRows(final List<VariableRow> rows); @Override List<VariableRow> getVariableRows(); @Override VariableListItemWidgetView getVariableWidget(final int index); @Override void setVariablesDataTypes(final ListBoxValues dataTypeListBoxValues); @EventHandler("addVarButton") void handleAddVarButton(final ClickEvent e); void removeVariable(final VariableRow variableRow); @Override void setTagsNotEnabled(); }
VariablesEditorWidgetViewImpl extends Composite implements VariablesEditorWidgetView,
                                                                        HasValue<String> { protected void doSetValue(final String value, final boolean fireEvents, final boolean initializeView) { String oldValue = sVariables; sVariables = value; if (initializeView) { initView(); } if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, sVariables); } setReadOnly(readOnly); }  void setTagsth(TableCellElement tagsth); void setTagsDisabled(boolean tagsDisabled); @Override String getValue(); @Override void setValue(final String value); @Override void setValue(final String value,
                         final boolean fireEvents); @Override void doSave(); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); boolean isDuplicateName(final String name); @Override void init(final Presenter presenter); @Override void setReadOnly(final boolean readOnly); @Override int getVariableRowsCount(); @Override void setTableDisplayStyle(); @Override void setNoneDisplayStyle(); @Override void setVariableRows(final List<VariableRow> rows); @Override List<VariableRow> getVariableRows(); @Override VariableListItemWidgetView getVariableWidget(final int index); @Override void setVariablesDataTypes(final ListBoxValues dataTypeListBoxValues); @EventHandler("addVarButton") void handleAddVarButton(final ClickEvent e); void removeVariable(final VariableRow variableRow); @Override void setTagsNotEnabled();  }