MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Guia do Utilizador Página 54

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 256
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 53
54 Building a Flex Application
For example, the following figure shows two different Box containers that each contain three
Button controls and a ComboBox control:
This figure shows the controls within a horizontal Box (HBox) container. An HBox container
arranges its controls horizontally across the Flash Player drawing surface. The figure also
shows the controls in a vertical Box (VBox) container. A VBox container arranges its controls
vertically.
Containers and controls define the applications user interface. In an MVC design pattern,
those pieces of the application model represent the view. The model is represented by the data
model. Flex data models let you separate your applications data and business logic from the
user interface.
You define your data models using MXML or ActionScript as part of a Flex application. The
following figure shows a form created in Flex that uses a data model:
Data binding is the process of tying the data in one object to another object. The data model
supports bidirectional data binding for writing data from Flex controls to the data model, or
for reading data into controls from the model. You can also bind server data to a data model
or directly to Flex controls. For example, you can bind the results returned from a web service
to the data model, and then have that data propagate to your form controls.
Box container with horizontal layout
Box container with vertical layout
Data model
HTTP/SOAP/AMF
Server
Vista de página 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 255 256

Comentários a estes Manuais

Sem comentários