Apple WebObjects 3.5 Manuale Utente Pagina 113

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 120
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la 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.
Vedere la pagina 112

Commenti su questo manuale

Nessun commento