Apple WebObjects 3.5 Manual de usuario Pagina 93

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 120
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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.
Vista de pagina 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 119 120

Comentarios a estos manuales

Sin comentarios