AutoComplete

news/2024/5/19 19:39:09 标签: Flex, Blog

Quick tip: Avoid issues using Adobes AutoComplete Input component using Flex 3

 

 

http://www.websector.de/blog/2008/04/30/quick-tip-avoid-issues-using-adobes-autocomplete-input-component-using-flex-3/

 

上面的地址有很好的实现,需要时可以参考。

 

下面是AH中调用时的部分代码,仅作参考:

 

<component:AutoComplete x="10" y="71" width="306" id="acboxClient" maxChars="100" doubleClickEnabled="true" doubleClick="doubleClick_acboxClient()"

text="" forceUpperCase="true" forceMatch="true" dataProvider="{groupModel.groupRelationshipList}"

styleName="BodyText" height="23" change="clientChange()"/>

 

private function doubleClick_acboxClient():void {

                                    //this.acboxClient.selectWholeWord();

                                    //this.acboxClient.text = "";

                                    //this.acboxClient.selectedIndex = -1;

                                    this.acboxClient.typedText = "";

}

 

private function clientChange():void {

                                var selectedClient:PFAcctHierarchy = acboxClient.selectedItem as PFAcctHierarchy;

                                /* not use 'selectedClient != this.lastSelectedClient' is because:

                       *  every time click the right-top GroupMaintenance Tab, groupGUI will be set blank. And

                                *  if user then choose the client as the last one, GUI should reload it,

                                *  so comment out this, and 'lastSelectedClient' is no longer used.

                                */

                                //if(selectedClient != null && selectedClient != this.lastSelectedClient) {

                                if(selectedClient != null) {

                                                this.lastSelectedClient = selectedClient;

                                                addGroupBtn.enabled = true;

                                                var cid:Number = new Number(selectedClient.pfId);

                                                var pfClientAcronym:String = selectedClient.pfClientAcronym;

                                                groupModel.clientAcronym = pfClientAcronym;

                                                GroupControl.findGroup(cid, pfClientAcronym);

                                                               

                                                // retain last visited group info

                                                groupModel.groupLastVisited.pfClientManagerId = cid;

                                                groupModel.groupLastVisited.pfClientAcronym = pfClientAcronym;

                                                groupModel.groupLastVisited.groupId = null;

                                                groupModel.groupLastVisited.pfGrpId = 0;

                                                               

                                                groupModel.detailVisiable = false;

                                                               

                                                Application.application.focusManager.setFocus(groupDetail);

                                                               

                                }

}


http://www.niftyadmin.cn/n/1313642.html

相关文章

RocketMQ-quickstart(批量消费问题)

基本概念&#xff1a; Producer&#xff1a;消息生产者&#xff0c;负责生产消息&#xff0c;一般由业务系统负责生产消息。 Consumer&#xff1a;消息消费者&#xff0c;负责消费消息&#xff0c;一般是后台系统负责异步消费。 Push Consumer&#xff1a;Consumer的一种&#…

jstat, jps 等jvm监测工具

http://www.blogjava.net/chenpengyi/archive/2007/03/14/103771.html http://www.blogjava.net/stone2083/archive/2008/02/25/182081.html jvm监测工具介绍

MetaWeblog是什么

MetaWebBlog API&#xff08;MWA&#xff09;是一个Blog程序接口标准&#xff0c;允许外部程序来获取或者设置Blog的文字和熟悉。他建立在XMLRPC接口之上&#xff0c;并且已经有了很多的实现。 所以现在很多博客系统都支持这个协议&#xff0c;可以通过统一的协议进行多个博客文…

如何在涉世之初少走弯路

如何在涉世之初少走弯路&#xff0c;有一个好的开端&#xff0c;开始一番成功的事业&#xff1f;以下是一些先行者积累的10条有益的涉世忠告。好好地遵循、把握这些忠告和建议吧&#xff0c;比起所学的课堂课程来&#xff0c;它毫不逊色&#xff01; 1. 买个闹钟&#xff0c;以…

百万用户时尚分享网站feed系统扩展实践

摘要&#xff1a;Fashiolista作为一个以社交、分享为主的在线时尚交流网站&#xff0c;其feed系统占据了网站的核心架构&#xff0c;其扩展性至关重要。网站创始人兼CTO撰写博客&#xff0c;分享了自家网站feed系统扩展的经验。Fashiolista是一个在线的时尚交流网站&#xff0c…

上班族致富五大途径解秘

这是一个创业的时代&#xff0c;想自己创业做老板的人越来越多&#xff0c;其中也包括众多上班族。但是时间紧、资金有限、缺乏经验、患得患失&#xff0c;是几乎所有想自主创业的上班族都会遇到的问题。针对这些问题&#xff0c;我们的建议是&#xff1a;采取有针对性的措施和…

Hadoop 文件压缩

1、指定编解码器类public void deflateCompress() throws IOException {//获取deflate编解码器类Class codecClass DeflateCodec.class;//实例化CompressionCodec codec (CompressionCodec)ReflectionUtils.newInstance(codecClass,new Configuration());//创建文件输出流Fi…

CSDN啊,你的博客不是一般的慢啊!

CSDN那&#xff0c;你的博客不是一般的慢啊&#xff01;