Package org.onesocialweb.gwt.client.ui.widget

Examples of org.onesocialweb.gwt.client.ui.widget.StyledFlowPanel


          + "assets/default-avatar-big.png");
    }
    summaryWrapper.add(avatar);

    // Display name
    StyledFlowPanel displaynamewrapper = new StyledFlowPanel("wrapper");
    StyledLabel displayname = new StyledLabel("displayname", jid);
    displayname.setTitle(jid);
    String fullName;
    if (model != null) {
      fullName = model.getFullName();
      if (fullName != null && fullName.length() > 0) {
        displayname.setText(fullName);
      } else {
        displayname.setText(jid);
      }
    }

    StyledLabel you = new StyledLabel("you", uiText.You());

    displaynamewrapper.add(displayname);
    if (isSignedinUser)
      displaynamewrapper.add(you);
    summary.add(displaynamewrapper);

    // Get tags and following status
    String tags = "";
    OswService service = OswServiceFactory.getService();
View Full Code Here


  private void loadFullProfile() {

    // setup layout

    // profile section
    StyledFlowPanel sectionProfile = new StyledFlowPanel("section");
    StyledLabel profileLabel = new StyledLabel("grouplabel", uiText.Profile());
    StyledLabel profileInstruction = new StyledLabel("instruction", "");
    details.add(sectionProfile);
    sectionProfile.add(profileLabel);
    sectionProfile.add(profileInstruction);
    sectionProfile.add(profile);

    // followers section
    StyledFlowPanel sectionFollowers = new StyledFlowPanel("section");
    StyledLabel followersLabel = new StyledLabel("grouplabel", uiText.Followers());
    final StyledLabel followersInstruction = new StyledLabel("instruction",
        "");
    details.add(sectionFollowers);
    sectionFollowers.add(followersLabel);
    sectionFollowers.add(followersInstruction);
    sectionFollowers.add(followersPanel);

    // following section
    StyledFlowPanel sectionFollowing = new StyledFlowPanel("section");
    StyledLabel followingLabel = new StyledLabel("grouplabel", uiText.FollowingPeople());
    final StyledLabel followingInstruction = new StyledLabel("instruction",
        "");
    details.add(sectionFollowing);
    sectionFollowing.add(followingLabel);
    sectionFollowing.add(followingInstruction);
    sectionFollowing.add(followingPanel);

    profileInstruction.setVisible(false);

    if (model != null && model.getFields().size() > 0) {
     
View Full Code Here

     * manage.add(followingLabel); manage.add(followingInstruction);
     * manage.add(manageFollowing);
     */

    // Add the lists
    StyledFlowPanel sectionLists = new StyledFlowPanel("section");
    StyledLabel tagsLabel = new StyledLabel("grouplabel", uiText.YourLists());
    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);
    sectionLists.add(listSelector);

    manage.add(sectionLists);

    // Add the relations
    /*
 
View Full Code Here

TOP

Related Classes of org.onesocialweb.gwt.client.ui.widget.StyledFlowPanel

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.