org.homeunix.thecave.buddi.plugin.api.util
Class HtmlHelper

java.lang.Object
  extended by org.homeunix.thecave.buddi.plugin.api.util.HtmlHelper

public class HtmlHelper
extends java.lang.Object


Constructor Summary
HtmlHelper()
           
 
Method Summary
static java.lang.StringBuilder getHtmlFooter()
          Get the HTML footer, matched to the header supplied from getHtmlHeader()
static java.lang.StringBuilder getHtmlHeader(java.lang.String title, java.lang.String subtitle, java.util.Date startDate, java.util.Date endDate)
          Get a StringBuilder with an HTML header, including some CSS for a basic printable page.
static java.lang.StringBuilder getHtmlTransactionFooter()
          Returns the end of a table for displaying transactions.
static java.lang.StringBuilder getHtmlTransactionHeader()
          Returns the start of a table for displaying transactions, including the header row.
static java.lang.StringBuilder getHtmlTransactionRow(ImmutableTransaction t, ImmutableSource source)
          Returns an HTML table row consisting of information from the given transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlHelper

public HtmlHelper()
Method Detail

getHtmlHeader

public static java.lang.StringBuilder getHtmlHeader(java.lang.String title,
                                                    java.lang.String subtitle,
                                                    java.util.Date startDate,
                                                    java.util.Date endDate)
Get a StringBuilder with an HTML header, including some CSS for a basic printable page.

Parameters:
title - The main title - appears on the browser title, as well as on the top of the page
subtitle - The subtitle - optional - appears right below main title. Set to null to not use.
startDate - Start date. Set to null if this is not a report with date range.
endDate - End date. Set to null if this is not a report with date range.
Returns:

getHtmlFooter

public static java.lang.StringBuilder getHtmlFooter()
Get the HTML footer, matched to the header supplied from getHtmlHeader()

Returns:

getHtmlTransactionRow

public static java.lang.StringBuilder getHtmlTransactionRow(ImmutableTransaction t,
                                                            ImmutableSource source)
Returns an HTML table row consisting of information from the given transaction.

Parameters:
t - Transaction to display.
source - Associated source. This would be the account which the transaction frame is associated with, for instace. This can be null if there is none.
Returns:

getHtmlTransactionHeader

public static java.lang.StringBuilder getHtmlTransactionHeader()
Returns the start of a table for displaying transactions, including the header row.

Returns:

getHtmlTransactionFooter

public static java.lang.StringBuilder getHtmlTransactionFooter()
Returns the end of a table for displaying transactions.

Returns: