org.tastybug.bugwerk.bugtrail.widget.ticket
Class HTMLFactory

java.lang.Object
  extended by org.tastybug.bugwerk.bugtrail.widget.ticket.HTMLFactory

public class HTMLFactory
extends Object

This HTML helper class creates HTML tables summarizing the base ticket properties.


Copyright 2006 Philipp Bartsch.
www.tastybug.com

Created on Feb 8, 2006

Author:
Philipp Bartsch, philipp.bartsch{at}tastybug{dot}com

Constructor Summary
HTMLFactory()
           
 
Method Summary
static String createTicketHTMLRepresentation(Ticket ticket)
          Returns a HTML table listing the base properties of ticket including the incident count.
static String getTableRow(String key, String value, boolean highlight)
          Returns a eyecandy table row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLFactory

public HTMLFactory()
Method Detail

createTicketHTMLRepresentation

public static String createTicketHTMLRepresentation(Ticket ticket)
Returns a HTML table listing the base properties of ticket including the incident count.

Parameters:
ticket - the ticket
Returns:
the HTML table

getTableRow

public static final String getTableRow(String key,
                                       String value,
                                       boolean highlight)
Returns a eyecandy table row.

Parameters:
key - the inserted key
value - the inserted value
highlight - specifies wheter to highlight the row label with a blue or the standard grey background
Returns:
the row (html code)


Copyright © 2006-2007 TastyBug Development. All Rights Reserved.