view.newsPaperView.util
Class PaperLayout

java.lang.Object
  extended by view.newsPaperView.util.PaperLayout

public class PaperLayout
extends java.lang.Object

Class responsible for generating the html for the newspaper view

Author:
mherdeg

Constructor Summary
PaperLayout()
           
 
Method Summary
static java.util.List<Article> GetNewUnreadArticles(java.util.List<Article> articles)
          Create a list of newly unread articles from a supplied list of articles.
static void main(java.lang.String[] args)
           
static java.lang.String MakeHTML(java.util.List<Article> articles)
          Turn a list of articles into an HTML page that displays a newspaper-like feed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaperLayout

public PaperLayout()
Method Detail

main

public static void main(java.lang.String[] args)

GetNewUnreadArticles

public static java.util.List<Article> GetNewUnreadArticles(java.util.List<Article> articles)
Create a list of newly unread articles from a supplied list of articles. This is simple now, but could be extended to rank the articles by some supplied rating or measure of importance.

Parameters:
articles - All articles (from, say, a feed).
Returns:
List of articles.

MakeHTML

public static java.lang.String MakeHTML(java.util.List<Article> articles)
Turn a list of articles into an HTML page that displays a newspaper-like feed. This HTML page shows at most 21 things: six articles, plus (if the feed contains more than six articles) up to fifteen more articles in a pane on the right, Wall Street Journal-style.

Parameters:
articles -
Returns: