@Test public void testReadOnly() { reassignmentEditorWidget.setReadOnly(true); HTMLButtonElement closeButton = getFieldValue(ReassignmentEditorWidgetViewImpl.class, view, "closeButton"); HTMLButtonElement okButton = getFieldValue(ReassignmentEditorWidgetViewImpl.class, view, "okButton"); Assert.assertFalse(closeButton.disabled); Assert.assertTrue(okButton.disabled); }
public void setReadOnly(boolean readOnly) { view.setReadOnly(readOnly); }
ReassignmentEditorWidget implements IsWidget,
                                                 ReassignmentEditorWidgetView.Presenter { public void setReadOnly(boolean readOnly) { view.setReadOnly(readOnly); } }
ReassignmentEditorWidget implements IsWidget,
                                                 ReassignmentEditorWidgetView.Presenter { public void setReadOnly(boolean readOnly) { view.setReadOnly(readOnly); } @Inject  ReassignmentEditorWidget(ReassignmentEditorWidgetView view,
                                    ClientTranslationService translationService); }
ReassignmentEditorWidget implements IsWidget,
                                                 ReassignmentEditorWidgetView.Presenter { public void setReadOnly(boolean readOnly) { view.setReadOnly(readOnly); } @Inject  ReassignmentEditorWidget(ReassignmentEditorWidgetView view,
                                    ClientTranslationService translationService); @Override Widget asWidget(); @Override String getNameHeader(); @Override void createOrEdit(ReassignmentWidgetView parent, ReassignmentRow row); void setReadOnly(boolean readOnly); }
ReassignmentEditorWidget implements IsWidget,
                                                 ReassignmentEditorWidgetView.Presenter { public void setReadOnly(boolean readOnly) { view.setReadOnly(readOnly); } @Inject  ReassignmentEditorWidget(ReassignmentEditorWidgetView view,
                                    ClientTranslationService translationService); @Override Widget asWidget(); @Override String getNameHeader(); @Override void createOrEdit(ReassignmentWidgetView parent, ReassignmentRow row); void setReadOnly(boolean readOnly);  }