Package org.onesocialweb.gwt.service

Examples of org.onesocialweb.gwt.service.RosterItem


    // Display the presence
    if (activity.getActor().getUri().equals(service.getUserBareJID())) {
      setPresence(service.getPresence());
    } else {
      final RosterItem rosterItem = service.getRoster().getItem(
          activity.getActor().getUri());
      if (rosterItem != null) {
        setPresence(rosterItem.getPresence());
        rosterItem.registerEventHandler(new Observer<RosterEvent>() {

          @Override
          public void handleEvent(RosterEvent event) {
            setPresence(rosterItem.getPresence());
          }

        });
      }
    }
View Full Code Here


    StyledLabel tagsInstruction = new StyledLabel("instruction",
        uiText.AddOrRemovePerson());
    // EditableTagsList manageTags = new EditableTagsList(jid);

    OswService service = OswServiceFactory.getService();
    RosterItem rosterItem = service.getRoster().getItem(jid);

    ListSelector listSelector = new ListSelector(rosterItem);

    sectionLists.add(tagsLabel);
    sectionLists.add(tagsInstruction);
View Full Code Here

    public void handleEvent(RosterEvent event) {

      // get lists
      String tags = "";
      OswService service = OswServiceFactory.getService();
      RosterItem rosterItem = service.getRoster().getItem(jid);
      // make sure there is a rosterItem e.g. in the case it's you
      if (rosterItem != null) {
        for (int i = 0; i < rosterItem.getGroups().size(); i++) {
          String tag = rosterItem.getGroups().get(i);
          if (i < (rosterItem.getGroups().size() - 1)) {
            tags += "" + tag + ", ";
          } else {
            tags += "" + tag + "";
          }
        }
View Full Code Here

TOP

Related Classes of org.onesocialweb.gwt.service.RosterItem

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.