public Object clone() { StandardTable clone = null; try { clone = (StandardTable) super.clone(); } catch (CloneNotSupportedException e) { // never throw new JRRuntimeException(e); } clone.datasetRun = JRCloneUtils.nullSafeClone(datasetRun); clone.columns = JRCloneUtils.cloneList(columns); clone.eventSupport = null; return clone; }
public CreateE4ObjectCommand(ANode child, MCell parent, Rectangle location, int index) { super(parent, null, location, index); JasperDesign jd = parent.getJasperDesign(); jDataset = jd.getMainDesignDataset(); StandardTable st = TableManager.getTable(parent.getMTable()); JRDatasetRun dr = st.getDatasetRun(); if (dr != null) { String dbname = dr.getDatasetName(); if (dbname != null) jDataset = (JRDesignDataset) jd.getDatasetMap().get(dbname); } this.child = child; this.parent = parent; }