|
WebObjects 5.2.3 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin
com.webobjects.eointerface.EOValueAssociation.ValuePlugin
com.webobjects.eointerface.cocoa.EOCocoaImageViewPlugin
EOCocoaImageViewPlugin is a concrete subclass of EOValueAssociation.ValuePlugin that displays NSData as an NSImage in an NSImageView. Images dropped onto its NSImageView are saved out as NSData in TIFF format.
Usage:
associations classes: EOValueAssociation
widgets classes: NSImageView
value classes: NSData containing image data (gif, tiff, jpeg)
| Nested Class Summary |
| Nested classes inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
EOWidgetAssociation.WidgetPlugin.Formatting |
| Constructor Summary | |
EOCocoaImageViewPlugin(EOWidgetAssociation association,
Object widget)
Creates a new EOCocoaImageViewPlugin connected to an association and a UI widget. |
|
| Method Summary | |
void |
breakConnection()
Tells the plugin to halt communication with its NSImageView object. |
void |
establishConnection()
Establishes a connection between the plugin and its UI widget. |
void |
setValue(Object value,
boolean enabled)
Sets the image data to be used by this plugin's NSImageView object. |
Object |
value()
Returns the image data held by this plugin's NSImageView |
String[] |
widgetKeysTaken()
Returns an array of Strings which represent outlet names in Interface Builder. |
| Methods inherited from class com.webobjects.eointerface.EOValueAssociation.ValuePlugin |
endEditing, useURLAsValue |
| Methods inherited from class com.webobjects.eointerface.EOWidgetAssociation.WidgetPlugin |
association, dispose, unacceptableAspects, widget |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EOCocoaImageViewPlugin(EOWidgetAssociation association,
Object widget)
association - EOValueAssociation object for the plugin to usewidget - NSImageView that the plugin will manage| Method Detail |
public void breakConnection()
breakConnection in class EOWidgetAssociation.WidgetPluginpublic void establishConnection()
establishConnection in class EOWidgetAssociation.WidgetPlugin
public void setValue(Object value,
boolean enabled)
setValue in class EOValueAssociation.ValuePluginvalue - com.webobjects.foundation.NSData object conatining the byteenabled - if true, the editable flag of the plugin's NSImageView is enabled,
so the user is able to drag-and-drop a new image into
the NSImageView; if false, the NSImageView is not editable;
data of the NSImage to display in the NSImageView managed by this pluginpublic Object value()
value in class EOValueAssociation.ValuePlugincom.webobjects.foundation.NSData object conatining the bytes
of the TIFF representation of the NSImage of the NSImageView managed by this pluginpublic String[] widgetKeysTaken()
EOCocoaImageViewPlugin takes over outlets with keys "action" and "target".
widgetKeysTaken in class EOWidgetAssociation.WidgetPlugin
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||