Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Creating a Java Client Application: A Tutorial

   

What is an Association?

In the previous exercise, when you made a connection from the pop-up list to an EODisplayGroup, you formed an association . Associations were also involved when you created a table view by dragging an entity from EOModeler into Interface Builder--the associations were formed for you as a by-product of dragging in the entity.

EODisplayGroups use associations (EOAssociations) to mediate between enterprise objects and the user interface. An association ties a single user interface object, such as a table column, to a key (a named property) in an enterprise object or objects managed by the EODisplayGroup.

Associations keep the user interface synchronized with enterprise object values. When an object changes, its display in the user interface updates to reflect the change. Likewise, when the user edits the user interface, the values in the object are updated accordingly.

Associations can have multiple aspects . For example, in the preceding exercise you selected the titles aspect for the EOPopupAssociation to display all of the class keys whose values you could choose to display in the pop-up list. EOPopupAssociation also has several other aspects: selectedTitle , selectedTag , selectedObject, and enabled.

Enterprise Objects Framework includes associations for different types of user interface objects, such as table columns, text fields, pop-up lists, and so on. Each association has multiple aspects.

For a complete discussion of this subject and a listing of all possible associations, see the EOAssociation class and subclass specifications in the Enterprise Objects Framework Reference.


© 1999 Apple Computer, Inc. – (Last Updated 13 Sep 99)