Search in sources :

Example 1 with SectionPart

use of com.willshex.blogwt.client.part.SectionPart in project blogwt by billy1380.

the class PageDetailPage method show.

private void show(Page page) {
    pnlContent.clear();
    SectionPart section;
    for (Post post : page.posts) {
        section = new SectionPart();
        section.setContent(page.slug, post);
        pnlContent.add(section);
    }
    lnkEditPage.setTargetHistoryToken(PageType.EditPagePageType.asTargetHistoryToken(page.slug));
    pnlLoading.setVisible(false);
    FooterPart.get().scrollToTop();
    refreshTitle();
}
Also used : SectionPart(com.willshex.blogwt.client.part.SectionPart) Post(com.willshex.blogwt.shared.api.datatype.Post)

Aggregations

SectionPart (com.willshex.blogwt.client.part.SectionPart)1 Post (com.willshex.blogwt.shared.api.datatype.Post)1