Beispiel #1
0
  /**
   * Notify that the ID of an entry has changed. This doesn't actually change the Roster per se, but
   * triggers recreation.
   *
   * @param r The RosterEntry that has changed.
   */
  public void entryIdChanged(RosterEntry r) {
    log.debug("EntryIdChanged");

    // order may be wrong! Sort
    RosterEntry[] rarray = new RosterEntry[_list.size()];
    for (int i = 0; i < rarray.length; i++) {
      rarray[i] = _list.get(i);
    }
    StringUtil.sortUpperCase(rarray);
    for (int i = 0; i < rarray.length; i++) {
      _list.set(i, rarray[i]);
    }

    firePropertyChange(CHANGE, null, r);
  }