@Override public void setModel(BookDescriptionViewModel model) { if (model.getMetadata() != null) { metadataWidget.setData(model); } if (model.getProse() != null && model.getProse().getXML() != null) { descriptionWidget.setDescription(model.getProse().getXML()); } }
@Override public void setPresenter(Presenter presenter) { metadataWidget.setPresenter(presenter); descriptionWidget.setPresenter(presenter); }
@Override public void clear() { metadataWidget.clear(); descriptionWidget.clear(); clearErrors(); }