@Test public void testSetReadOnlyFalse() { view.setReadOnly(false); verify(deleteButton, times(1)).setEnabled(true); verify(dataTypeComboBox, times(1)).setReadOnly(false); verify(name, times(1)).setEnabled(true); }
@Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); dataTypeComboBox.setReadOnly(readOnly); name.setEnabled(!readOnly); }
VariableListItemWidgetViewImpl implements VariableListItemWidgetView,
                                                       ComboBoxView.ModelPresenter { @Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); dataTypeComboBox.setReadOnly(readOnly); name.setEnabled(!readOnly); } }
VariableListItemWidgetViewImpl implements VariableListItemWidgetView,
                                                       ComboBoxView.ModelPresenter { @Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); dataTypeComboBox.setReadOnly(readOnly); name.setEnabled(!readOnly); }  }
VariableListItemWidgetViewImpl implements VariableListItemWidgetView,
                                                       ComboBoxView.ModelPresenter { @Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); dataTypeComboBox.setReadOnly(readOnly); name.setEnabled(!readOnly); }  Set<String> getTagSet(); void setTagSet(Set<String> tagSet); String getPreviousCustomValue(); void setPreviousCustomValue(String previousCustomValue); void setParentWidget(final VariablesEditorWidgetView.Presenter parentWidget); @Override void setTextBoxModelValue(final TextBox textBox,
                                     final String value); @Override void setListBoxModelValue(final ValueListBox<String> listBox,
                                     final String value); @Override String getModelValue(final ValueListBox<String> listBox); @PostConstruct void init(); @Override VariableRow getModel(); @Override void setModel(final VariableRow model); @Override VariableType getVariableType(); @Override String getDataTypeDisplayName(); @Override void setDataTypeDisplayName(final String dataTypeDisplayName); @Override String getCustomDataType(); @Override void setCustomDataType(final String customDataType); @Override void setCustomTags(final List<String> tags); @Override List<String> getCustomTags(); @Override void setDataTypes(final ListBoxValues dataTypeListBoxValues); @Override void setTagTypes(final List<String> tagTypes); @Override void setReadOnly(final boolean readOnly); @EventHandler("deleteButton") void handleDeleteButton(final ClickEvent e); @EventHandler("closeButton") void handleCloseButton(final ClickEvent e); @EventHandler("acceptButton") void handleAcceptButton(final ClickEvent e); @Override void notifyModelChanged(); @Override void setTagsNotEnabled(); }
VariableListItemWidgetViewImpl implements VariableListItemWidgetView,
                                                       ComboBoxView.ModelPresenter { @Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); dataTypeComboBox.setReadOnly(readOnly); name.setEnabled(!readOnly); }  Set<String> getTagSet(); void setTagSet(Set<String> tagSet); String getPreviousCustomValue(); void setPreviousCustomValue(String previousCustomValue); void setParentWidget(final VariablesEditorWidgetView.Presenter parentWidget); @Override void setTextBoxModelValue(final TextBox textBox,
                                     final String value); @Override void setListBoxModelValue(final ValueListBox<String> listBox,
                                     final String value); @Override String getModelValue(final ValueListBox<String> listBox); @PostConstruct void init(); @Override VariableRow getModel(); @Override void setModel(final VariableRow model); @Override VariableType getVariableType(); @Override String getDataTypeDisplayName(); @Override void setDataTypeDisplayName(final String dataTypeDisplayName); @Override String getCustomDataType(); @Override void setCustomDataType(final String customDataType); @Override void setCustomTags(final List<String> tags); @Override List<String> getCustomTags(); @Override void setDataTypes(final ListBoxValues dataTypeListBoxValues); @Override void setTagTypes(final List<String> tagTypes); @Override void setReadOnly(final boolean readOnly); @EventHandler("deleteButton") void handleDeleteButton(final ClickEvent e); @EventHandler("closeButton") void handleCloseButton(final ClickEvent e); @EventHandler("acceptButton") void handleAcceptButton(final ClickEvent e); @Override void notifyModelChanged(); @Override void setTagsNotEnabled();  }