Apple WebObjects 3.5 Manual de usuario Pagina 113

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 120
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 112
Updating Objects in the Detail Display Group
113
Adding a Form
Now lay out the user interface used to view and edit the selected
MovieRole. When you’re done, it should look like the following:
1. Add another horizontal rule after the repetition.
2. Use the button (in the “Dynamic form elements” toolbar) to add a
browser element between the two horizontal rules.
A form element is automatically created around the browser.
3. Beneath the browser, type the bolded text
Role Name:.
4. Add a text field.
5. Bind the text field to
movieRoleDisplayGroup.selectedObject.roleName.
Adding a Talent Display Group
The browser you just created is going to display a list of Talent objects. Like
a repetition element, a browser has
list and item attributes. As the browser
moves through its
list, the browser sets item to the object at the current index.
The Movies application uses a display group to provide the browser with a
list of Talent objects, so now you need to create the new display group and
a variable to bind to the browser’s
item attribute.
1. Use the Add Variable/Method command to create two new instance
variables:
talentDisplayGroup, whose type is DisplayGroup
talent, whose type is Talent
You don’t need to add set and get methods for the variables.
Vista de pagina 112

Comentarios a estos manuales

Sin comentarios