|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.widgets.base.widget.WidgetFactory
public class WidgetFactory
Creates Widget
instances by class name.
Method Summary | |
---|---|
static AbstractAssembledWidget |
createAssembledWidget(java.lang.String className,
java.lang.String name)
Creates a new Widget instance. |
static Widget |
createWidget(java.lang.Class<Widget> clazz,
java.lang.String name)
Creates a new Widget instance. |
static Widget |
createWidget(java.lang.Class<Widget> clazz,
WidgetsConfiguration widgetsConfig)
Creates a new Widget instance. |
static Widget |
createWidget(java.lang.String className,
java.lang.String name)
Creates a new Widget instance. |
static Widget |
createWidget(java.lang.String className,
WidgetsConfiguration widgetsConfig)
Creates a new Widget instance. |
static java.lang.Class<Widget> |
getWidgetClass(java.lang.String className)
Gets the Widget Class instance. |
static java.lang.Class<Widget>[] |
getWidgetClasses()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final java.lang.Class<Widget>[] getWidgetClasses()
public static java.lang.Class<Widget> getWidgetClass(java.lang.String className)
Widget
Class
instance.
className
- the Widget
class name
Widget
Class
instance or null
on error.public static Widget createWidget(java.lang.Class<Widget> clazz, java.lang.String name)
Widget
instance.
clazz
- the Widget
classname
- the name to be given to the new Widget
or null
Widget
or null
on error.public static Widget createWidget(java.lang.Class<Widget> clazz, WidgetsConfiguration widgetsConfig)
Widget
instance.
clazz
- the Widget
classwidgetsConfig
- the WidgetsConfiguration
to search a free name in
Widget
or null
on error.public static Widget createWidget(java.lang.String className, java.lang.String name)
Widget
instance.
className
- the Widget
class namename
- the name to be given to the new Widget
or null
Widget
or null
on error.public static Widget createWidget(java.lang.String className, WidgetsConfiguration widgetsConfig)
Widget
instance.
className
- the Widget
class namewidgetsConfig
- the WidgetsConfiguration
to search a free name in
Widget
or null
on error.public static AbstractAssembledWidget createAssembledWidget(java.lang.String className, java.lang.String name)
Widget
instance.
className
- the Widget
class namename
- the name to be given to the new Widget
or null
Widget
or null
on error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |