Пример #1
0
  private UniProfile isSameProfile(String name) {
    int size = model.getSize();
    for (int i = 0; i < size; i++) {
      UniProfile aProfile = (UniProfile) model.getElementAt(i);
      if (aProfile.toString().equals(name)) return aProfile;
    }

    return null;
  }
Пример #2
0
 private void setupList() {
   ArrayList list = view.initor.mdb.getTypeProfile(type);
   int size = list.size();
   for (int i = 0; i < size; i++) {
     UniProfile profile = (UniProfile) list.get(i);
     model.addElement(profile);
   }
 }