2012年5月21日
摘要: 上次说到了简单的表单验证,可以配置错误信息,点击按钮可以进行所有表单验证,那么如果验证都通过,怎样执行提交任务呢?一般都会这么处理,下面这个是button点击事件处理方法Xml代码<SPANstyle="FONT-SIZE:medium">functionvaidateForm():void{ varall:Array=Validator.validateAll([numVD,emailVD,comboValidator]); if(all.length==0){ Alert.show("验证成功"); //这里可以发送请求进行表单提交任务 阅读全文
posted @ 2012-05-21 16:24 星^_^風 阅读(181) 评论(0) 推荐(0) 编辑
摘要: InPart 1andPart 2of this series I covered how to make simple inline itemEditors as well as how to use events to make more complex itemEditors that can respond to what the user enters and help the user make fewer mistakes.This article is about using one class to display and edit the data by employing 阅读全文
posted @ 2012-05-21 15:58 星^_^風 阅读(167) 评论(0) 推荐(0) 编辑
摘要: http://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt2.htmlInPart 1 of this seriesI showed you how to make an inline itemRenderer—that is, an itemRenderer whose MXML tags and ActionScript code are in the same file as the list using the itemRenderer. The code is inline with the rest of the c. 阅读全文
posted @ 2012-05-21 15:52 星^_^風 阅读(218) 评论(0) 推荐(0) 编辑
摘要: http://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt1.htmlFlex 提供许多控制, 它们可以按不同方式显示大量数据。List 控制自己、DataGrid、Tree 以及包括图表和 AdvancedDataGrid 在内的可视类。默认情况下, Flex 列表控制将提供的数据显示为简单文本。但 Flex 的能耐远不止此, 列表控制提供了一种使用 itemRenderer 对其内容进行自定的方式。通过允许您使用 itemRenderer 完全控制列表每行 (或单元格) 的内容, Flex 使您能够编写出更引人注目、更具创意、 阅读全文
posted @ 2012-05-21 15:47 星^_^風 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 转载http://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt1.html在本系列的第 1 部分中,您已经看到如何创建一些简单的内联 itemEditor。如果您阅读过itemRenderer 系列,您可能会发现两者十分相似。使 itemEditor 能正常运行有两个要点。首先,使用itemEditor属性命名类。其次,使用editorDataField属性命名 itemEditor 的 value 属性。在本文中,我将说明如何使用事件创建更复杂的 itemEditor,它们可以执行一些简单的数据验证操作并且可以防止他人编辑某些单 阅读全文
posted @ 2012-05-21 15:41 星^_^風 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 转载http://www.adobe.com/cn/devnet/flex/articles/itemeditors_pt1.html我最近完成了一个有关 itemRenderer 的系列-对列表控制的自定义,它们用于控制列表内容的显示格式。显示和渲染内容是一种十分有效的 UI 技术,而使用 Flex 您几乎可以完成想象得到的任何事。这是有关 itemEditor 的新系列的第 1 部分,允许在列表控制中直接更改数据。第一篇文章讨论内联 itemEditor,可以在 MXML 文件中直接编写这些简单却十分有用的组件。该系列的后续文章将讨论更复杂的编辑、验证、事件以及将 itemRenderer 阅读全文
posted @ 2012-05-21 15:32 星^_^風 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 条目编辑器使你可以修改列表空间中每一个小单元的值。DataGrid,List和Tree空间支持条目编辑器。连接:Adobe® Flex™也支持条目渲染器——制定组件如何显sdfs示数据。更多的信息请查看快速入门指南中的Using item renderersDataGrid,List和Tree控件包含editable属性。如果把这个属性设置为true,那么用户就可以编辑这个控件的内容。默认情况下,editable属性等于false,这意味着你将不能编辑单元格有很多种途径创建和使用列表编辑器:使用默认列表编辑器使用drop in 列表编辑器创建内联列表编辑器创建可重用的列表编辑器使用一 阅读全文
posted @ 2012-05-21 14:47 星^_^風 阅读(179) 评论(0) 推荐(0) 编辑