Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > WebObjects Developer's Guide


Table of Contents Previous Section

Designing for Reusability

Here are some points to consider when creating reusable components:

Complete Declaration

	ALERT: AlertPanel {
infoString = message;
infoFontSize = 4;
infoFontColor = "#500000";
alertString = "New Release";
alertFontColor = "#A00000";
alertFontSize = 6;
tableWidth = "50%";
};

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.";
};
Table of Contents Next Section