public void setSwingDataCollection(Collection<ICFBamIndexObj> value) { final String S_ProcName = "setSwingDataCollection"; swingDataCollection = value; if (swingDataCollection == null) { arrayOfIndex = new ICFBamIndexObj[0]; } else { int len = value.size(); arrayOfIndex = new ICFBamIndexObj[len]; Iterator<ICFBamIndexObj> iter = swingDataCollection.iterator(); int idx = 0; while (iter.hasNext() && (idx < len)) { arrayOfIndex[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(arrayOfIndex, compareIndexByQualName); } PickerTableModel tblDataModel = getDataModel(); if (tblDataModel != null) { tblDataModel.fireTableDataChanged(); } }
public CFBamRamMinorVersionCursor( CFSecurityAuthorization argAuthorization, ICFInternetSchema argSchema, Collection<CFInternetMinorVersionBuff> cltn) { super(argAuthorization, argSchema, "", cltn.size()); values = cltn; cursor = values.iterator(); }
public CFInternetRamRealProjectCursor( CFSecurityAuthorization argAuthorization, ICFInternetSchema argSchema, Collection<CFInternetRealProjectBuff> cltn) { super(argAuthorization, argSchema, "", cltn.size()); values = cltn; cursor = values.iterator(); }
public CFBamRamTenantCursor( CFSecurityAuthorization argAuthorization, ICFSecuritySchema argSchema, Collection<CFSecurityTenantBuff> cltn) { super(argAuthorization, argSchema, "", cltn.size()); values = cltn; cursor = values.iterator(); }
public void reset() { super.reset(); cursor = values.iterator(); }