Apple WebObjects 3.5 Uživatelský manuál Strana 93

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 120
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 92
Adding the MovieDetails Page
93
Creating the MovieDetails Component
1. In Project Builder, choose File m New in Project.
2. In the New File panel, click the Web Components suitcase.
3. Type
MovieDetails in the Name field.
4. Click OK.
5. In the wizard panel, choose None from the available assistance.
6. Choose Java as the component language.
7. Click Finish.
8. Open the new component in WebObjects Builder.
Storing the Selected Movie
Now, in the MovieDetails component, create a variable that holds the
application’s selected movie. Later on, you’ll add code to the
Main.java class
that assigns Main’s selected movie to this variable.
1. Choose Add Variable/Method from the pull-down menu.
2. Name the variable
selectedMovie.
3. Set the variable’s type to Movie.
Type the variable name here.
Select this.
Choose Movie.
Check each of these boxes.
Click here when you’re done.
Zobrazit stránku 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 119 120

Komentáře k této Příručce

Žádné komentáře