public void setSwingDataCollection(Collection<ICFSecuritySecGroupMemberObj> value) { final String S_ProcName = "setSwingDataCollection"; swingDataCollection = value; if (swingDataCollection == null) { arrayOfSecGroupMember = new ICFSecuritySecGroupMemberObj[0]; } else { int len = value.size(); arrayOfSecGroupMember = new ICFSecuritySecGroupMemberObj[len]; Iterator<ICFSecuritySecGroupMemberObj> iter = swingDataCollection.iterator(); int idx = 0; while (iter.hasNext() && (idx < len)) { arrayOfSecGroupMember[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(arrayOfSecGroupMember, compareSecGroupMemberByQualName); } ListTableModel tblDataModel = getDataModel(); if (tblDataModel != null) { tblDataModel.fireTableDataChanged(); } }
public CFCrmRamTldCursor( CFSecurityAuthorization argAuthorization, ICFInternetSchema argSchema, Collection<CFInternetTldBuff> cltn) { super(argAuthorization, argSchema, "", cltn.size()); values = cltn; cursor = values.iterator(); }
public void reset() { super.reset(); cursor = values.iterator(); }