Examples of MsnGroupImpl


Examples of net.sf.jml.impl.MsnGroupImpl

            Element grInfoEl = XmlUtils.findChild(el, "groupInfo");
            Element grNameEl = XmlUtils.findChild(grInfoEl, "name");
            String name = XmlUtils.getText(grNameEl);

            MsnGroupImpl group = new MsnGroupImpl(contactList);
            group.setGroupId(grId);
            group.setGroupName(name);
            contactList.addGroup(group);
        }
    }
View Full Code Here

Examples of net.sf.jml.impl.MsnGroupImpl

        String guid = XmlUtils.getText(e);

        MsnContactListImpl contactList = (MsnContactListImpl) session
                .getMessenger().getContactList();

        MsnGroupImpl group = new MsnGroupImpl(contactList);
        group.setGroupId(guid);
        group.setGroupName(groupName);
        contactList.addGroup(group);

        ((AbstractMessenger) session.getMessenger())
                .fireGroupAddCompleted(group);
    }
View Full Code Here

Examples of net.sf.jml.impl.MsnGroupImpl

            return;

        MsnContactListImpl contactList = (MsnContactListImpl) session
                .getMessenger().getContactList();

        MsnGroupImpl group = (MsnGroupImpl)contactList.getGroup(groupId);
        if (group != null)
            group.setGroupName(newGroupName);
    }
View Full Code Here

Examples of net.sf.jml.impl.MsnGroupImpl

    @Override
  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);
        MsnContactListImpl contactList = (MsnContactListImpl) session
                .getMessenger().getContactList();
        MsnGroupImpl group = (MsnGroupImpl) contactList.getGroup(getGroupId());

        if (group != null) {
            group.clear();
            contactList.removeGroup(getGroupId());

            ((AbstractMessenger) session.getMessenger())
                    .fireGroupRemoveCompleted(group);
        }
View Full Code Here

Examples of net.sf.jml.impl.MsnGroupImpl

  protected void messageReceived(MsnSession session) {
        super.messageReceived(session);

        MsnContactListImpl contactList = (MsnContactListImpl) session
                .getMessenger().getContactList();
        MsnGroupImpl group = new MsnGroupImpl(contactList);
        group.setGroupId(getGroupId());
        group.setGroupName(getGroupName());
        contactList.addGroup(group);

        ((AbstractMessenger) session.getMessenger())
                .fireGroupAddCompleted(group);
    }
View Full Code Here

Examples of net.sf.jml.impl.MsnGroupImpl

        MsnContactListImpl contactList = (MsnContactListImpl) session
                .getMessenger().getContactList();
        String groupId = getGroupId();

        if (groupId != null) {
            MsnGroupImpl group = new MsnGroupImpl(contactList);
            group.setGroupId(groupId);
            group.setGroupName(getGroupName());
            contactList.addGroup(group);
        } else { //default group
            ((MsnGroupImpl) contactList.getDefaultGroup())
                    .setGroupName(getGroupName());
        }
View Full Code Here

Examples of net.sf.jml.impl.MsnGroupImpl

            Element grInfoEl = XmlUtils.findChild(el, "groupInfo");
            Element grNameEl = XmlUtils.findChild(grInfoEl, "name");
            String name = XmlUtils.getText(grNameEl);

            MsnGroupImpl group = new MsnGroupImpl(contactList);
            group.setGroupId(grId);
            group.setGroupName(name);
            contactList.addGroup(group);
        }
    }
View Full Code Here

Examples of net.sf.jml.impl.MsnGroupImpl

        String guid = XmlUtils.getText(e);

        MsnContactListImpl contactList = (MsnContactListImpl) session
                .getMessenger().getContactList();

        MsnGroupImpl group = new MsnGroupImpl(contactList);
        group.setGroupId(guid);
        group.setGroupName(groupName);
        contactList.addGroup(group);

        ((AbstractMessenger) session.getMessenger())
                .fireGroupAddCompleted(group);
    }
View Full Code Here

Examples of net.sf.jml.impl.MsnGroupImpl

            return;

        MsnContactListImpl contactList = (MsnContactListImpl) session
                .getMessenger().getContactList();

        MsnGroupImpl group = (MsnGroupImpl)contactList.getGroup(groupId);
        if (group != null)
            group.setGroupName(newGroupName);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.