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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 256
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 134
135
11
CHAPTER 11
Use List-based
Form Controls
You can use list-based form controls such as a ComboBox, List, or HorizontalList in your
Adobe Flex applications. After inserting this kind of control, you must populate it with items
to display and values to submit for processing. In Flex, the controls are populated by data
providers, which are collections of objects similar to arrays.
This lesson shows you how to populate list-based form controls with items to display and
values to process.
In this lesson, you’ll complete the following tasks:
Set up your project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Insert and position controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Populate the list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Associate values with list items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Set up your project
Before you begin this lesson, perform the following tasks:
If you havent already done so, create the Lessons project in Adobe Flex Builder. See
“Create the Lessons project” on page 101.
Ensure that the automatic build option is enabled in Flex Builder. This option is enabled
by default in the standalone configuration of Flex Builder but not in the plug-in
configuration. To enable it, select Project > Build Automatically.
Insert and position controls
In this section, you create a simple layout containing a ComboBox control and a submit
button.
Vista de página 134
1 2 ... 130 131 132 133 134 135 136 137 138 139 140 ... 255 256

Comentários a estes Manuais

Sem comentários