<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 閱讀(294) 評論(0)  編輯  收藏 所屬分類: Flex2
    主站蜘蛛池模板: 国产精成人品日日拍夜夜免费| 男女一边摸一边做爽的免费视频| 免费A级毛片无码A∨| 亚洲日产无码中文字幕| 三年片免费高清版| 亚洲AV无码久久| 日本最新免费网站| 国产精品久久亚洲不卡动漫| 成人毛片18女人毛片免费| 亚洲高清国产拍精品熟女| 四虎影库久免费视频| 一道本不卡免费视频| 亚洲国产a∨无码中文777| 99爱在线精品视频免费观看9| 久久久亚洲裙底偷窥综合| 成人免费视频77777| 国产亚洲情侣久久精品| 亚洲熟伦熟女新五十路熟妇 | 国产精品亚洲产品一区二区三区 | 久久亚洲精品无码VA大香大香 | 在线免费视频一区| 黄页网站在线免费观看| 亚洲精品无码专区久久久| 最近中文字幕完整版免费高清| 亚洲国产日韩视频观看| 亚洲国产精品成人网址天堂| 成人黄网站片免费视频| 亚洲一区二区三区在线网站| 日本免费一区二区三区最新vr| caoporn成人免费公开| 久久精品亚洲精品国产色婷 | 四虎免费永久在线播放| 在线看片免费人成视频久网下载| 亚洲日本国产乱码va在线观看| 国产乱子伦片免费观看中字| 日韩精品免费视频| 亚洲精品美女久久7777777| 亚洲人成在线播放网站| 91免费国产在线观看| eeuss免费影院| 国产成人精品日本亚洲网址|