Apple WebObjects 3.5 Tools And Techniques User Manual
Page 65
Chapter 3
Working With Dynamic Elements
65
In the figure, if you choose the entity CarPackage as the variable’s type, the
following code gets added to your source file:
/** @TypeInfo CarPackage */
protected EnterpriseObject myCarPackage;
The variable
myCarPackage
is declared as type EnterpriseObject. The comment
/** @TypeInfo CarPackage */
is a structured comment that WebObjects Builder
uses to identify the entity associated with the object. It is then able to display
the attributes in the object browser as shown here:
Configuring the Display Group
A display group must be configured in order for it to be created and initialized
automatically when the component is initialized. Display groups are
instantiated from an archive file (with the extension .
woo
) that’s stored in the
component. You shouldn’t edit .
woo
files by hand; they’re maintained by
WebObjects Builder.
Choose an entity from the project’s
models to create an enterprise
object based on that entity.
Choose this item to create a
display group object.
The browser displays the
attributes of the entity
(CarPackage).