|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pow2.webgui.WidgetFactory
public class WidgetFactory
Widget Factory class.
| Method Summary | |
|---|---|
boolean |
containsWidgetInfo(String key)
Test if the WidgetFactory hashmap contains the WidgetInfo object having the input key. |
Widget |
getWidget(String key)
Get a Widget object. |
static WidgetFactory |
instance()
Get the instance of WidgetFactory class. |
void |
removeWidgetInfo(String key)
Remove the widgetInfo object having the input key from the WidgetFactory hashmap. |
void |
setWidgets(String propsFile)
Register all the widget prototypes declared into the input properties file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WidgetFactory instance()
public boolean containsWidgetInfo(String key)
key - the widgetInfo key
public void removeWidgetInfo(String key)
key - the prototype key.
public Widget getWidget(String key)
throws Exception
key - the key used to retrieve an instance of the registered widget
from the factory hashmap
Exception - if any error occurs
public void setWidgets(String propsFile)
throws Exception
propsFile - The new prototypes value
Exception - if any error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||