org.palo.api.ext.ui.table
Class TableFormatProvider

java.lang.Object
  extended by org.palo.api.ext.ui.table.TableFormatProvider

public class TableFormatProvider
extends java.lang.Object

The TableFormatterProvider class provides methods to check the existence and/or receive TableFormats for Elements

Version:
$Id: TableFormatProvider.html,v 1.10 2009/07/09 11:01:47 ArndHouben Exp $

Method Summary
 TableFormat getFormat(Element element)
          Reads in the defined TableFormat for the given Element.
static TableFormatProvider getInstance()
          Returns the sole instance of this TableFormatProvider
 boolean hasFormat(Element element)
          Checks if the given Element has a TableFormat.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final TableFormatProvider getInstance()
Returns the sole instance of this TableFormatProvider

Returns:
the TableFormatProvider instance

getFormat

public final TableFormat getFormat(Element element)
Reads in the defined TableFormat for the given Element. If no format was defined null is returned.

Parameters:
element - the Element to get TableFormat for
Returns:
TableFormat, or null if none was defined

hasFormat

public final boolean hasFormat(Element element)
Checks if the given Element has a TableFormat.

Parameters:
element - the Element to check TableFormat existence for
Returns:
true if given element has a defined TableFormat, false otherwise