Apple WebObjects 3.5 Tools And Techniques User Manual

Page 86

Advertising
background image

Chapter 3

Working With Dynamic Elements

86

Use the toolbar to add a custom WebObject element (see “Custom
WebObjects”) to your page, then use the Inspector to set its type to the
name of the reusable component.

Drag a component that has been stored on a palette to the component
window (see “Palettes”).

A component that is designed for reuse can export keys and actions, which
become attributes that the parent component can bind, just as it would set the
attributes of any other dynamic element. When the component is added to a
parent component, these attributes show up in the Custom WebObject
Inspector. The attributes must be enumerated in the

.api

file for the component.

For example, the WOSimpleArrayDisplay shared component that lives in the
WOExtensions framework exports the following attributes, as defined in its

.api

file:

When you use this component in one of your pages, it looks like this:

Advertising