GroupItem.java :  » Messenger » projectnox » nox » ui » common » Java Open Source

Java Open Source » Messenger » projectnox 
projectnox » nox » ui » common » GroupItem.java
package nox.ui.common;

import javax.swing.ImageIcon;

import net.jxta.protocol.PeerGroupAdvertisement;

@SuppressWarnings("serial")
public class GroupItem extends NoxJListItem {
  private String password = null;
  private int onlineCount;
  private int memberCount;
  //private Object[] members;

  public GroupItem(ImageIcon portr, PeerGroupAdvertisement adv, String password) {
    super(portr, adv.getName(), adv.getDescription(), adv.getPeerGroupID());
    //this.members = new PeerItem[0];
    this.password = password;
  }

  public GroupItem(ImageIcon portr, PeerGroupAdvertisement adv) {
    this(portr, adv, null);
  }

  public String getPassword() {
    return password;
  }
  
  /*public Object[] getMembers(){
    return members;
  }*/

  public int getOnlineCount() {
    return onlineCount;
  }

  public int getCount() {
    return memberCount;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.