Example #1
0
 @Override
 public void Oncreate() throws LuaException {
   // TODO Auto-generated method stub
   root = LuaService.getInstance().getWidget(LuaHelper.loadScript(luastate, pagename));
 }
Example #2
0
 public void pushGlobalObject(String name, Object obj) {
   LuaHelper.setGlobalObject(getLuaState(), name, obj);
 }
Example #3
0
 public void removeGlobalObject(String name) {
   LuaHelper.removeGlobalObject(getLuaState(), name);
 }
Example #4
0
 public AbstractWidget getWidget(LuaObject obj) throws LuaException {
   LuaData data = LuaHelper.toLuaDataByLuaScript(getLuaState(), obj);
   return WidgetFactory.createWidgetTree(data);
 }