@Test public void testSetReadOnly() { renderer.setReadOnly(false); verify(textBox).setEnabled(true); renderer.setReadOnly(true); verify(textBox).setEnabled(false); }
@Override protected void setReadOnly(final boolean readOnly) { textBox.setEnabled(!readOnly); }
NameFieldRenderer extends FieldRenderer<NameFieldDefinition, DefaultFormGroup> implements RequiresValueConverter { @Override protected void setReadOnly(final boolean readOnly) { textBox.setEnabled(!readOnly); } }
NameFieldRenderer extends FieldRenderer<NameFieldDefinition, DefaultFormGroup> implements RequiresValueConverter { @Override protected void setReadOnly(final boolean readOnly) { textBox.setEnabled(!readOnly); } @Inject  NameFieldRenderer(final TextBox textBox); }
NameFieldRenderer extends FieldRenderer<NameFieldDefinition, DefaultFormGroup> implements RequiresValueConverter { @Override protected void setReadOnly(final boolean readOnly) { textBox.setEnabled(!readOnly); } @Inject  NameFieldRenderer(final TextBox textBox); @Override String getName(); @Override Converter getConverter(); }
NameFieldRenderer extends FieldRenderer<NameFieldDefinition, DefaultFormGroup> implements RequiresValueConverter { @Override protected void setReadOnly(final boolean readOnly) { textBox.setEnabled(!readOnly); } @Inject  NameFieldRenderer(final TextBox textBox); @Override String getName(); @Override Converter getConverter();  }