com.pow2.webgui
Class WidgetInfo

java.lang.Object
  extended by com.pow2.webgui.WidgetInfo

public class WidgetInfo
extends Object

WidgetInfo class.

Author:
Luca Fossato

Constructor Summary
WidgetInfo()
          Default constructor.
 
Method Summary
 String getClassName()
          Gets the className attribute of the WidgetInfo object
 BaseContentProvider getContentProvider(String key, Widget w)
          Get the ContentProvider instance registered using the input key.
 String getName()
          Gets the name attribute of the WidgetInfo object
 WidgetDrawer getWidgetDrawer(String key, Widget w)
          Get the WidgetDrawer instance registered using the input key.
 void setClassName(String className)
          Sets the className attribute of the WidgetInfo object
 void setContentProvider(String key, String className)
          Set a contentProvider class name into the drawer map.
 void setName(String name)
          Sets the name attribute of the WidgetInfo object
 void setWidgetDrawer(String key, String className)
          Set a widgetDrawer class name into the drawer map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetInfo

public WidgetInfo()
Default constructor.

Method Detail

getClassName

public String getClassName()
Gets the className attribute of the WidgetInfo object

Returns:
The className value

getName

public String getName()
Gets the name attribute of the WidgetInfo object

Returns:
The name value

setClassName

public void setClassName(String className)
Sets the className attribute of the WidgetInfo object

Parameters:
className - The new className value

setName

public void setName(String name)
Sets the name attribute of the WidgetInfo object

Parameters:
name - The new name value

getContentProvider

public BaseContentProvider getContentProvider(String key,
                                              Widget w)
                                       throws Exception
Get the ContentProvider instance registered using the input key.

Parameters:
key - the key used to register the ContentProvider class name into the contentProvider map
Returns:
the ContentProvider instance registered using the input key
Throws:
Exception - if any error occurs

setContentProvider

public void setContentProvider(String key,
                               String className)
Set a contentProvider class name into the drawer map.

Parameters:
key - the key used to register the contentProvider into the map
className - the contentProvider class name

getWidgetDrawer

public WidgetDrawer getWidgetDrawer(String key,
                                    Widget w)
                             throws Exception
Get the WidgetDrawer instance registered using the input key.

Parameters:
key - the key used to register the WidgetDrawer class name into the drawerMap
Returns:
the WidgetDrawer instance registered using the input key
Throws:
Exception - if any error occurs

setWidgetDrawer

public void setWidgetDrawer(String key,
                            String className)
Set a widgetDrawer class name into the drawer map.

Parameters:
key - the key used to register the drawer into the map
className - the WidgetDrawer class name


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