Example usage for com.google.gwt.ajaxfeed.client.impl EntryWrapper getContentSnippet

List of usage examples for com.google.gwt.ajaxfeed.client.impl EntryWrapper getContentSnippet

Introduction

In this page you can find the example usage for com.google.gwt.ajaxfeed.client.impl EntryWrapper getContentSnippet.

Prototype

public String getContentSnippet();

Source Link

Usage

From source file:com.google.gwt.sample.feedreader.client.EntryPanel.java

License:Apache License

public EntryPanel(final EntryWrapper entry, final Configuration.Feed parentFeed, WallToWallPanel parent) {
    super(entry.getTitle(), parent);
    addStyleName("EntryPanel");
    this.entry = entry;
    this.parentFeed = parentFeed;

    UnsunkLabel title = new UnsunkLabel(entry.getTitle());
    title.addStyleName("title");

    UnsunkLabel snippit = new UnsunkLabel(entry.getContentSnippet());
    snippit.addStyleName("snippit");

    FlowPanel vp = new FlowPanel();
    vp.add(title);//w w  w. j a  v a2  s.  co m
    vp.add(snippit);

    this.panelLabel = new PanelLabel(vp, new Command() {
        public void execute() {
            History.newItem(parentFeed.getUrl() + "||" + entry.getLink());
        }
    });
}