public void RerunDesignerScriptFromClass(String Layout, BA ba, int Width, int Height) throws Exception {
ViewGroup vg = new BALayout(ba.context);
vg.setLayoutParams(new ViewGroup.LayoutParams(Width, Height));
HashMap<String, ViewWrapper<?>> dynamicTable = new LayoutBuilder.LayoutHashMap<String, ViewWrapper<?>>();
for (Field f : ba.eventsTarget.getClass().getFields()) {
if (f.getName().startsWith("_") && ViewWrapper.class.isAssignableFrom(f.getType())) {
dynamicTable.put(f.getName().substring(1), (ViewWrapper<?>) f.get(ba.eventsTarget));
}
}
LayoutBuilder.loadLayout(Layout, ba, false, vg, dynamicTable, false);
}