上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
  2012年7月4日
摘要: //判断结束日期是否小于起始日期protected function finalDate_focusOutHandler(event:FocusEvent):void{if(ObjectUtil.dateCompare(DateField.stringToDate(finalDate.text,"YYYY-MM-DD"),DateField.stringToDate(startDate.text,"YYYY-MM-DD")) == -1){Alert.show( "结束日期不能小于起始日期");finalDate.text = sta 阅读全文
posted @ 2012-07-04 10:35 星^_^風 阅读(208) 评论(0) 推荐(0) 编辑
  2012年7月3日
摘要: 1、通常办法在jsp页面中,加入<% request.setCharacterEncoding("utf-8"); %>,flex默认编码是utf-8。然而,如果问题没有解决,依旧是乱码的话,那么,打开你的tomcat目录下的conf/server.xml文件,观察:<Connector port="8080" protocol="HTTP/1.1" maxThreads="150" connectionTimeout="20000" redirectPort="84 阅读全文
posted @ 2012-07-03 16:36 星^_^風 阅读(230) 评论(0) 推荐(0) 编辑
  2012年5月24日
摘要: Oracle数据导入导出imp/exp功能:Oracle数据导入导出imp/exp就相当与oracle数据还原与备份。大多情况都可以用Oracle数据导入导出完成数据的备份和还原(不会造成数据的丢失)。Oracle有个好处,虽然你的电脑不是服务器,但是你装了oracle客户端,并建立了连接(通过Net Configuration Assistant添加正确的服务命名,其实你可以想成是客户端与服务器端 修了条路,然后数据就可以被拉过来了)这样你可以把数据导出到本地,虽然可能服务器离你很远。你同样可以把dmp文件从本地导入到远处的数据库服务器中。利用这个功能你可以构建俩个相同的数据库,一个用来测试 阅读全文
posted @ 2012-05-24 21:45 星^_^風 阅读(121) 评论(0) 推荐(0) 编辑
  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) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页