Package ipmsg

Examples of ipmsg.IPMComEvent


      rd.setVisible(true);
      break;
    case IPMEvent.READMSG_EVENT:
      getToolkit().beep();
      String tmpname = "";
      IPMComEvent tmpipmce
        = (IPMComEvent)ADDRtoINFO.get(ipme.getIPMAddress().toString());
      IPMPack tmppack;
      if (tmpipmce != null) {
        tmppack = tmpipmce.getPack();
        tmpname = ipmsg.makeListStr(tmppack);
      } else
        tmpname = ipme.getPack().getUser();
      StringBuffer strbuf = new StringBuffer();
      strbuf.append(ipmsg.getPref("readMsg") + "\n");
      strbuf.append(ipmsg.makeDateStr(ipme.getDate()));
      MsgBox mb = new MsgBox(this, Cp932.toCp932(tmpname)
        , Cp932.toCp932(new String(strbuf)), false);
      mb.setVisible(true);
      break;
    case IPMEvent.DELETEMSG_EVENT:
      getToolkit().beep();
      tmpname = "";
      tmpipmce = (IPMComEvent)
        ADDRtoINFO.get(ipme.getIPMAddress().toString());
      if (tmpipmce != null) {
        tmppack = tmpipmce.getPack();
        tmpname = ipmsg.makeListStr(tmppack);
      } else
        tmpname = ipme.getPack().getUser();
      strbuf = new StringBuffer();
      strbuf.append(ipmsg.getPref("deleteMsg") + "\n");
View Full Code Here


        groups.removeAll();
        groups.add(ipmsg.getPref("allName"));
        Enumeration members = ipmsg.getUserlist().elements();
        SortVector tmpvec = new SortVector();
        while (members.hasMoreElements()) {
          IPMComEvent tmpevent = (IPMComEvent) members.nextElement();
          tmpvec.addElement(makeSortKey(tmpevent), tmpevent);
        }
        members = tmpvec.elements();
        while (members.hasMoreElements()) {
          IPMComEvent tmpevent = (IPMComEvent) members.nextElement();
          IPMPack tmppack = tmpevent.getPack();
          if (tmppack.getGroup() != null
            && groupcache.get(tmppack.getGroup()) == null) {
            groups.addItem(Cp932.toCp932(tmppack.getGroup()));
            groupcache.put(tmppack.getGroup(), tmppack.getGroup());
          }
          if (!tmpgroup.equals(ipmsg.getPref("allName")))
            if (tmppack.getGroup() == null)
              continue;
            else if (!tmppack.getGroup().equals(tmpgroup))
              continue;
          String tmpstr = Cp932.toCp932(ipmsg.makeListStr(tmppack));
          memberlist.add(tmpstr);
          NAMEtoINFO.put(tmpstr, tmpevent);
          ADDRtoINFO.put(tmpevent.getIPMAddress().toString()
            , tmpevent);
        }
        if (memberlist.getItemCount() == 0) {
          tmpgroup = ipmsg.getPref("allName");
          refreshing = true;
View Full Code Here

    add(textField2);
    final Choice choice1 = new Choice();
    Hashtable groupcache = new Hashtable();
    Enumeration members = ipmsg.getUserlist().elements();
    while (members.hasMoreElements()) {
      IPMComEvent tmpevent = (IPMComEvent) members.nextElement();
      IPMPack tmppack = tmpevent.getPack();
      if (tmppack.getGroup() != null
        && groupcache.get(tmppack.getGroup()) == null) {
        choice1.addItem(Cp932.toCp932(tmppack.getGroup()));
        groupcache.put(tmppack.getGroup(), tmppack.getGroup());
      }
View Full Code Here

TOP

Related Classes of ipmsg.IPMComEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.