TAILIEUCHUNG - Adobe Flex 4 Training from the Source Volume 1 phần 5

Điều này hạn chế các sản phẩm trả lại cho những người có đơn vị nút được túi. Bạn đã giới hạn các dữ liệu trả về bằng cách đặt một bộ lọc trong biểu thức. Các dấu ngoặc đơn thực hiện những gì được gọi là lọc vị. 8 Nhập (@ chi phí == "1,95") và áp dụng biểu thức. Hai nút sản phẩm bị trả lại. | 180 LESSON 8 Using Data Binding and Collections They form part of a fundamental set of types available to you in Flex that includes other common types such as Number String int uint and Boolean. However unlike those simple types Arrays Objects and XML are complex meaning that they don t store simple values like a Number but rather store more complex data and often have methods such as the push method of the Array that can be called on the type. In the previous exercise you learned that Flex enables data binding on complex objects by manipulating the source code during compilation to allow objects to dispatch events. With these built-in types such manipulation is not possible and so another strategy must be used to allow their use in data binding. This strategy is called proxying. In Lesson 6 Using Remote XML Data you used two such proxies an XMLListCollection which was used so that your categories List would update when new data arrived from the server and an ObjectProxy which you observed when examining data retrieved from your HTTPService. When used with data binding a proxy s job is to act as a go-between for components you wish to be updated when a change occurs and a type such as the Array that does not have the proper logic to facilitate such an interchange. List ------------- Array Collection or Array List Array Put simply an ObjectProxy is a proxy for an Object an XMLListCollection is a proxy for an XMLList and an ArrayCollection is a proxy for an Array. This arrangement allows the use of these complex types with data binding. In reality the Array is fortunate to have two distinct proxies available the ArrayList and the ArrayCollection. In this section you will learn about the ArrayCollection as it not only provides the benefit of data binding but also has a rich set of additional features for sorting filtering and finding data quickly. In the remainder of the book you will use ArrayList as it is a simple and lightweight choice when you only need proxying .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.