Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.Label


    private VerticalPanel rankPanel;
    private User thisUser;

    public SchoolRanks() {
        VerticalPanel mainPanel = new VerticalPanel();
        mainPanel.add(new Label("Rankings"));

        rankPanel = new VerticalPanel();

        mainPanel.add(rankPanel);
View Full Code Here


            double pct = aas.getScore() / (double) aas.getTotal();

            SchoolLink link = new SchoolLink(aas.getApplication()
                    .getSchool());

            Label pctL = new Label(pctFormat.format(pct));

            HorizontalPanel hP = new HorizontalPanel();
            hP.setStyleName("TC-DecisionRanked");
            if (i % 2 == 0) {
                hP.addStyleName("TC-DecisionRanked-Even");
            }

            Label rankL = new Label(i + "");
            rankL.addStyleName("TC-DecisionRanked-Rank");
            pctL.addStyleName("TC-DecisionRanked-Pct");

            hP.add(rankL);
            hP.add(link);
            hP.add(pctL);
View Full Code Here

            table.getColumnFormatter().setStyleName(3, "author");
            allPosts.add(table);
        }

        if (result.getPosts().size() == 0) {
            allPosts.add(new Label("No Posts Yet"));
        }

        // no reply button when we're just browsing 'recent forum posts'
        if (original != null) {
            createB = new CreatePostButton(forumApp, isReply, topic);
View Full Code Here

            ForumPost post) {

        Hyperlink postT = new Hyperlink(post.getPostTitle(), post
                .getUniqueForumID());

        Label replies = new Label("" + post.getReplyCount());

        UserLink author = new UserLink(post.getAuthor());

        Label date = new Label(df.format(post.getDate()));
        date.setStylePrimaryName("date");

        table.setWidget(row, 0, postT);
        table.setWidget(row, 1, replies);
        table.setWidget(row, 2, date);
        table.setWidget(row, 3, author);
View Full Code Here

        e.printStackTrace();

        VerticalPanel panel = new VerticalPanel();

        panel.add(new Label("Error"));
        panel.add(new Label(e.getMessage()));

        RootPanel.get(getPreLoadID()).setVisible(false);
        RootPanel.get(getLoadID()).add(panel);
    }
View Full Code Here

            FlowPanel authorSide = new FlowPanel();
            authorSide.setStylePrimaryName("AuthorSide");
            VerticalPanel postSide = new VerticalPanel();
            postSide.setStylePrimaryName("PostSide");

            authorSide.add(new Label("Author: "));
            UserLink author = new UserLink(post.getAuthor());
            authorSide.add(author);

            Label date = new Label(df.format(post.getDate()));
            date.addStyleDependentName("Date");
            authorSide.add(date);

            Label postT = new Label(post.getPostTitle());
            postT.addStyleDependentName("title");
            postSide.add(postT);

            Label postS = new HTML(post.getPostString());
            postSide.add(postS);

            mainP.add(authorSide);
            mainP.add(postSide);
View Full Code Here

            e.printStackTrace();

            VerticalPanel panel = new VerticalPanel();

            panel.add(new Label("Error"));
            panel.add(new Label(e.getMessage()));

            RootPanel.get("slot1").add(panel);
        }

    }
View Full Code Here

        textArea.setSize("35em", "15em");
        RichTextToolbar toolbar = new RichTextToolbar(textArea);

        HorizontalPanel hp = new HorizontalPanel();
        hp.add(new Label("Title:"));
        hp.add(titleBox);
        mainP.add(hp);

        mainP.add(toolbar);
        mainP.add(textArea);
View Full Code Here

            if (pageS >= totalCount) {
                break;
            }

            if (start == pageS) {
                nav.add(new Label(" (" + (i + 1) + ")"));
            } else {
                nav.add(new Hyperlink(" " + (i + 1), getID(topic, i,
                        maxperpage)));
            }
View Full Code Here

   *
   * Does the initialization of the panel and all its
   * children widgets
   */
  public void init(){
    Label todayLink = new Label("Today");   
    todayLink.addClickListener(this);
    this.add(todayLink);
    this.setWidth(100 + "%");
    this.setHeight(16+"px");
    this.setStyleName("todayPanel");   
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.Label

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.