Package yearreview.app.grid.widgets
Class WidgetFactory
java.lang.Object
yearreview.app.grid.widgets.WidgetFactory
Factory for Widget objects.
- Author:
- ColdStone37
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
WidgetFactory
public WidgetFactory()
-
-
Method Details
-
getWidget
Creates a widget from positional data and a configuration.- Parameters:
x
- x-position of the widgety
- y-position of the widgetw
- width of the widgeth
- height of the widgetconfig
- configuration of the widget- Returns:
- requested widget or null if the configuration is invalid
-