Qooxdoo:在移动应用程序中重用桌面类 [英] Qooxdoo: Reuse desktop classes in mobile application

查看:102
本文介绍了Qooxdoo:在移动应用程序中重用桌面类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个功能全面的qooxdoo桌面应用程序和一个新创建的移动应用程序.我想在移动应用程序中重用桌面应用程序中的现有类.我修改了配置文件,以便编译器知道路径.

I have a full-grown qooxdoo desktop application and a freshly created mobile application. I want to reuse existing classes from my desktop app in my mobile app. I modified the configuration file so that the compiler knows about the paths.

仅将桌面小部件添加到移动页面是不可能的,因为它们似乎完全不兼容:

Just adding a desktop widget to a mobile page is not possible because they seem to be completely incompatible:

var title = new myapp.ui.basic.Label("Test");
page1.getContent().add(title);

产生:

Uncaught TypeError: Object #<HTMLDivElement> has no method 'add' 

还有另一种在移动应用程序中使用桌面类的方法吗?

Is there another way to use desktop classes in a mobile app?

推荐答案

您也可以在移动应用中使用为桌面定义的类,但这不包括小部件. qooxdoo有一个单独的针对移动应用优化的UI工具包,应该使用.桌面小部件不同且不兼容.尽管如此,您仍然可以毫无问题地重用所有IO和逻辑类.

You can use a Class defined for desktop in mobile apps as well but this excludes widgets. qooxdoo has a separate UI Toolkit optimized for mobile which should be used. The widgets for desktop are different and not compatible. Still, you can reuse all your IO and logic classes without a problem.

这篇关于Qooxdoo:在移动应用程序中重用桌面类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆