/** {@inheritDoc} */ @Override public void setRegisterItemData(AbstractViewType abstractSampleViewData) { CheckItemViewType sampleCheckItemType = (CheckItemViewType) abstractSampleViewData; this.checkItemID = sampleCheckItemType.getRegisterKey(); this.searchProcessText.setText(sampleCheckItemType.getSearchProcess()); this.searchExistanceButton.setSelection(sampleCheckItemType.isSearchExistance()); this.portabilityFactorCombo.setText(sampleCheckItemType.getPortabilityFactor()); this.portabilityDegreeCombo.setText(sampleCheckItemType.getProtabilityDegree()); this.degreeDetailCombo.setText(sampleCheckItemType.getDegreeDetail()); this.visualConfirmText.setText(sampleCheckItemType.getVisualConfirm()); this.hearingConfirmText.setText(sampleCheckItemType.getHearingConfirm()); }
/** {@inheritDoc} */ @Override public void updateData(PortabilityKnowhowListViewOperation tempKnowhowListViewData) { CheckItemViewType checkItemViewType = (CheckItemViewType) tempKnowhowListViewData.getKnowhowViewType(); if (this.checkItemID.equals(checkItemViewType.getRegisterKey())) { checkItemViewType.setSearchProcess(searchProcessText.getText()); checkItemViewType.setSearchExistance(searchExistanceButton.getSelection()); checkItemViewType.setPortabilityFactor(portabilityFactorCombo.getText()); checkItemViewType.setProtabilityDegree(portabilityDegreeCombo.getText()); checkItemViewType.setDegreeDetail(degreeDetailCombo.getText()); checkItemViewType.setVisualConfirm(visualConfirmText.getText()); checkItemViewType.setHearingConfirm(hearingConfirmText.getText()); tempKnowhowListViewData.setKnowhowViewType(checkItemViewType); } }