Apple WebObjects 3.5 Tools And Techniques User Manual

Page 64

Advertising
background image

Chapter 3

Working With Dynamic Elements

64

Drag a model (a folder with the extension

.eomodeld

) from the file system into

the object browser in your component window, or drag an entity from the
EOModeler application into the object browser.

When you do this, a panel asks you if you want to add the model to your
project. If you reply Yes, the Add Display Group panel appears.

It allows you to specify a name for your display group and decide if you
want to simply add the display group, or configure it as well. “Configuring
the Display Group” describes the configuration process.

Use Add Variable/Method to define a variable of type DisplayGroup (Java)
or WODisplayGroup (Objective-C or WebScript), or declare the display
group directly in your code:

protected DisplayGroup myDisplayGroup; //this is a Java example

When you add a display group this way, you are responsible for making
sure your project contains the appropriate model file. (For example, once a
model file has been added, you can create any number of display groups
based on it). In addition, you need to configure the display group.

When you use the Add Variable/Method panel, you can create not only display
group variables, but also enterprise objects associated with any of the entities in
your project’s models.

Enter the display group’s name.

Click here to add the display group
and configure it.

Advertising