Apple WebObjects 3.5 Bedienungsanleitung Seite 99

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 218
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 98
Intercomponent Communication
99
For reusable components to be truly versatile, there must also be a
mechanism for the child component to interact with the parent, either by
setting the parent’s variables or invoking its methods, or both. This
mechanism must be flexible enough that a given child component can be
reused by various parent components without having to be modified in any
way. WebObjects provides just such a mechanism, as illustrated by the
following example.
Consider an AlertPanel component like the one described above, but with
the added ability to accept user input and relay that input to a parent
component. The panel might look like the one in Figure 29.
Figure 29. An Alert Panel That Allows User Input
As in the earlier example, you use this component by simply declaring its
position within the HTML page:
Parent's Template File
<HTML>
<HEAD>
<TITLE>Alert</TITLE>
</HEAD>
<BODY>
<WEBOBJECT NAME = "ALERT"></WEBOBJECT>
</BODY>
</HTML>
The corresponding declarations file reveals two new attributes (indicated in
bold):
Parent's Declarations File (excerpt)
ALERT: AlertPanel {
infoString = message;
infoFontSize = 4;
infoFontColor = "#500000";
alertString = "New Release";
alertFontColor = "#A00000";
alertFontSize = 6;
tableWidth = "50%";
parentAction = "respondToAlert";
exitStatus = usersChoice ;
};
Seitenansicht 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 217 218

Kommentare zu diesen Handbüchern

Keine Kommentare

Diodes DESD5V0S1BB manuals

Owner’s manuals and user’s guides for Hardware Diodes DESD5V0S1BB.
We providing 1 pdf manuals Diodes DESD5V0S1BB for download free by document types: User Manual






More products and manuals for Hardware Diodes

Models Document Type
DESD5V0S1BLD User Manual   Diodes DESD5V0S1BLD User Manual, 4 pages
DESD5V0S1BLP3 User Manual   Diodes DESD5V0S1BLP3 User Manual [en] , 4 pages
DLPT05W User Manual   Diodes DLPT05W User Manual [en] , 5 pages
DESDALC5LP User Manual   Diodes DESDALC5LP User Manual, 6 pages
DRTR5V0U1LP User Manual   Diodes DRTR5V0U1LP User Manual, 5 pages
DRTR5V0U1SO User Manual   Diodes DRTR5V0U1SO User Manual [en] , 4 pages
DRTR5V0U2SR User Manual   Diodes DRTR5V0U2SR User Manual, 4 pages
DRTR5V0U4S User Manual   Diodes DRTR5V0U4S User Manual [en] , 4 pages
DRTR5V0U4SL User Manual   Diodes DRTR5V0U4SL User Manual, 5 pages
DRTR5V0U4TS User Manual   Diodes DRTR5V0U4TS User Manual, 5 pages
DT1042-04SO User Manual   Diodes DT1042-04SO User Manual, 5 pages
DT1140-04LP User Manual   Diodes DT1140-04LP User Manual [en] , 5 pages
DT1452-02SO User Manual   Diodes DT1452-02SO User Manual [en] , 5 pages
DT1240-04LP User Manual   Diodes DT1240-04LP User Manual [en] , 5 pages
DT2042-04SO User Manual   Diodes DT2042-04SO User Manual [en] , 5 pages
DT2636-04S User Manual   Diodes DT2636-04S User Manual, 5 pages
DRDNB21D User Manual   Diodes DRDNB21D User Manual, 7 pages
DRD (xxxx) W User Manual   Diodes DRD (xxxx) W User Manual [en] , 9 pages
LMN200B01 User Manual   Diodes LMN200B01 User Manual [en] , 10 pages
LMN200B02 User Manual   Diodes LMN200B02 User Manual [en] , 10 pages