Flex使用HTML5 - 什么presentation层(帆布,DIV,???) [英] Flex to HTML5 - what for presentation layer (canvas, div, ???)

查看:142
本文介绍了Flex使用HTML5 - 什么presentation层(帆布,DIV,???)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是有关迁移的FLEX3到HTML5。我想不迁移自己没有实际的应用。现在的问题是,什么样的方向是最好的,最相似的柔性的知识。也许我会重新实现了一些自定义组件,我已经在我的Flex库。我认为一些有用的Flex组件,我将必须实现自己在HTML5 - 例如,的AdvancedDataGrid或树。

My question is about migration from Flex3 to HTML5. I want do migrate myself not application actually. The question is, what direction is the best and most similar to flex knowledge. Maybe I will reimplement some custom components I already have in my flex library. I think that some of useful flex components I will have to implement myself in HTML5 - e.g. AdvancedDataGrid or Tree.

现在,我可以看到两种方式:

Now I can see 2 possibilities:

  • 在假定页面(或大DIV)作为应用大师班,并实现 置 - 基于扩展DIV功能的其它组件 DIV在DIV在DIV - 就像AS3使用UIComponent。它给了我支持 通过浏览器环境事件处理或DIV运动和重绘 等等。
  • 在假设将一个Canvas组件的应用程序的主类。构建自己的 类树的所有者绘制控制等等。我想我会需要 实现事件处理和放大器;调度为我的内部可视化 组件。此外所有的UI操作(如移动,重画),我需要 实现我自己。
  • assume page (or big DIV) as application master class, and implement other components based on extending DIV functionality - and placing DIV in DIV in DIV - like AS3 uses UIComponent. It gives me supported by browser environment event handling or DIV movement and redrawing etc.
  • assume one CANVAS component as application master class. Build own classes tree with owner drawing control etc. I think i will need to implement event handling & dispatching for my internal visual components. Also all UI actions (like moving, redrawing) I need to implement myself.

我想,我将开始构筑未来长期使用我自己的类/组件库。问题是,什么是知识和工作投资好?

I assume, that I will start to build my own class/component library for long-term future use. Question is what is better for knowledge and work investing?

这将是很好的了解这个问题广泛意见。 你能不能给你吗?

It will be good to know wide opinion on this problem. Can you give yours here?

推荐答案

从以往的经验,我们可以说,写一个DataGrid组件是一个非常大的工程。我们一直都在我们的DataGrid组件3年了,我们还在增加功能。而不是写你自己的助理总干事像组件,你应该考虑的JS框架。下面是一些:

From experience, we can say that writing a DataGrid component is a VERY large undertaking. We've been working on our DataGrid components for 3 years now, and we're STILL adding features. Instead of writing your own ADG like component, you should consider JS frameworks. Below are some:

  • 道场(优秀的框架RIA企业应用开发,以及 免费!)

  • DOJO (Excellent framework for RIA Enterprise App Development, and Free!)

煎茶(pretty的好,但商业)

Sencha (Pretty good, but commercial)

JQuery的(很受欢迎,但高度分散)。

JQuery (Very popular, but highly fragmented).

所有这些都设有自己的网格组件。 Senchas电网是pretty的好,而且还有一些jQuery网格。例如看到这个:最佳动态JavaScript / JQuery的网格

Each of these come with their own grid component. Senchas grid is pretty good, but so are some jquery grids. See this for example: Best dynamic JavaScript/JQuery Grid

底线,不推倒重来。有许多优秀的付费和免费版本在那里,选择一个适合您,并运行它。

Bottom line, dont reinvent the wheel. There are many excellent paid and free versions out there, pick one that works for you and run with it.

这篇关于Flex使用HTML5 - 什么presentation层(帆布,DIV,???)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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