Apple WebObjects 3.5 Instrukcja Użytkownika Strona 83

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 120
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 82
Examining Your Project
83
1. Inspect the hyperlink.
Its
action attribute is bound to the action method selectObject.
2. Look in the
Main.java class to see how selectObject is implemented.
The method (shown below) simply sets
movieDisplayGroups selected
object to the movie the user clicked.
public void selectObject() {
movieDisplayGroup.selectObject(movie);
}
Bindings in the Editing Part
The text fields in the editing part are all bound to attributes of the
movieDisplayGroup’s selectedObject—the movie on which the user clicked.
Typing new values into these fields updates the Movie enterprise object.
To actually save the updated values to the database, the user must click the
“Save to database” button.
Przeglądanie stron 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 119 120

Komentarze do niniejszej Instrukcji

Brak uwag