net.sf.statcvs.renderer
Class CommitLogRenderer

java.lang.Object
  extended bynet.sf.statcvs.renderer.CommitLogRenderer

public class CommitLogRenderer
extends Object

Class for rendering a list of commits as HTML.

Version:
$Id: CommitLogRenderer.java,v 1.31 2004/10/12 07:22:42 cyganiak Exp $
Author:
Anja Jentzsch, Richard Cyganiak

Constructor Summary
CommitLogRenderer(List commits)
          Creates a new instance for the list of commits.
 
Method Summary
static String getFilename(int page)
          Returns the filename for a commit log page.
 int getPages()
          Returns the number of pages for this renderer.
 String renderMostRecentCommits(int maxCommits)
          Returns HTML code for the commit log without splitting the list into pages.
 String renderPage(int page)
          Returns HTML code for a page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommitLogRenderer

public CommitLogRenderer(List commits)
Creates a new instance for the list of commits.

Parameters:
commits - A list of Commit objects
Method Detail

renderMostRecentCommits

public String renderMostRecentCommits(int maxCommits)
Returns HTML code for the commit log without splitting the list into pages.

Parameters:
maxCommits - maximum number of commits for the log; if there are more, only the most recent will be used
Returns:
HTML code for the commit log

renderPage

public String renderPage(int page)
Returns HTML code for a page.

Parameters:
page - the page number
Returns:
HTML code

getPages

public int getPages()
Returns the number of pages for this renderer.

Returns:
the number of pages for this renderer

getFilename

public static String getFilename(int page)
Returns the filename for a commit log page.

Parameters:
page - specified page
Returns:
the filename for a commit log page