org.jppf.ui.monitoring.node
Class PropertiesTableFormat

java.lang.Object
  extended by org.jppf.ui.monitoring.node.PropertiesTableFormat
Direct Known Subclasses:
HTMLPropertiesTableFormat, TextPropertiesTableFormat

public abstract class PropertiesTableFormat
extends Object

Abstract class for formatters that print the contents of a Properties object as a string.

Author:
Laurent Cohen

Field Summary
protected  String docTitle
          The title of the whole document.
protected  StringBuffer sb
          Contains the formatted text.
 
Constructor Summary
PropertiesTableFormat(String docTitle)
          Initialize this formatter with the specified title.
 
Method Summary
 void cellEnd()
          Write the prologue of a table cell.
 void cellSeparator()
          Write the separator between 2 cells.
 void cellStart()
          Write the prologue of a table cell.
 void end()
          Write the epilogue for the formatted text.
 void formatTable(Properties props, String title)
          Generate the formatted text for a set of properties.
 String getText()
          Get the formatted text.
 void rowEnd()
          Write the prologue of a table row.
 void rowStart()
          Write the prologue of a table row.
 void start()
          Write the prologue for the formatted text.
 void tableEnd()
          Write the prologue of a table.
 void tableStart(String title)
          Write the prologue of a table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sb

protected StringBuffer sb
Contains the formatted text.


docTitle

protected String docTitle
The title of the whole document.

Constructor Detail

PropertiesTableFormat

public PropertiesTableFormat(String docTitle)
Initialize this formatter with the specified title.

Parameters:
docTitle - the title of the whole document.
Method Detail

getText

public String getText()
Get the formatted text.

Returns:
the text as a string.

start

public void start()
Write the prologue for the formatted text.


end

public void end()
Write the epilogue for the formatted text.


formatTable

public void formatTable(Properties props,
                        String title)
Generate the formatted text for a set of properties.

Parameters:
props - the set of properties to format.
title - the title of the formatted table.

tableStart

public void tableStart(String title)
Write the prologue of a table.

Parameters:
title - the title for the table.

tableEnd

public void tableEnd()
Write the prologue of a table.


rowStart

public void rowStart()
Write the prologue of a table row.


rowEnd

public void rowEnd()
Write the prologue of a table row.


cellStart

public void cellStart()
Write the prologue of a table cell.


cellEnd

public void cellEnd()
Write the prologue of a table cell.


cellSeparator

public void cellSeparator()
Write the separator between 2 cells.



Copyright © 2005-2010 JPPF Team.