Package org.onesocialweb.gwt.service

Examples of org.onesocialweb.gwt.service.Roster


  public PrivacySelector(String fieldname) {

    addStyleName("privacyselector");

    // construct
    final Roster roster = OswServiceFactory.getService().getRoster();
    roster.registerEventHandler(new Observer<RosterEvent>() {

      @Override
      public void handleEvent(RosterEvent event) {
        updateVisibility(roster.getGroups());
      }

    });
    updateVisibility(roster.getGroups());
    setVisibleItemCount(1);

  }
View Full Code Here


    setCloseTooltip(uiText.BackToDefault());

    // construct
    visibility = new ListBox();
    StyledLabel show = new StyledLabel("label", uiText.With());
    final Roster roster = OswServiceFactory.getService().getRoster();
    roster.registerEventHandler(new Observer<RosterEvent>() {

      @Override
      public void handleEvent(RosterEvent event) {
        updateVisibility(visibility, roster.getGroups());
      }

    });
    updateVisibility(visibility, roster.getGroups());
    visibility.setVisibleItemCount(1);
    layout.add(label);
    layout.add(visibility);
    add(layout);
    add(fix);
View Full Code Here

    // Populate the oracle
    updateOracle();

    // Listen to roster changes
    Roster roster = OswClient.getInstance().getService().getRoster();
    roster.registerEventHandler(new RosterObserver());
  }
View Full Code Here

    Roster roster = OswClient.getInstance().getService().getRoster();
    roster.registerEventHandler(new RosterObserver());
  }

  private void updateOracle() {
    Roster roster = OswClient.getInstance().getService().getRoster();
    List<RosterItem> rosterItems = roster.getItems();
    for (final RosterItem rosterItem : rosterItems) {
      addRosterItem(rosterItem);
    }
  }
View Full Code Here

TOP

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

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.