@Test public void setReadOnly() { tested.setReadOnly(true); verify(deleteButton).setEnabled(false); verify(role).setEnabled(false); verify(cardinality).setEnabled(false); }
@Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); role.setEnabled(!readOnly); cardinality.setEnabled(!readOnly); }
RolesListItemWidgetViewImpl implements RolesListItemWidgetView,
                                                    IsElement { @Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); role.setEnabled(!readOnly); cardinality.setEnabled(!readOnly); } }
RolesListItemWidgetViewImpl implements RolesListItemWidgetView,
                                                    IsElement { @Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); role.setEnabled(!readOnly); cardinality.setEnabled(!readOnly); } protected  RolesListItemWidgetViewImpl(); }
RolesListItemWidgetViewImpl implements RolesListItemWidgetView,
                                                    IsElement { @Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); role.setEnabled(!readOnly); cardinality.setEnabled(!readOnly); } protected  RolesListItemWidgetViewImpl(); void setParentWidget(final RolesEditorWidgetView parentWidget); @PostConstruct void init(); @Override VariableType getVariableType(); @Override void setReadOnly(final boolean readOnly); @Override boolean isDuplicateName(final String name); void handleDeleteButton(); @Override void notifyModelChanged(); @Override void setValue(KeyValueRow value); @Override KeyValueRow getValue(); @Override KeyValueRow getModel(); @Override void setModel(KeyValueRow model); }
RolesListItemWidgetViewImpl implements RolesListItemWidgetView,
                                                    IsElement { @Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); role.setEnabled(!readOnly); cardinality.setEnabled(!readOnly); } protected  RolesListItemWidgetViewImpl(); void setParentWidget(final RolesEditorWidgetView parentWidget); @PostConstruct void init(); @Override VariableType getVariableType(); @Override void setReadOnly(final boolean readOnly); @Override boolean isDuplicateName(final String name); void handleDeleteButton(); @Override void notifyModelChanged(); @Override void setValue(KeyValueRow value); @Override KeyValueRow getValue(); @Override KeyValueRow getModel(); @Override void setModel(KeyValueRow model); static final String INVALID_CHARACTERS_MESSAGE; }