P980
Representing Data

Data binding
The data binding feature provides a syntax for automatically copying the value of a property
of one client-side object to a property of another object at run time. Data binding is usually
triggered when the value of the source property changes. You can use data binding to pass user
input data from user interface controls to a data service. You can also use data binding to pass
results returned from a data service to user interface controls.
數(shù)據(jù)綁定特性可以在運(yùn)行時(shí)自動(dòng)將一個(gè)客戶端對(duì)象的屬性復(fù)制到另一個(gè)客戶端對(duì)象的屬性。數(shù)據(jù)綁定通常當(dāng)一個(gè)原對(duì)象的屬性改變時(shí)被觸發(fā)。你可以使用數(shù)據(jù)綁定將用戶輸入數(shù)據(jù)傳遞至數(shù)據(jù)服務(wù)端。你也可以使用數(shù)據(jù)綁定將數(shù)據(jù)服務(wù)端的返回值傳遞至用戶交互界面。
Data models
The data model feature lets you store data in client-side objects. A data model is an
ActionScript object that contains properties for storing data, and that optionally contains
methods for additional functionality. Data models are useful for partitioning the user interface
and data in an application.
數(shù)據(jù)模型特性可以將數(shù)據(jù)存儲(chǔ)于客戶端,一個(gè)數(shù)據(jù)模型是一個(gè)ActionScript對(duì)象,這個(gè)對(duì)象的屬性與要存儲(chǔ)的數(shù)據(jù)對(duì)應(yīng),這個(gè)對(duì)象也可能包含一些其它方法。數(shù)據(jù)模型對(duì)于將程序中的用戶交互界面與數(shù)據(jù)分離非常有效。
Data validation
The data validation feature lets you ensure that data meets specific criteria before the
application uses the data.
數(shù)據(jù)校驗(yàn)特性使得程序在使用數(shù)據(jù)前,確保數(shù)據(jù)符合一定的標(biāo)準(zhǔn)。
Data formatting
The data formatting feature lets you change the format of data before displaying it in a user
interface control.
數(shù)據(jù)格式特性使得在將數(shù)據(jù)顯示于用戶交互界面前可以改變數(shù)據(jù)的顯示格式。
posted on 2006-10-30 23:26
The Matrix 閱讀(286)
評(píng)論(0) 編輯 收藏 所屬分類:
Flex2