com.pow2.webgui.contentprovider
Class BaseContentProvider

java.lang.Object
  extended by com.pow2.webgui.WidgetStrategy
      extended by com.pow2.webgui.contentprovider.BaseContentProvider
Direct Known Subclasses:
ContentProvider

public abstract class BaseContentProvider
extends WidgetStrategy

ContentProvider abstract class.

Author:
Luca Fossato

Field Summary
protected static org.apache.log4j.Category cat
          Log4j category
protected  Collection collection
           
protected  StringBuffer content
           
protected  HashMap propertiesMap
           
protected  String template
           
 
Fields inherited from class com.pow2.webgui.WidgetStrategy
widget
 
Constructor Summary
BaseContentProvider(Widget widget)
          Constructor.
 
Method Summary
 Collection getCollection()
          Gets the list attribute of the ArrayListContentProvider object
abstract  StringBuffer getContent()
          Gets the ContentProvider content.
 HashMap getPropertiesMap()
          Gets the propertiesMap attribute of the BaseContentProvider object
 String getTemplate()
          Gets the template attribute of the ContentProvider object
 void setCollection(Collection collection)
          Sets the list attribute of the ArrayListContentProvider object
 void setContent(StringBuffer content)
          Sets the content attribute of the ContentProvider object
 void setPropertiesMap(HashMap propertiesMap)
          Sets the propertiesMap attribute of the BaseContentProvider object
 void setTemplate(String template)
          Sets the template attribute of the ContentProvider object
 
Methods inherited from class com.pow2.webgui.WidgetStrategy
getWidget, setWidget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static org.apache.log4j.Category cat
Log4j category


content

protected StringBuffer content

collection

protected Collection collection

template

protected String template

propertiesMap

protected HashMap propertiesMap
Constructor Detail

BaseContentProvider

public BaseContentProvider(Widget widget)
Constructor.

Parameters:
widget - the parent widget to provide the content to
Method Detail

setCollection

public void setCollection(Collection collection)
Sets the list attribute of the ArrayListContentProvider object

Parameters:
collection - The new collection value

setContent

public void setContent(StringBuffer content)
Sets the content attribute of the ContentProvider object

Parameters:
content - The new content value

setTemplate

public void setTemplate(String template)
Sets the template attribute of the ContentProvider object

Parameters:
template - The new template value

setPropertiesMap

public void setPropertiesMap(HashMap propertiesMap)
Sets the propertiesMap attribute of the BaseContentProvider object

Parameters:
propertiesMap - The new propertiesMap value

getCollection

public Collection getCollection()
Gets the list attribute of the ArrayListContentProvider object

Returns:
The list value

getContent

public abstract StringBuffer getContent()
                                 throws Exception
Gets the ContentProvider content.

Returns:
the ContentProvider content
Throws:
Exception - if any error occurs

getTemplate

public String getTemplate()
Gets the template attribute of the ContentProvider object

Returns:
The template value

getPropertiesMap

public HashMap getPropertiesMap()
Gets the propertiesMap attribute of the BaseContentProvider object

Returns:
The propertiesMap value


Copyright © 2002-2005 Power Of Two S.r.l. All Rights Reserved.