@Override protected void saveSettingsTo(NodeSettingsWO settings) throws InvalidSettingsException { config.setWpId(wpId.getText()); config.setWpKind(wpKind.getText()); config.setWpSelfLink(wpSelfLink.getText()); config.setWpAccountId(wpAccountId.getText()); config.setWpInternalWebPropertyId(wpInternalWebPropertyId.getText()); config.setWpName(wpName.getText()); config.setWpWebsiteUrl(wpWebsiteUrl.getText()); config.setWpLevel(wpLevel.getText()); config.setWpProfileCount(Integer.parseInt(wpProfileCount.getText())); config.setWpIndustryVertical((String) wpIndustryVertical.getSelectedItem()); config.setWpDefaultProfileId(Long.parseLong(wpDefaultProfileId.getText(), 10)); config.setWpPermissionsEffective(wpPermissionsEffective.getText()); config.setParentLinkType(parentLinkType.getText()); config.setParentLinkHref(parentLinkHref.getText()); config.setChildLinkType(childLinkType.getText()); config.setChildLinkHref(childLinkHref.getText()); config.save(settings); }
@Override protected void loadSettingsFrom(NodeSettingsRO settings, PortObjectSpec[] specs) throws NotConfigurableException { config = new GoogleAnalyticsUpdateWebPropertyConfig(); config.load(settings); wpId.setText(config.getWpId()); wpKind.setText(config.getWpKind()); wpSelfLink.setText(config.getWpSelfLink()); wpAccountId.setText(config.getWpAccountId()); wpInternalWebPropertyId.setText(config.getWpInternalWebPropertyId()); wpName.setText(config.getWpName()); wpWebsiteUrl.setText(config.getWpWebsiteUrl()); wpLevel.setText(config.getWpLevel()); wpProfileCount.setText(Integer.toString(config.getWpProfileCount())); wpIndustryVertical.setSelectedItem(config.getWpIndustryVertical()); wpDefaultProfileId.setText(Long.toString(config.getWpDefaultProfileId())); wpPermissionsEffective.setText(config.getWpPermissionsEffective()); parentLinkType.setText(config.getParentLinkType()); parentLinkHref.setText(config.getParentLinkHref()); childLinkType.setText(config.getChildLinkType()); childLinkHref.setText(config.getChildLinkHref()); }