Apple WebObjects 3.5 Manual do Utilizador Página 62

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 218
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 61
Chapter 4 Debugging a WebObjects Application
62
The pageWithName method creates the page by looking up and instantiating
the component class that has the same name as the argument you provide
to
pageWithName. For this reason, your subclass of Component shouldn’t be
given a package name. For example, if you create a component named
MyPage.wo and place its Java file in the package myClasses.web, pageWithName won’t
find the
MyPage.class file.
Java is a more strictly typed language than is Objective-C or WebScript. If
you’re more familiar with Objective-C, you’ll find that you need to cast the
return types frequently. For example, suppose you define a method named
verify in the file Session.java and you want to invoke that method from a
component’s Java file. To do so, you must cast the return type of the
component’s
session method as in the following:
// From a component’s Java file.
((Session)session()).verify();
By definition, session returns a WebSession object. Because WebSession
does not define a method named
verify, your code won’t compile unless you
cast the return value of
session to your WebSession subclass.
Vista de página 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 217 218

Comentários a estes Manuais

Sem comentários

Whynter CUF-210SS manuali

Manuali dei proprietari e guide per l'utente per Congelatori Whynter CUF-210SS.
We fornisce 2 manuali pdf Whynter CUF-210SS per scaricare gratuitamente in base al tipo di documento: Manuale delle Istruzioni, Guida Utente






Più prodotti e manuali per Congelatori Whynter

Modelli Tipo di Documento
CUF-112SS Manuale Utente   Whynter CUF-112SS User Manual, 13 pagine
TBR-185SR Manuale Utente   Whynter TBR-185SR User Manual [nl] , 16 pagine
UIM-155 Manuale Utente   Whynter UIM-155 User Manual, 9 pagine
T-1A Manuale Utente   Whynter T-1A User Manual, 12 pagine
SNO Portable Ice Maker Stainless Steel Series T-2C Manuale Utente   Whynter SNO Portable Ice Maker Stainless Steel Series T-2C/A User Manual, 13 pagine