@Test public void testSetReadOnly() { renderer.setReadOnly(true); verify(widget).setEnabled(false); renderer.setReadOnly(false); verify(widget).setEnabled(true); }
@Override protected void setReadOnly(final boolean readOnly) { widget.setEnabled(!readOnly); }
DocumentationLinksFieldRenderer extends FieldRenderer<DocumentationLinksFieldDefinition, DefaultFormGroup> { @Override protected void setReadOnly(final boolean readOnly) { widget.setEnabled(!readOnly); } }
DocumentationLinksFieldRenderer extends FieldRenderer<DocumentationLinksFieldDefinition, DefaultFormGroup> { @Override protected void setReadOnly(final boolean readOnly) { widget.setEnabled(!readOnly); } DocumentationLinksFieldRenderer(); @Inject  DocumentationLinksFieldRenderer(final DocumentationLinksWidget widget); }
DocumentationLinksFieldRenderer extends FieldRenderer<DocumentationLinksFieldDefinition, DefaultFormGroup> { @Override protected void setReadOnly(final boolean readOnly) { widget.setEnabled(!readOnly); } DocumentationLinksFieldRenderer(); @Inject  DocumentationLinksFieldRenderer(final DocumentationLinksWidget widget); @Override void init(final FormRenderingContext renderingContext,
                     final DocumentationLinksFieldDefinition field); @Override String getName(); }
DocumentationLinksFieldRenderer extends FieldRenderer<DocumentationLinksFieldDefinition, DefaultFormGroup> { @Override protected void setReadOnly(final boolean readOnly) { widget.setEnabled(!readOnly); } DocumentationLinksFieldRenderer(); @Inject  DocumentationLinksFieldRenderer(final DocumentationLinksWidget widget); @Override void init(final FormRenderingContext renderingContext,
                     final DocumentationLinksFieldDefinition field); @Override String getName();  }