Rui::Widget::Factory - widget factory
$factory = Rui::Widget::Factory->new;
$factory->createWidget(
type => 'Label',
parent => $parent,
value => 'foo',
);
$factory->createWidget(
type => 'Rui__Widget__Label',
parent => $parent,
value => 'foo',
);
$factory->createWidget(
type => 'Rui::Widget::Label',
parent => $parent,
value => 'foo',
);
The widget factory does 2 things to ease the creation of widgets:
use the widget classes so you don't need to
map between types and classes
It should only be used from inside the framework.