public void setSwingDataCollection(Collection<ICFBamId64GenObj> value) { final String S_ProcName = "setSwingDataCollection"; swingDataCollection = value; if (swingDataCollection == null) { arrayOfId64Gen = new ICFBamId64GenObj[0]; } else { int len = value.size(); arrayOfId64Gen = new ICFBamId64GenObj[len]; Iterator<ICFBamId64GenObj> iter = swingDataCollection.iterator(); int idx = 0; while (iter.hasNext() && (idx < len)) { arrayOfId64Gen[idx++] = iter.next(); } if (idx < len) { throw CFLib.getDefaultExceptionFactory() .newRuntimeException( getClass(), S_ProcName, "Collection iterator did not fully populate the array copy"); } if (iter.hasNext()) { throw CFLib.getDefaultExceptionFactory() .newRuntimeException( getClass(), S_ProcName, "Collection iterator had left over items when done populating array copy"); } Arrays.sort(arrayOfId64Gen, compareId64GenByQualName); } PickerTableModel tblDataModel = getDataModel(); if (tblDataModel != null) { tblDataModel.fireTableDataChanged(); } }
public CFBamRamDoubleDefCursor( CFSecurityAuthorization argAuthorization, ICFBamSchema argSchema, Collection<CFBamDoubleDefBuff> cltn) { super(argAuthorization, argSchema, "", cltn.size()); values = cltn; cursor = values.iterator(); }
public void reset() { super.reset(); cursor = values.iterator(); }