public void setFriend(User friend) { this.friend = friend; setUserObject(friend.getFriendlyName()); }
@Override public int compareTo(SortableTreeNode o) { FriendTreeNode other = (FriendTreeNode) o; return friend.getFriendlyName().compareTo(other.getFriend().getFriendlyName()); }
public FriendTreeNode(User friend) { super(friend.getFriendlyName()); this.friend = friend; }