In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to achieve Flex data binding, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The concept of Flex data binding
Literally, "bind" means to bind several objects together. When using Flex data binding, Flex will copy the data of one object and provide it to another object, and the one who provides the data is called the data source object, and the one who uses the data is called the target object. When the data source object changes, the data of the target object will be automatically updated, and there is no need for us to write code to force the update. This is the meaning of binding. This feature of Flex data binding is very useful, and when programs have to deal with large amounts of data and keep it up-to-date, keeping the data synchronized often causes developers a lot of trouble, and now there is no need to complain about this kind of problem.
In fact, the implementation of binding is also done by borrowing the event mechanism. When Flex data binding is used on the target, the target object listens for a fixed event of the data source object, and in the later process, when the source object changes, the data source will send a change event to inform the target object of updated data. , (PHP blog, www.phpcq.com) it's just that this event flow is handled automatically by Flex.
◆ binding is suitable for all types of objects and can be used as long as the data of the source object and the target object are in the same format. Flex data binding is frequently used in the following situations:
1. Bind the Flex data obtained by webservice or remoting to the control
2. Bind the control Flex data to the background communication object and send it to the server
3. The backend returns data and data model for binding
4, Flex data binding for component or object properties
◆ acts as a data source object in binding, and the object must support binding, that is, the object has the ability to dispatch change events. Flex components provide binding interfaces, of course, not all the properties and methods of components can be used as data sources, generally speaking, important properties of components can be used as data sources in bindings.
Although Flex data binding is very powerful, it can not be used in all cases. For example, in some cases, data needs to be updated in strict order and cannot be updated at the same time. In addition, once binding is started, each change in the source data will lead to the data update of the target object, and sometimes the target object is expected to react only under certain circumstances, so binding is not a good solution.
The above is all the content of the article "how to achieve data binding in Flex". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.