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

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

Introduction

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

Prototype

public String getTitle();

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);/*from ww w  .j  av  a 2  s.  c om*/
    vp.add(snippit);

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