// Changed the method name for consistency. private void populateFields() { detailDisplay.getName().setValue(currentDetails.getName()); // US 413. Populate the value for both the Steward List box and the Steward Other if any. detailDisplay.getOrganisation().setValue(currentDetails.getSteward()); String stewardOther = currentDetails.getStewardOther(); if (stewardOther != null && !stewardOther.equalsIgnoreCase("")) { detailDisplay.showOtherTextBox(); detailDisplay.getStewardOther().setValue(currentDetails.getStewardOther()); } else { detailDisplay.hideOtherTextBox(); } detailDisplay.getCategory().setValue(currentDetails.getCategory()); detailDisplay.getRationale().setValue(currentDetails.getRationale()); detailDisplay.getComments().setValue(currentDetails.getComments()); detailDisplay.getCodeSystem().setValue(currentDetails.getCodeSystem()); detailDisplay.getCodeSystemVersion().setValue(currentDetails.getCodeSystemVersion()); detailDisplay.getErrorMessageDisplay().clear(); // US210 prefixing the oid widget title with the oid itself so it can be viewed by a user String oid = currentDetails.getOid(); detailDisplay.getOid().setValue(oid); String oidTitle = oid == null ? detailDisplay.getOidTitle() : oid + " - " + detailDisplay.getOidTitle(); ((TextAreaWithMaxLength) detailDisplay.getOid()).setTitle(oidTitle); detailDisplay.getLastModifiedDate().setValue(currentDetails.getLastModifiedDate()); setModelCodesToView(false); enableOrDisableFields(); }
private void updateModelDetailsFromView() { currentDetails.setName(detailDisplay.getName().getValue()); // US 413. Update Steward and Steward Other value. currentDetails.setSteward(detailDisplay.getOrganisation().getValue()); currentDetails.setStewardValue(detailDisplay.getStewardValue()); currentDetails.setStewardOther(detailDisplay.getStewardOtherValue()); currentDetails.setCategory(detailDisplay.getCategory().getValue()); currentDetails.setRationale(detailDisplay.getRationale().getValue()); currentDetails.setComments(detailDisplay.getComments().getValue()); // no need to update code system for a grouped value set // this will need to be commented US 216 // currentDetails.setCodeSystem(detailDisplay.getCodeSystemValue()); // US 216. The codeSystemVersion should be "Grouping" for GroupedCodeList. currentDetails.setCodeSystemVersion(ConstantMessages.GROUPED_CODE_LIST_CS); currentDetails.setOid(detailDisplay.getOid().getValue()); /*US537*/ currentDetails.setLastModifiedDate(detailDisplay.getLastModifiedDate().getValue()); }