Package com.apress.progwt.client.college.gui.ext

Examples of com.apress.progwt.client.college.gui.ext.TableWithHeaders


        if (topic.doThreadListView()) {
            for (ForumPost post : result.getPosts()) {
                allPosts.add(new PostDisplay(post));
            }
        } else {
            TableWithHeaders table = new TableWithHeaders(result
                    .getPosts().size(), "Thread", "Replies", "Date",
                    "Author");
            int row = 0;
            for (ForumPost post : result.getPosts()) {
                addShortDisplay(table, row, post);
                row++;
            }
            table.getColumnFormatter().setStyleName(0, "title");
            table.getColumnFormatter().setStyleName(1, "replies");
            table.getColumnFormatter().setStyleName(3, "author");
            allPosts.add(table);
        }

        if (result.getPosts().size() == 0) {
            allPosts.add(new Label("No Posts Yet"));
View Full Code Here

TOP

Related Classes of com.apress.progwt.client.college.gui.ext.TableWithHeaders

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.