public CFAsteriskRamISOCountryLanguageCursor( CFSecurityAuthorization argAuthorization, ICFSecuritySchema argSchema, Collection<CFSecurityISOCountryLanguageBuff> cltn) { super(argAuthorization, argSchema, "", cltn.size()); values = cltn; cursor = values.iterator(); }
public CFAsteriskRamTSecGroupIncludeCursor( CFSecurityAuthorization argAuthorization, ICFSecuritySchema argSchema, Collection<CFSecurityTSecGroupIncludeBuff> cltn) { super(argAuthorization, argSchema, "", cltn.size()); values = cltn; cursor = values.iterator(); }
public void setSwingDataCollection(Collection<ICFInternetProjectBaseObj> value) { final String S_ProcName = "setSwingDataCollection"; swingDataCollection = value; if (swingDataCollection == null) { arrayOfProjectBase = new ICFInternetProjectBaseObj[0]; } else { int len = value.size(); arrayOfProjectBase = new ICFInternetProjectBaseObj[len]; Iterator<ICFInternetProjectBaseObj> iter = swingDataCollection.iterator(); int idx = 0; while (iter.hasNext() && (idx < len)) { arrayOfProjectBase[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(arrayOfProjectBase, compareProjectBaseByQualName); } PickerTableModel tblDataModel = getDataModel(); if (tblDataModel != null) { tblDataModel.fireTableDataChanged(); } }