net.sf.statcvs.output
Class HTMLPage

java.lang.Object
  extended bynet.sf.statcvs.output.HTMLPage
Direct Known Subclasses:
AuthorPage, CommitLogPage, CPAPage, DirectorySizesPage, FileSizesPage, IndexPage, LOCPage, ModulePage, NoFilesPage

public abstract class HTMLPage
extends Object

Author:
anja

Field Summary
protected static int SPACE_COUNT
           
 
Constructor Summary
HTMLPage(CvsContent content)
          Method HTMLPage.
 
Method Summary
protected  String a(String target, String html)
           
protected  String br()
           
protected  void createPage()
           
protected  String deleteEndingSlash(String path)
           
protected  CvsContent getContent()
           
protected  String getFileName()
           
protected  String getFolderHtml(Directory dir, int currentDepth)
           
static Logger getLogger()
          Returns the logger.
protected  String getPageName()
           
 String getUserLink(String userName)
          Returns HTML code for a userPage link tag
protected  String h1(String h1)
           
protected  String h2(String h2)
           
protected  String img(String image)
          Returns HTML code for a image tag
protected  String img(String image, int width, int height)
          Returns HTML code for a image tag
protected  String li(String li)
           
protected  String p(String p)
           
protected  void print(String printStream)
           
protected  void printBackLink()
           
protected abstract  void printBody()
           
protected  void printH2(String h2)
           
protected  void printParagraph(String paragraphContent)
           
protected  void setFileName(String fileName)
           
protected  void setPageName(String pageName)
           
protected  String strong(String b)
           
protected  String tag(String elementName, String elementContent)
           
protected  String ul(String ul)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPACE_COUNT

protected static final int SPACE_COUNT
See Also:
Constant Field Values
Constructor Detail

HTMLPage

public HTMLPage(CvsContent content)
Method HTMLPage.

Parameters:
content - of the Page
Method Detail

createPage

protected void createPage()
                   throws IOException
Throws:
IOException

print

protected void print(String printStream)
              throws IOException
Throws:
IOException

printH2

protected void printH2(String h2)
                throws IOException
Throws:
IOException

printParagraph

protected void printParagraph(String paragraphContent)
                       throws IOException
Throws:
IOException

printBackLink

protected void printBackLink()
                      throws IOException
Throws:
IOException

br

protected String br()

p

protected String p(String p)

h1

protected String h1(String h1)

h2

protected String h2(String h2)

strong

protected String strong(String b)

a

protected String a(String target,
                   String html)

ul

protected String ul(String ul)

li

protected String li(String li)

img

protected String img(String image,
                     int width,
                     int height)
Returns HTML code for a image tag

Parameters:
image - URL of the Image to be hyperlinked
width - width of the Image to be hyperlinked
height - height of the Image to be hyperlinked
Returns:
HTML code for the image tag

img

protected String img(String image)
Returns HTML code for a image tag

Parameters:
image - URL of the Image to be hyperlinked
Returns:
HTML code for the image tag

tag

protected String tag(String elementName,
                     String elementContent)

printBody

protected abstract void printBody()
                           throws IOException
Throws:
IOException

getUserLink

public String getUserLink(String userName)
Returns HTML code for a userPage link tag

Parameters:
userName - userName to be tagged
Returns:
HTML code for the userPage link tag

deleteEndingSlash

protected String deleteEndingSlash(String path)

getFolderHtml

protected String getFolderHtml(Directory dir,
                               int currentDepth)

getLogger

public static Logger getLogger()
Returns the logger.

Returns:
Logger

getContent

protected CvsContent getContent()

setFileName

protected void setFileName(String fileName)

getFileName

protected String getFileName()

setPageName

protected void setPageName(String pageName)

getPageName

protected String getPageName()