Add ui::WidgetType enum to replace JI_WIDGET macros