net.sf.statcvs.output
Class HTMLPage

java.lang.Object
  extended bynet.sf.statcvs.output.HTMLPage
Direct Known Subclasses:
CommitLogPage, CPUPage, FCPage, IndexPage, LOCPage, ModulePage, ModuleSizesPage, UserPage

public abstract class HTMLPage
extends java.lang.Object

Author:
anja

Field Summary
protected  CvsContent content
           
protected  java.lang.String fileName
           
protected static java.lang.String MINI_DELETED_DIRECTORY_IMAGE
           
protected static java.lang.String MINI_DIRECTORY_IMAGE
           
protected  java.lang.String pageName
           
protected static int SPACE_COUNT
           
protected static boolean TABLE_LAST_LINE_ON
           
protected static java.lang.String WEB_FILE_PATH
           
 
Constructor Summary
HTMLPage(CvsContent content)
          Method HTMLPage.
 
Method Summary
protected  java.lang.String a(java.lang.String target, java.lang.String html)
           
protected  java.lang.String anchor(java.lang.String anchorName, java.lang.String html)
           
protected  java.lang.String br()
           
protected  void createPage()
           
protected  java.lang.String deleteEndingSlash(java.lang.String path)
           
protected  java.lang.String getFileName()
           
protected  java.lang.String getFolderHtml(CvsModule module, int currentDepth)
           
static java.util.logging.Logger getLogger()
          Returns the logger.
protected  java.lang.String getModulePageName(java.lang.String moduleName)
           
protected  java.lang.String getPageName()
           
 java.lang.String getUserLink(java.lang.String userName)
          Returns HTML code for a userPage link tag
protected  java.lang.String h1(java.lang.String h1)
           
protected  java.lang.String h2(java.lang.String h2)
           
protected  java.lang.String img(java.lang.String image)
          Returns HTML code for a image tag
protected  java.lang.String img(java.lang.String image, int width, int height)
          Returns HTML code for a image tag
protected  java.lang.String imgWithBorder(java.lang.String image)
          Returns HTML code for a image tag
protected  java.lang.String imgWithBorder(java.lang.String image, int width, int height)
          Returns HTML code for a image tag
protected  java.lang.String li(java.lang.String li)
           
protected  java.lang.String p(java.lang.String p)
           
protected  void print(java.lang.String printStream)
           
protected  void printBackLink()
           
protected abstract  void printBody()
           
protected  void printH2(java.lang.String h2)
           
protected  void printParagraph(java.lang.String paragraphContent)
           
protected  java.lang.String strong(java.lang.String b)
           
protected  java.lang.String tag(java.lang.String tag, java.lang.String content)
           
protected  java.lang.String ul(java.lang.String ul)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINI_DIRECTORY_IMAGE

protected static final java.lang.String MINI_DIRECTORY_IMAGE
See Also:
Constant Field Values

MINI_DELETED_DIRECTORY_IMAGE

protected static final java.lang.String MINI_DELETED_DIRECTORY_IMAGE
See Also:
Constant Field Values

WEB_FILE_PATH

protected static final java.lang.String WEB_FILE_PATH
See Also:
Constant Field Values

TABLE_LAST_LINE_ON

protected static final boolean TABLE_LAST_LINE_ON
See Also:
Constant Field Values

SPACE_COUNT

protected static final int SPACE_COUNT
See Also:
Constant Field Values

content

protected CvsContent content

fileName

protected java.lang.String fileName

pageName

protected java.lang.String pageName
Constructor Detail

HTMLPage

public HTMLPage(CvsContent content)
         throws java.io.IOException
Method HTMLPage.

Parameters:
content - of the Page
Throws:
java.io.IOException - on IOError
Method Detail

createPage

protected void createPage()
                   throws java.io.IOException
Throws:
java.io.IOException

print

protected void print(java.lang.String printStream)
              throws java.io.IOException
Throws:
java.io.IOException

printH2

protected void printH2(java.lang.String h2)
                throws java.io.IOException
Throws:
java.io.IOException

printParagraph

protected void printParagraph(java.lang.String paragraphContent)
                       throws java.io.IOException
Throws:
java.io.IOException

printBackLink

protected void printBackLink()
                      throws java.io.IOException
Throws:
java.io.IOException

br

protected java.lang.String br()

p

protected java.lang.String p(java.lang.String p)

h1

protected java.lang.String h1(java.lang.String h1)

h2

protected java.lang.String h2(java.lang.String h2)

strong

protected java.lang.String strong(java.lang.String b)

anchor

protected java.lang.String anchor(java.lang.String anchorName,
                                  java.lang.String html)

a

protected java.lang.String a(java.lang.String target,
                             java.lang.String html)

ul

protected java.lang.String ul(java.lang.String ul)

li

protected java.lang.String li(java.lang.String li)

img

protected java.lang.String img(java.lang.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

imgWithBorder

protected java.lang.String imgWithBorder(java.lang.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

img

protected java.lang.String img(java.lang.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

imgWithBorder

protected java.lang.String imgWithBorder(java.lang.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

tag

protected java.lang.String tag(java.lang.String tag,
                               java.lang.String content)

printBody

protected abstract void printBody()
                           throws java.io.IOException
Throws:
java.io.IOException

getFileName

protected java.lang.String getFileName()

getPageName

protected java.lang.String getPageName()

getUserLink

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

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

getModulePageName

protected java.lang.String getModulePageName(java.lang.String moduleName)

deleteEndingSlash

protected java.lang.String deleteEndingSlash(java.lang.String path)

getFolderHtml

protected java.lang.String getFolderHtml(CvsModule module,
                                         int currentDepth)

getLogger

public static java.util.logging.Logger getLogger()
Returns the logger.

Returns:
Logger