Apple WebObjects 3.5 Manual de usuario Pagina 95

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 120
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 94
Adding the MovieDetails Page
95
8. In Project Builder, modify the showDetails action to look like the
following:
public Component showDetails()
{
MovieDetails nextPage =
(MovieDetails)application().pageWithName("MovieDetails");
EnterpriseObject selection =
(EnterpriseObject)movieDisplayGroup.selectedObject();
nextPage.setSelectedMovie(selection);
return nextPage;
}
This method creates the MovieDetails page and then invokes its
setSelectedMovie method with the movie that’s selected in the Main page.
The display group method
selectedObject returns its selected object,
which, in the Main component, is set when a user clicks a movie title
hyperlink.
Designing MovieDetails’ User Interface
Now lay out the user interface for MovieDetails. When you’re done, your
component should look like the following:
1. Create a top-level heading with the text
Movie Details.
Recall that to create a top-level heading, you type the text of the
heading, select the text, click the button to add a heading element
around the text, and then use the Inspector to set the heading’s level,
as you did in “Using the Inspector” (page 22).
2. Below the heading, add a string element.
3. With the string element selected, add a heading.
Vista de pagina 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 119 120

Comentarios a estos manuales

Sin comentarios