I have swing application in which there is MS excel like functionality. User can enter data in the columns. Most of the columns are drop down lists, so use have to select from the list.
我有摆动应用程序,其中有MS excel功能。用户可以在列中输入数据。大多数列都是下拉列表,因此必须从列表中进行选择。
Can this functionality be easily built in Adobe Flex or GWT?
可以在Adobe Flex或GWT中轻松构建此功能吗?
Second complexity is depending upon what value is selected in a column, another column should show only those items which are related to selected value of first column.
第二个复杂性取决于列中选择的值,另一列应仅显示与第一列的选定值相关的项目。
Its not country city data but for simplicity I am taking this example.
它不是乡村城市数据,但为了简单起见,我就是这个例子。
For example, first column is country and the second column is city. So depending upon what country is selected the second column will show only cities under that country.
例如,第一列是国家/地区,第二列是城市。因此,根据选择的国家/地区,第二列将仅显示该国家/地区的城市。
Its not just two drop down list on a page, its dropdowns of a row in a grid strructure.
它不仅仅是页面上的两个下拉列表,它在网格结构中的一行下拉列表。
Is this possible in Adobe Flex or GWT or anyother web UI framework apart from Swing?
这是否可以在Adobe Flex或GWT或除Swing之外的任何其他Web UI框架中实现?
2 个解决方案
#1
ExtJS' EditorGridPanel
for instance?
http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.EditorGridPanel
例如ExtJS的EditorGridPanel? http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.EditorGridPanel
I don't think you'll get this kind of functionality out of the box from any framework. You'll have to develop your particular functionality on top of existing components.
我不认为你会从任何框架中获得这种开箱即用的功能。您必须在现有组件的基础上开发您的特定功能。
#2
Using GWT, the built in FlexTable & ComboBox widgets and a downloaded EditableLabel (http://gwt-widget.sourceforge.net/docs/apidocs/org/gwtwidgets/client/ui/EditableLabel.html) widget you'd be able to build the basics of what you want. How well it would work/perform all depends on how you build it and how many rows/columns you want. If you want something big and ultra slick then Flex would be a pretty safe bet, if you just want to keep it small (eg: Google Docs style) then GWT will do just fine.
使用GWT,内置的FlexTable和ComboBox小部件以及下载的EditableLabel(http://gwt-widget.sourceforge.net/docs/apidocs/org/gwtwidgets/client/ui/EditableLabel.html)小部件,您将能够建立你想要的基础知识。它的工作/执行效果取决于你如何构建它以及你想要多少行/列。如果你想要一些大而超灵的东西,那么Flex将是一个非常安全的赌注,如果你只想保持它小(例如:Google Docs风格),那么GWT会做得很好。
All GWT widgets support attaching various listeners to them, so there would be no problem in firing actions that change cells just like you do in Swing.
所有GWT小部件都支持将各种侦听器附加到它们,因此在触发更改单元格的操作时就像在Swing中一样。
#1
ExtJS' EditorGridPanel
for instance?
http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.EditorGridPanel
例如ExtJS的EditorGridPanel? http://www.extjs.com/deploy/dev/docs/?class=Ext.grid.EditorGridPanel
I don't think you'll get this kind of functionality out of the box from any framework. You'll have to develop your particular functionality on top of existing components.
我不认为你会从任何框架中获得这种开箱即用的功能。您必须在现有组件的基础上开发您的特定功能。
#2
Using GWT, the built in FlexTable & ComboBox widgets and a downloaded EditableLabel (http://gwt-widget.sourceforge.net/docs/apidocs/org/gwtwidgets/client/ui/EditableLabel.html) widget you'd be able to build the basics of what you want. How well it would work/perform all depends on how you build it and how many rows/columns you want. If you want something big and ultra slick then Flex would be a pretty safe bet, if you just want to keep it small (eg: Google Docs style) then GWT will do just fine.
使用GWT,内置的FlexTable和ComboBox小部件以及下载的EditableLabel(http://gwt-widget.sourceforge.net/docs/apidocs/org/gwtwidgets/client/ui/EditableLabel.html)小部件,您将能够建立你想要的基础知识。它的工作/执行效果取决于你如何构建它以及你想要多少行/列。如果你想要一些大而超灵的东西,那么Flex将是一个非常安全的赌注,如果你只想保持它小(例如:Google Docs风格),那么GWT会做得很好。
All GWT widgets support attaching various listeners to them, so there would be no problem in firing actions that change cells just like you do in Swing.
所有GWT小部件都支持将各种侦听器附加到它们,因此在触发更改单元格的操作时就像在Swing中一样。