Apple WebObjects 3.5 Bedienungsanleitung Seite 108

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 218
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 107
Chapter 6 Creating Reusable Components
108
This declaration specifies a value for just one attribute; all others will use
the default values provided by the component’s
init method:
Partial Declaration
ALERT: AlertPanel {
alertString = "Choice not available.";
};
Consider building reusable components from reusable components.
Rather than building a monolithic component, consider how the finished
component can be built from several, smaller components. You may be able
to employ these smaller components in more than one reusable
component.
Take, for example, the AlertPanel example shown in Figure 28 (page 97).
See the ReusableComponents example application to view the source code
for this component. The AlertPanel lets you not only set the message
displayed to the user, but also the message’s font size and color. These font
handling features aren’t provided by the AlertPanel itself but by an
embedded reusable component, FontString. FontString itself is a versatile
component that’s used in many other components.
Document the reusable component’s interface and requirements.
If you plan to make your components available to other programmers, you
should provide simple documentation that includes information on:
What attributes are available and which are required.
What the default values are for optional attributes.
What context needs to be provided for the component. For example,
does it need to be embedded in a form?
Any restrictions that affect its use. For example, is it possible to have a
submit button in the same form as the one that contains this
component?
In addition, it’s helpful if you provide an example showing how to use your
component.
Seitenansicht 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 217 218

Kommentare zu diesen Handbüchern

Keine Kommentare

IBM 612 manuales

Manuales del propietario y guías del usuario para Accesorios De Computador IBM 612.
Ofrecemos 1 manuales en pdf IBM 612 para descargar gratis por tipos de documentos: Manual de usuario






Más productos y manuales para Accesorios De Computador IBM

Modelos Tipo de documento
Data Server DB2 Manual de usuario   IBM Data Server DB2 User Manual, 298 paginas
DB2 Everyplace 7.2.1 Manual de usuario   IBM DB2 Everyplace 7.2.1 User Manual, 18 paginas
6633 - 4LE Manual de usuario   IBM 6633 - 4LE User Manual, 19 paginas
8271 Manual de usuario   IBM 8271 User Manual, 6 paginas
Volition Dual Speed Mini-Hub VOL-2008 Manual de usuario   IBM Volition Dual Speed Mini-Hub VOL-2008 User Manual, 3 paginas
02L1333 Manual de usuario   IBM 02L1333 User Manual, 6 paginas
ZG09-0629 Manual de usuario   IBM ZG09-0629 User Manual, 24 paginas
19K4260 Manual de usuario   IBM 19K4260 User Manual, 105 paginas
THINKPAD S05L-1270-01 Manual de usuario   IBM THINKPAD S05L-1270-01 User Manual, 716 paginas
iSeries 270 and 820 SENG-3002-01 Manual de usuario   IBM iSeries 270 and 820 SENG-3002-01 User Manual, 30 paginas
524 Manual de usuario   IBM 524 User Manual, 2 paginas
8260 Manual de usuario   IBM 8260 User Manual, 25 paginas
250000 Manual de usuario   IBM 250000 User Manual, 19 paginas
X3950 M2 Manual de usuario   IBM X3950 M2 User Manual, 19 paginas