public IComponentConfigBean clone(AbsContainerConfigBean parentContainer) { try { AbsComponentConfigBean configBeanNew = (AbsComponentConfigBean) super.clone(); configBeanNew.setParentContainer(parentContainer); configBeanNew.setRefreshid(null); if (this.dataExportsBean != null) { configBeanNew.setDataExportsBean(dataExportsBean.clone(configBeanNew)); } if (this.printBean != null) { AbsPrintProviderConfigBean newPrintBean = (AbsPrintProviderConfigBean) this.printBean.clone(); newPrintBean.setOwner(configBeanNew); configBeanNew.setPrintBean(newPrintBean); } if (pdfPrintBean != null) { configBeanNew.setPdfPrintBean((PDFExportBean) pdfPrintBean.clone(configBeanNew)); } if (this.mDynTitleParts != null) { configBeanNew.setMDynTitleParts( (Map<String, String>) ((HashMap<String, String>) this.mDynTitleParts).clone()); } if (this.mDynSubtitleParts != null) { configBeanNew.setMDynSubtitleParts( (Map<String, String>) ((HashMap<String, String>) this.mDynSubtitleParts).clone()); } if (this.mDynParenttitleParts != null) { configBeanNew.setMDynParenttitleParts( (Map<String, String>) ((HashMap<String, String>) this.mDynParenttitleParts).clone()); } if (this.mDynParentSubtitleParts != null) { configBeanNew.setMDynParentSubtitleParts( (Map<String, String>) ((HashMap<String, String>) this.mDynParentSubtitleParts).clone()); } return configBeanNew; } catch (CloneNotSupportedException e) { e.printStackTrace(); return null; } }
public void doPostLoad() { if (this.dataExportsBean != null) this.dataExportsBean.doPostLoad(); if (this.printBean != null) this.printBean.doPostLoad(); if (pdfPrintBean != null) pdfPrintBean.doPostLoad(); if (this.buttonsBean != null) this.buttonsBean.doPostLoad(); }