<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-75  評論-193  文章-5  trackbacks-0
    P983
    About data binding

    Data binding is the process of tying the data in one object to another object. It provides a
    convenient way to pass data around in an application. Adobe Flex 2 provides three ways to
    specify data binding: the curly braces ({}) syntax and the <mx:Binding> tag in MXML and
    the BindingUtils methods in ActionScript.

    數據綁定提供了一種便利的方法在程序中傳遞數據,它可以在一個對象和另一個對象間建立關聯關系。在Flex2中提供了三種特定的方法用于數據綁定:
    1、{}
    2、<mx:Binding>標簽
    3、ActionScript中的BindingUtils方法

    Common uses of data binding include the following:
    通常使用數據綁定的情形如下:
    ■ To bind properties of user interface controls to data service requests.
    將用戶交互界面中的輸入綁定到數據服務請求中。
    ■ To bind data service results to properties of user interface controls.
    將數據服務響應的結果綁定到用戶交互界面中。
    ■ To bind data service results to a middle-tier data model, and to bind that data model’s
    fields to user interface controls. For more information about data models, see Chapter 38,
    “Storing Data,” on page 1001.
    將數據服務響應結果綁定到處于中間層的數據模型中,再將數據模型的字段綁定到用戶交互界面中。
    ■ To bind properties of user interface controls to a middle-tier data model, and to bind that
    data model’s fields bound to a data service request (a three-tier system).
    984 Binding Data
    將用戶交互界面中的輸入綁定到處于中間層的數據模型中,再將數據模型的字段綁定到數據服務請求中。
    ■ To bind an ArrayCollection or XMLListCollection object to the dataProvider property
    of a List-based control.
    將ArrayCollection或者XMLListCollection對象綁定到基于List的界面控件的dataProvider屬性中。
    ■ To bind individual parts of complex properties to properties of user interface controls. An
    example would be a master-detail scenario in which clicking an item in a List control
    displays data in several other controls.
    將復雜屬性的單個部分綁定到用戶交互界面中。
    ■ To bind XML data to user interface controls by using ECMAScript for XML (E4X)
    expressions in binding expressions.
    通過使用ECMAScript for XML表達式將XML數據綁定到用戶交互界面中。

    Although binding is a powerful mechanism, it is not appropriate for all situations. For
    example, for a complex user interface in which individual pieces must be updated based on
    strict timing, it would be preferable to use a method that assigns properties in order. Also,
    binding executes every time a property changes, so it is not the best solution when you want
    changes to be noticed only some of the time.

    盡管數據綁定是一個強大的機制,但是其并不適用于所有狀況。比如在如下兩種情況中就不適合使用數據綁定:
    1、在一個復雜的用戶交互界面中,一些更新有嚴格的時間次序。
    2、由于數據綁定在屬性每次發生改變時都會觸發,僅僅希望在一些特定的條件下觸發改變時就不適合使用數據綁定。



    posted on 2006-10-31 12:52 The Matrix 閱讀(293) 評論(0)  編輯  收藏 所屬分類: Flex2
    主站蜘蛛池模板: 222www免费视频| 亚洲精品乱码久久久久久不卡 | 成人a免费α片在线视频网站| 久久精品免费一区二区喷潮| 亚洲小视频在线播放| 亚洲人成免费电影| 亚洲成人免费网站| 福利免费观看午夜体检区| 亚洲人妖女同在线播放| 一个人看的免费观看日本视频www| 四虎影永久在线高清免费| 全黄A免费一级毛片| 国产亚洲精品不卡在线| 你懂得的在线观看免费视频| 青青青青青青久久久免费观看| 亚洲一区二区无码偷拍| 91精品国产免费久久国语蜜臀 | 羞羞网站在线免费观看| 在线观看H网址免费入口| 亚洲91精品麻豆国产系列在线| 最近最好的中文字幕2019免费| 久久亚洲精品无码AV红樱桃| 四虎成年永久免费网站| 久久久久亚洲国产| 免费国产在线观看不卡| 国产在线播放线91免费| 久久精品国产亚洲av影院| 好大好硬好爽免费视频| 国产JIZZ中国JIZZ免费看| 亚洲人成在线播放网站岛国| 动漫黄网站免费永久在线观看| 无套内射无矿码免费看黄| 日韩亚洲欧洲在线com91tv| 日韩视频在线精品视频免费观看| 亚洲av无码一区二区三区天堂 | 国产男女猛烈无遮挡免费网站 | 亚洲人成日本在线观看| 四虎国产精品免费久久影院| 久久午夜夜伦鲁鲁片无码免费| 2017亚洲男人天堂一| 中文字幕无码不卡免费视频|