PATH  Documentation > WebObjects 4.5 > EOInterface Reference

Table of Contents

EOImageAssociation


Inherits from:
EOAssociation : EODelayedObserver (EOControl) : Object
Implements:
EOObserving (EODelayedObserver)
Package:
com.apple.client.eointerface


Class Description


EOImageAssociation associates the contents of its ValueAspect's display group with an EOImageView.


Note: This class doesn't exist in the com.apple.yellow.eointerface package.


Usable With
EOImageView


Aspects
ValueAspect An NSData containing the image data
URLAspect A URL from which to retrieve the image




Constructors



EOImageAssociation

public EOImageAssociation(Object aDisplayObject)

Creates a new EOImageAssociation to monitor and update the value in aDisplayObject, an EOImageView.

You normally set up associations in Interface Builder, in which case you don't need to create them programmatically. However, if you do create them up programmatically, setting them up is a multi-step process. After creating an association, you must bind its aspects and establish its connections.

See Also: bindAspect (EOAssociation), establishConnection (EOAssociation)




Instance Methods



establishConnection

public void establishConnection()

See the establishConnection method description in the superclass EOAssociation.

image

public java.awt.Image image()

Returns the receiver's EOImageView's image.

imageWithData

public java.awt.Image imageWithData(NSData data)

Creates an Image from the data in data.

isUsableWithObject

public boolean isUsableWithObject(Object aDisplayObject)

Returns true if aDisplayObject is an instance of EOImageView, false otherwise.

See Also: isUsableWithObject ( EOAssociation)



primaryAspect

public String primaryAspect()

Returns EOAssociation. ValueAspect.

See Also: primaryAspect ( EOAssociation)



subjectChanged

public void subjectChanged()

See the subjectChanged method description in the superclass EOAssociation.


Table of Contents