RpdlWidgetFactory

Factory for construction view from rpdl layout data.

Constructors

this
this(View view, string fileName)
Undocumented in source.

Members

Functions

createWidget
Widget createWidget(ObjectNode widgetNode, Widget parentWidget)

Create widget from widgetNode data and insert it to parentWidget. If parentWidget is null then insert to uiManager root view widget.

createWidgetFromNode
Widget createWidgetFromNode(ObjectNode widgetNode, Widget parentWidget)

Create widget depends of widgetNode.name and insert to parentWidget.

createWidgets
void createWidgets(Node widgetNode)

This is a main method of factory - it will create and insert widgets by reading the children of widgetNode, if widgetNode is null then reading will be from layout root node.

readFields
void readFields(T widget, ObjectNode widgetNode)

Finds all fields in widget with @rpui.widget.Widget.field attribute and fill widget members with values from rpdl file.

Properties

rootWidget
Widget rootWidget [@property getter]

Root view widget - container for other widgets.

Meta