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